aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2020-12-16 09:53:19 +0000
committerBiju Das <biju.das.jz@bp.renesas.com>2021-01-13 13:03:48 +0000
commitb28c29d0084e1380333881d718ebeb0ef65b10a5 (patch)
treeceeb125fd8f024cd05383743e7e7a4b8a119645a
parentbe92e5a22f83fe5e580b4c60148ec9b150b82c23 (diff)
downloadtrusted-firmware-a-b28c29d0084e1380333881d718ebeb0ef65b10a5.tar.gz
drivers: renesas: eMMC: Move to common
Move eMMC 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: I7f3055709337327d1a1c9f563c14ad1626adb355
-rw-r--r--drivers/renesas/common/emmc/emmc_cmd.c (renamed from drivers/renesas/rcar/emmc/emmc_cmd.c)0
-rw-r--r--drivers/renesas/common/emmc/emmc_config.h (renamed from drivers/renesas/rcar/emmc/emmc_config.h)0
-rw-r--r--drivers/renesas/common/emmc/emmc_def.h (renamed from drivers/renesas/rcar/emmc/emmc_def.h)0
-rw-r--r--drivers/renesas/common/emmc/emmc_hal.h (renamed from drivers/renesas/rcar/emmc/emmc_hal.h)0
-rw-r--r--drivers/renesas/common/emmc/emmc_init.c (renamed from drivers/renesas/rcar/emmc/emmc_init.c)0
-rw-r--r--drivers/renesas/common/emmc/emmc_interrupt.c (renamed from drivers/renesas/rcar/emmc/emmc_interrupt.c)0
-rw-r--r--drivers/renesas/common/emmc/emmc_mount.c (renamed from drivers/renesas/rcar/emmc/emmc_mount.c)0
-rw-r--r--drivers/renesas/common/emmc/emmc_read.c (renamed from drivers/renesas/rcar/emmc/emmc_read.c)0
-rw-r--r--drivers/renesas/common/emmc/emmc_registers.h (renamed from drivers/renesas/rcar/emmc/emmc_registers.h)0
-rw-r--r--drivers/renesas/common/emmc/emmc_std.h (renamed from drivers/renesas/rcar/emmc/emmc_std.h)0
-rw-r--r--drivers/renesas/common/emmc/emmc_utility.c (renamed from drivers/renesas/rcar/emmc/emmc_utility.c)0
-rw-r--r--plat/renesas/common/common.mk6
-rw-r--r--plat/renesas/rcar/platform.mk8
13 files changed, 7 insertions, 7 deletions
diff --git a/drivers/renesas/rcar/emmc/emmc_cmd.c b/drivers/renesas/common/emmc/emmc_cmd.c
index d255bffc9f..d255bffc9f 100644
--- a/drivers/renesas/rcar/emmc/emmc_cmd.c
+++ b/drivers/renesas/common/emmc/emmc_cmd.c
diff --git a/drivers/renesas/rcar/emmc/emmc_config.h b/drivers/renesas/common/emmc/emmc_config.h
index 16b6b8aa9a..16b6b8aa9a 100644
--- a/drivers/renesas/rcar/emmc/emmc_config.h
+++ b/drivers/renesas/common/emmc/emmc_config.h
diff --git a/drivers/renesas/rcar/emmc/emmc_def.h b/drivers/renesas/common/emmc/emmc_def.h
index 178c795b98..178c795b98 100644
--- a/drivers/renesas/rcar/emmc/emmc_def.h
+++ b/drivers/renesas/common/emmc/emmc_def.h
diff --git a/drivers/renesas/rcar/emmc/emmc_hal.h b/drivers/renesas/common/emmc/emmc_hal.h
index 0a8551719f..0a8551719f 100644
--- a/drivers/renesas/rcar/emmc/emmc_hal.h
+++ b/drivers/renesas/common/emmc/emmc_hal.h
diff --git a/drivers/renesas/rcar/emmc/emmc_init.c b/drivers/renesas/common/emmc/emmc_init.c
index 354aa3c82a..354aa3c82a 100644
--- a/drivers/renesas/rcar/emmc/emmc_init.c
+++ b/drivers/renesas/common/emmc/emmc_init.c
diff --git a/drivers/renesas/rcar/emmc/emmc_interrupt.c b/drivers/renesas/common/emmc/emmc_interrupt.c
index 092fdfb728..092fdfb728 100644
--- a/drivers/renesas/rcar/emmc/emmc_interrupt.c
+++ b/drivers/renesas/common/emmc/emmc_interrupt.c
diff --git a/drivers/renesas/rcar/emmc/emmc_mount.c b/drivers/renesas/common/emmc/emmc_mount.c
index e04afd4cf0..e04afd4cf0 100644
--- a/drivers/renesas/rcar/emmc/emmc_mount.c
+++ b/drivers/renesas/common/emmc/emmc_mount.c
diff --git a/drivers/renesas/rcar/emmc/emmc_read.c b/drivers/renesas/common/emmc/emmc_read.c
index 96e73ca56c..96e73ca56c 100644
--- a/drivers/renesas/rcar/emmc/emmc_read.c
+++ b/drivers/renesas/common/emmc/emmc_read.c
diff --git a/drivers/renesas/rcar/emmc/emmc_registers.h b/drivers/renesas/common/emmc/emmc_registers.h
index ae689ca24c..ae689ca24c 100644
--- a/drivers/renesas/rcar/emmc/emmc_registers.h
+++ b/drivers/renesas/common/emmc/emmc_registers.h
diff --git a/drivers/renesas/rcar/emmc/emmc_std.h b/drivers/renesas/common/emmc/emmc_std.h
index 087c6e91d8..087c6e91d8 100644
--- a/drivers/renesas/rcar/emmc/emmc_std.h
+++ b/drivers/renesas/common/emmc/emmc_std.h
diff --git a/drivers/renesas/rcar/emmc/emmc_utility.c b/drivers/renesas/common/emmc/emmc_utility.c
index 2e88abc75f..2e88abc75f 100644
--- a/drivers/renesas/rcar/emmc/emmc_utility.c
+++ b/drivers/renesas/common/emmc/emmc_utility.c
diff --git a/plat/renesas/common/common.mk b/plat/renesas/common/common.mk
index ab9cded708..9b14663490 100644
--- a/plat/renesas/common/common.mk
+++ b/plat/renesas/common/common.mk
@@ -79,6 +79,12 @@ BL2_SOURCES += ${RCAR_GIC_SOURCES} \
${LIBFDT_SRCS} \
common/desc_image_load.c \
drivers/renesas/common/common.c \
+ drivers/renesas/common/emmc/emmc_interrupt.c \
+ drivers/renesas/common/emmc/emmc_utility.c \
+ drivers/renesas/common/emmc/emmc_mount.c \
+ drivers/renesas/common/emmc/emmc_init.c \
+ drivers/renesas/common/emmc/emmc_read.c \
+ drivers/renesas/common/emmc/emmc_cmd.c \
drivers/io/io_storage.c
BL31_SOURCES += ${RCAR_GIC_SOURCES} \
diff --git a/plat/renesas/rcar/platform.mk b/plat/renesas/rcar/platform.mk
index 8613f5ea21..02be49a2e5 100644
--- a/plat/renesas/rcar/platform.mk
+++ b/plat/renesas/rcar/platform.mk
@@ -307,7 +307,7 @@ PLAT_INCLUDES += -Idrivers/renesas/rcar/ddr \
-Idrivers/renesas/rcar/delay \
-Idrivers/renesas/rcar/rom \
-Idrivers/renesas/rcar/scif \
- -Idrivers/renesas/rcar/emmc \
+ -Idrivers/renesas/common/emmc \
-Idrivers/renesas/rcar/pwrc \
-Idrivers/renesas/rcar/io
@@ -330,12 +330,6 @@ BL2_SOURCES += plat/renesas/rcar/aarch64/platform_common.c \
drivers/renesas/rcar/dma/dma_driver.c \
drivers/renesas/rcar/avs/avs_driver.c \
drivers/renesas/rcar/delay/micro_delay.c \
- drivers/renesas/rcar/emmc/emmc_interrupt.c \
- drivers/renesas/rcar/emmc/emmc_utility.c \
- drivers/renesas/rcar/emmc/emmc_mount.c \
- drivers/renesas/rcar/emmc/emmc_init.c \
- drivers/renesas/rcar/emmc/emmc_read.c \
- drivers/renesas/rcar/emmc/emmc_cmd.c \
drivers/renesas/rcar/watchdog/swdt.c \
drivers/renesas/rcar/rom/rom_api.c \
drivers/renesas/rcar/board/board.c