aboutsummaryrefslogtreecommitdiff
path: root/drivers/renesas
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 /drivers/renesas
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
Diffstat (limited to 'drivers/renesas')
-rw-r--r--drivers/renesas/common/ddr/ddr.mk2
-rw-r--r--drivers/renesas/common/ddr/ddr_a/ddr_a.mk2
2 files changed, 2 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