Skip to contentSkip to conversation

board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards

PATCH New Lad Prabhakar 3 participants 3 messages Mar 15, 2021 – Mar 16, 2021 Arm/RISC-V/Renesas architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards

Enable building SPL for HiHope RZ/G2[HMN] boards.

---
 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(-)
board/hoperun/hihope-rzg2/Makefile +4 -0
index e989e7aacc..fbac612d3a 100644
@@ -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
configs/hihope_rzg2_defconfig +1 -1
index 69eaab073e..8acca194d4 100644
@@ -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
include/configs/rcar-gen3-common.h +3 -1
index b9762f5beb..24ba5a0c38 100644
@@ -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
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards

Quoted 1 line · Lad Prabhakar

Enable building SPL for HiHope RZ/G2[HMN] boards.

What is the reason for building the SPL ?

#2 lore raw

PATCH 1/1 board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards

Hi Marek,

Thank you for the review.

Quoted 6 lines · Marek Vasut
Quoted 1 line · Lad Prabhakar

Enable building SPL for HiHope RZ/G2[HMN] boards.

What is the reason for building the SPL ?

To enable support for recovery using SPL (as done on R-Car platforms)

Cheers,
Prabhakar