[PATCH] board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards
Lad Prabhakar
prabhakar.mahadev-lad.rj at bp.renesas.com
Mon Mar 15 23:07:46 CET 2021
Enable building SPL for HiHope RZ/G2[HMN] boards.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj at bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz at bp.renesas.com>
---
board/hoperun/hihope-rzg2/Makefile | 4 ++++
configs/hihope_rzg2_defconfig | 2 +-
include/configs/rcar-gen3-common.h | 4 +++-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/board/hoperun/hihope-rzg2/Makefile b/board/hoperun/hihope-rzg2/Makefile
index e989e7aacc..fbac612d3a 100644
--- a/board/hoperun/hihope-rzg2/Makefile
+++ b/board/hoperun/hihope-rzg2/Makefile
@@ -6,4 +6,8 @@
# SPDX-License-Identifier: GPL-2.0+
#
+ifdef CONFIG_SPL_BUILD
+obj-y := ../../renesas/rcar-common/gen3-spl.o
+else
obj-y := hihope-rzg2.o ../../renesas/rcar-common/common.o
+endif
diff --git a/configs/hihope_rzg2_defconfig b/configs/hihope_rzg2_defconfig
index 69eaab073e..8acca194d4 100644
--- a/configs/hihope_rzg2_defconfig
+++ b/configs/hihope_rzg2_defconfig
@@ -2,12 +2,12 @@ CONFIG_ARM=y
CONFIG_ARCH_CPU_INIT=y
CONFIG_ARCH_RMOBILE=y
CONFIG_SYS_TEXT_BASE=0x50000000
+CONFIG_SPL_TEXT_BASE=0xe6338000
CONFIG_ENV_SIZE=0x20000
CONFIG_ENV_OFFSET=0xFFFE0000
CONFIG_DM_GPIO=y
CONFIG_RCAR_GEN3=y
CONFIG_TARGET_HIHOPE_RZG2=y
-# CONFIG_SPL is not set
CONFIG_DEFAULT_DEVICE_TREE="r8a774a1-hihope-rzg2m-u-boot"
CONFIG_FIT=y
CONFIG_SUPPORT_RAW_INITRD=y
diff --git a/include/configs/rcar-gen3-common.h b/include/configs/rcar-gen3-common.h
index b9762f5beb..24ba5a0c38 100644
--- a/include/configs/rcar-gen3-common.h
+++ b/include/configs/rcar-gen3-common.h
@@ -67,7 +67,9 @@
"booti 0x48080000 - 0x48000000"
/* SPL support */
-#if defined(CONFIG_R8A7795) || defined(CONFIG_R8A7796) || defined(CONFIG_R8A77965)
+#if defined(CONFIG_R8A774A1) || defined(CONFIG_R8A774B1) || \
+ defined(CONFIG_R8A774E1) || defined(CONFIG_R8A7795) || \
+ defined(CONFIG_R8A7796) || defined(CONFIG_R8A77965)
#define CONFIG_SPL_BSS_START_ADDR 0xe633f000
#define CONFIG_SPL_BSS_MAX_SIZE 0x1000
#else
--
2.17.1
More information about the U-Boot
mailing list