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
diff --git a/drivers/renesas/common/ddr/ddr.mk b/drivers/renesas/common/ddr/ddr.mk
index 39f9e9e..9483686 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 ed3a55e..cd6433d 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 fb8fba4..fafce98 100644
--- a/plat/renesas/common/common.mk
+++ b/plat/renesas/common/common.mk
@@ -36,6 +36,7 @@
 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,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