aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2020-12-16 10:27:45 +0000
committerBiju Das <biju.das.jz@bp.renesas.com>2021-01-13 13:03:48 +0000
commitc40739a68f557c2267749999f876af6e5f5ff66f (patch)
tree50a98d0c2719968e55d002d79b17f65ff719689c
parent2ddb55752b9da7ebf6c725d2e1e2bb04c82c76b9 (diff)
downloadtrusted-firmware-a-c40739a68f557c2267749999f876af6e5f5ff66f.tar.gz
drivers: renesas: pwrc: Move to common
Move pwrc driver code to common directory, so that the same code can be re-used by both R-Car Gen3 and RZ/G2 platforms. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Change-Id: I75d91a44d872fe2296b15c700efacd5721385363
-rw-r--r--drivers/renesas/common/pwrc/call_sram.S (renamed from drivers/renesas/rcar/pwrc/call_sram.S)0
-rw-r--r--drivers/renesas/common/pwrc/pwrc.c (renamed from drivers/renesas/rcar/pwrc/pwrc.c)0
-rw-r--r--drivers/renesas/common/pwrc/pwrc.h (renamed from drivers/renesas/rcar/pwrc/pwrc.h)0
-rw-r--r--plat/renesas/common/common.mk2
-rw-r--r--plat/renesas/rcar/platform.mk6
5 files changed, 4 insertions, 4 deletions
diff --git a/drivers/renesas/rcar/pwrc/call_sram.S b/drivers/renesas/common/pwrc/call_sram.S
index aa8644cb98..aa8644cb98 100644
--- a/drivers/renesas/rcar/pwrc/call_sram.S
+++ b/drivers/renesas/common/pwrc/call_sram.S
diff --git a/drivers/renesas/rcar/pwrc/pwrc.c b/drivers/renesas/common/pwrc/pwrc.c
index c0f015f04b..c0f015f04b 100644
--- a/drivers/renesas/rcar/pwrc/pwrc.c
+++ b/drivers/renesas/common/pwrc/pwrc.c
diff --git a/drivers/renesas/rcar/pwrc/pwrc.h b/drivers/renesas/common/pwrc/pwrc.h
index f73099b0b5..f73099b0b5 100644
--- a/drivers/renesas/rcar/pwrc/pwrc.h
+++ b/drivers/renesas/common/pwrc/pwrc.h
diff --git a/plat/renesas/common/common.mk b/plat/renesas/common/common.mk
index 82f4d7d7e7..6e8786d660 100644
--- a/plat/renesas/common/common.mk
+++ b/plat/renesas/common/common.mk
@@ -94,6 +94,8 @@ BL31_SOURCES += ${RCAR_GIC_SOURCES} \
lib/cpus/aarch64/cortex_a53.S \
lib/cpus/aarch64/cortex_a57.S \
plat/common/plat_psci_common.c \
+ drivers/renesas/common/pwrc/call_sram.S \
+ drivers/renesas/common/pwrc/pwrc.c \
drivers/renesas/common/common.c \
drivers/arm/cci/cci.c
diff --git a/plat/renesas/rcar/platform.mk b/plat/renesas/rcar/platform.mk
index 1f0c8abc45..6685a8115e 100644
--- a/plat/renesas/rcar/platform.mk
+++ b/plat/renesas/rcar/platform.mk
@@ -308,7 +308,7 @@ PLAT_INCLUDES += -Idrivers/renesas/rcar/ddr \
-Idrivers/renesas/rcar/rom \
-Idrivers/renesas/rcar/scif \
-Idrivers/renesas/common/emmc \
- -Idrivers/renesas/rcar/pwrc \
+ -Idrivers/renesas/common/pwrc \
-Idrivers/renesas/common/io
BL2_SOURCES += plat/renesas/rcar/aarch64/platform_common.c \
@@ -338,9 +338,7 @@ BL31_SOURCES += plat/renesas/rcar/plat_topology.c \
plat/renesas/rcar/plat_pm.c \
drivers/renesas/rcar/console/rcar_console.S \
drivers/renesas/rcar/console/rcar_printf.c \
- drivers/renesas/rcar/delay/micro_delay.c \
- drivers/renesas/rcar/pwrc/call_sram.S \
- drivers/renesas/rcar/pwrc/pwrc.c
+ drivers/renesas/rcar/delay/micro_delay.c
ifeq (${RCAR_GEN3_ULCB},1)
BL31_SOURCES += drivers/renesas/rcar/cpld/ulcb_cpld.c