* [PATCH] board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards
@ 2021-03-15 22:07 Lad Prabhakar
2021-03-15 23:40 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Lad Prabhakar @ 2021-03-15 22:07 UTC (permalink / raw)
To: u-boot
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(-)
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards
2021-03-15 22:07 [PATCH] board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards Lad Prabhakar
@ 2021-03-15 23:40 ` Marek Vasut
2021-03-16 21:24 ` Lad, Prabhakar
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2021-03-15 23:40 UTC (permalink / raw)
To: u-boot
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 ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards
2021-03-15 23:40 ` Marek Vasut
@ 2021-03-16 21:24 ` Lad, Prabhakar
0 siblings, 0 replies; 3+ messages in thread
From: Lad, Prabhakar @ 2021-03-16 21:24 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-16 21:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-15 22:07 [PATCH] board: hoperun: Enable recovery SPL for HiHope RZ/G2[HMN] boards Lad Prabhakar
2021-03-15 23:40 ` Marek Vasut
2021-03-16 21:24 ` Lad, Prabhakar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox