]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: Use an external TPL binary on RK3568
authorJonas Karlman <jonas@kwiboo.se>
Sat, 25 Feb 2023 19:01:34 +0000 (19:01 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:26 +0000 (18:07 +0800)
commit358269944e0bf5442412bef838385927b21e51f9
tree7dff9c250d2e4f26aa9a9fa5caf682a7bb0c8d03
parent62e4c38562149df51837b5830e9f2cbeb08c05b9
rockchip: Use an external TPL binary on RK3568

Rockchip SoCs typically use U-Boot TPL to initialize DRAM, then jumps
back to BootRom to load next stage, U-Boot SPL, into DRAM. BootRom then
jumps to U-Boot SPL to continue the normal boot flow.

However, there is no support to initialize DRAM on RK35xx SoCs using
U-Boot TPL and instead an external TPL binary must be used to generate a
bootable u-boot-rockchip.bin image.

Add CONFIG_ROCKCHIP_EXTERNAL_TPL to indicate that an external TPL should
be used. Build U-Boot with ROCKCHIP_TPL=/path/to/ddr.bin to generate a
bootable u-boot-rockchip.bin image for RK3568.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Eugen Hristev <eugen.hristev@collabora.com>
Makefile
arch/arm/dts/rockchip-u-boot.dtsi
arch/arm/mach-rockchip/Kconfig
doc/board/rockchip/rockchip.rst