2015-10-09 20:58:28 +00:00
|
|
|
if ARCH_RMOBILE
|
2014-08-30 22:10:57 +00:00
|
|
|
|
|
|
|
choice
|
2016-06-17 04:52:13 +00:00
|
|
|
prompt "Target Renesas SoC select"
|
|
|
|
default RCAR_32
|
2014-08-30 22:10:57 +00:00
|
|
|
|
2016-06-17 04:52:13 +00:00
|
|
|
config RCAR_32
|
|
|
|
bool "Renesas ARM SoCs R-Car Gen1/Gen2 (32bit)"
|
2018-04-26 12:51:26 +00:00
|
|
|
select CPU_V7A
|
2015-03-04 23:30:37 +00:00
|
|
|
|
2016-03-31 18:51:34 +00:00
|
|
|
config RCAR_GEN3
|
|
|
|
bool "Renesas ARM SoCs R-Car Gen3 (64bit)"
|
|
|
|
select ARM64
|
2018-10-02 20:48:26 +00:00
|
|
|
select PHY
|
2018-09-26 05:32:13 +00:00
|
|
|
select CMD_CACHE
|
2019-04-21 20:14:11 +00:00
|
|
|
select PINCTRL
|
|
|
|
select PINCONF
|
|
|
|
select PINCTRL_PFC
|
ARM: rmobile: Add recovery SPL for R-Car Gen3
Build an SPL which can be started via SCIF download mode on R-Car Gen3
and allows loading and executing U-Boot uImage with the next stage code.
This is also useful for starting e.g. ATF BL2, which inits the hardware
and returns to the U-Boot SPL, which can then load e.g. U-Boot proper.
The H3, M3-W, M3-N SoCs have plenty of SRAM for storing the U-Boot SPL
while the payload, e.g. ATF BL2, executes, so there is no problem here.
However, E3 and D3 have much less SRAM, hence the loader uses a trick
where it copies itself beyond the area used by BL2 and executes from
there. That area is 32kiB large and not enough to hold U-Boot SPL, BSS,
stack and malloc area, so the later two are placed at +0x4000 offset
from start of SRAM, another area not used by ATF BL2. To make things
even more complicated, the SCIF loader cannot load to the upper 32kiB
of the SRAM directly, hence the copying approach.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2018-10-03 10:44:13 +00:00
|
|
|
select SUPPORT_SPL
|
2018-12-03 22:46:11 +00:00
|
|
|
imply CMD_FS_UUID
|
|
|
|
imply CMD_GPT
|
|
|
|
imply CMD_UUID
|
|
|
|
imply CMD_MMC_SWRITE if MMC
|
2019-07-08 23:46:35 +00:00
|
|
|
imply OF_BOARD_SETUP if PCI
|
2018-12-03 22:46:11 +00:00
|
|
|
imply SUPPORT_EMMC_RPMB if MMC
|
ARM: rmobile: Add recovery SPL for R-Car Gen3
Build an SPL which can be started via SCIF download mode on R-Car Gen3
and allows loading and executing U-Boot uImage with the next stage code.
This is also useful for starting e.g. ATF BL2, which inits the hardware
and returns to the U-Boot SPL, which can then load e.g. U-Boot proper.
The H3, M3-W, M3-N SoCs have plenty of SRAM for storing the U-Boot SPL
while the payload, e.g. ATF BL2, executes, so there is no problem here.
However, E3 and D3 have much less SRAM, hence the loader uses a trick
where it copies itself beyond the area used by BL2 and executes from
there. That area is 32kiB large and not enough to hold U-Boot SPL, BSS,
stack and malloc area, so the later two are placed at +0x4000 offset
from start of SRAM, another area not used by ATF BL2. To make things
even more complicated, the SCIF loader cannot load to the upper 32kiB
of the SRAM directly, hence the copying approach.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2018-10-03 10:44:13 +00:00
|
|
|
imply SPL
|
|
|
|
imply SPL_BOARD_INIT
|
|
|
|
imply SPL_GZIP
|
|
|
|
imply SPL_LIBCOMMON_SUPPORT
|
|
|
|
imply SPL_LIBGENERIC_SUPPORT
|
|
|
|
imply SPL_SERIAL_SUPPORT
|
|
|
|
imply SPL_SYS_MALLOC_SIMPLE
|
|
|
|
imply SPL_TINY_MEMSET
|
|
|
|
imply SPL_YMODEM_SUPPORT
|
2019-09-25 14:56:27 +00:00
|
|
|
imply SPL_USE_TINY_PRINTF
|
2016-03-31 18:51:34 +00:00
|
|
|
|
2017-08-23 19:53:59 +00:00
|
|
|
config RZA1
|
|
|
|
prompt "Renesas ARM SoCs RZ/A1 (32bit)"
|
|
|
|
select CPU_V7A
|
|
|
|
|
2015-03-04 23:30:37 +00:00
|
|
|
endchoice
|
|
|
|
|
2016-06-17 04:52:13 +00:00
|
|
|
source "arch/arm/mach-rmobile/Kconfig.32"
|
2016-03-31 18:51:34 +00:00
|
|
|
source "arch/arm/mach-rmobile/Kconfig.64"
|
2017-08-23 19:53:59 +00:00
|
|
|
source "arch/arm/mach-rmobile/Kconfig.rza1"
|
2014-08-30 22:10:57 +00:00
|
|
|
|
|
|
|
endif
|