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 |
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 ?
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 --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