diff mbox series

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

Message ID 20210315220746.26663-1-prabhakar.mahadev-lad.rj@bp.renesas.com
State Deferred
Delegated to: Tom Rini
Headers show
Series board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards | expand

Commit Message

Lad Prabhakar March 15, 2021, 10:07 p.m. UTC
Enable building SPL for HiHope RZ/G2[HMN] boards.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@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(-)

Comments

Marek Vasut March 15, 2021, 11:40 p.m. UTC | #1
On 3/15/21 11:07 PM, Lad Prabhakar wrote:
> Enable building SPL for HiHope RZ/G2[HMN] boards.

What is the reason for building the SPL ?
Lad, Prabhakar March 16, 2021, 9:24 p.m. UTC | #2
Hi Marek,

Thank you for the review.

On Mon, Mar 15, 2021 at 11:40 PM Marek Vasut <marek.vasut@gmail.com> wrote:
>
> On 3/15/21 11:07 PM, Lad Prabhakar wrote:
> > 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
diff mbox series

Patch

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