aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>2021-03-19 10:53:23 +0000
committerLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>2021-04-20 16:17:50 +0100
commit30663f34e73bab70dd70f9d1fe425699ee1755eb (patch)
tree9a68b9043d4719ee7dccf6395c094b427cc8f89d
parenta4d86f6767083b5236ebf1d2cb60fe3d1713f7ba (diff)
downloadtrusted-firmware-a-30663f34e73bab70dd70f9d1fe425699ee1755eb.tar.gz
drivers: renesas: common: Add support for DRAM initialization on RZ/G2E SoC
DRAM initialization on RZ/G2E SoC is identical to R-Car E3 so re-use the same. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com> Change-Id: I454fb40af4f8ce6c4c0d2a53edb307326efd02df
-rw-r--r--drivers/renesas/common/ddr/ddr.mk2
-rw-r--r--drivers/renesas/common/ddr/ddr_a/ddr_a.mk2
-rw-r--r--plat/renesas/common/common.mk2
3 files changed, 4 insertions, 2 deletions
diff --git a/drivers/renesas/common/ddr/ddr.mk b/drivers/renesas/common/ddr/ddr.mk
index 39f9e9e86a..94836866c5 100644
--- a/drivers/renesas/common/ddr/ddr.mk
+++ b/drivers/renesas/common/ddr/ddr.mk
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: BSD-3-Clause
#
-ifeq (${RCAR_LSI},${RCAR_E3})
+ifeq ($(RCAR_LSI),$(filter $(RCAR_LSI),${RCAR_E3} ${RZ_G2E}))
include drivers/renesas/common/ddr/ddr_a/ddr_a.mk
BL2_SOURCES += drivers/renesas/common/ddr/dram_sub_func.c
else ifeq (${RCAR_LSI},${RCAR_D3})
diff --git a/drivers/renesas/common/ddr/ddr_a/ddr_a.mk b/drivers/renesas/common/ddr/ddr_a/ddr_a.mk
index ed3a55ebba..cd6433d10b 100644
--- a/drivers/renesas/common/ddr/ddr_a/ddr_a.mk
+++ b/drivers/renesas/common/ddr/ddr_a/ddr_a.mk
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: BSD-3-Clause
#
-ifeq (${RCAR_LSI},${RCAR_E3})
+ifeq ($(RCAR_LSI),$(filter $(RCAR_LSI),${RCAR_E3} ${RZ_G2E}))
BL2_SOURCES += drivers/renesas/common/ddr/ddr_a/ddr_init_e3.c
else ifeq (${RCAR_LSI},${RCAR_D3})
BL2_SOURCES += drivers/renesas/common/ddr/ddr_a/ddr_init_d3.c
diff --git a/plat/renesas/common/common.mk b/plat/renesas/common/common.mk
index fb8fba4865..fafce98349 100644
--- a/plat/renesas/common/common.mk
+++ b/plat/renesas/common/common.mk
@@ -36,6 +36,7 @@ RCAR_AUTO:=99
RZ_G2M:=100
RZ_G2H:=101
RZ_G2N:=102
+RZ_G2E:=103
$(eval $(call add_define,RCAR_H3))
$(eval $(call add_define,RCAR_M3))
$(eval $(call add_define,RCAR_M3N))
@@ -47,6 +48,7 @@ $(eval $(call add_define,RCAR_AUTO))
$(eval $(call add_define,RZ_G2M))
$(eval $(call add_define,RZ_G2H))
$(eval $(call add_define,RZ_G2N))
+$(eval $(call add_define,RZ_G2E))
RCAR_CUT_10:=0
RCAR_CUT_11:=1