]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: update boot0 hook
authorKever Yang <kever.yang@rock-chips.com>
Mon, 18 Dec 2017 07:05:41 +0000 (15:05 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 18 Dec 2017 15:56:05 +0000 (16:56 +0100)
commit270288544e12c7c98e4bc9a5b121517ba0a959d2
tree3f031bf8f52310cb8286d7d56eb3a6addcd058c3
parent81f53b0dafdfe9458f6d04fc5ec2732c2ea23a71
rockchip: update boot0 hook

Rockchip SoCs only need boot0 hook at SPL, and the U-Boot proper do not
need it.

The very beginning of U-Boot proper is different between armv7 and armv8:
armv7 start with ARM_VECTORS while armv8 start with 'b reset'.

Here is the map of very beginning for all cases:
armv7 SPL: TAG(overwrite 'b 1f')+'b reset' + ARM_VECTORS
armv7 U-Boot: ARM_VECTORS
armv8 SPL: TAG(overwrite 'b 1f')+'b reset' + Reserved_iram(rk3399)
armv8 U-Boot: 'b reset'

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/include/asm/arch-rockchip/boot0.h