[U-Boot] [U-Boot, v5, 10/18] rockchip: boot0 hook: support early return for RK3188/RK3066-style BROM
Philipp Tomsich
philipp.tomsich at theobroma-systems.com
Tue Nov 7 14:18:46 UTC 2017
> Some Rockchip BROM versions (e.g. the RK3188 and RK3066) first read 1KB data
> from NAND into SRAM and executes it. Then, following a return to bootrom, the
> BROM loads additional code to SRAM (not overwriting the first block read) and
> reenters at the same address as the first time.
>
> To support booting either a TPL (on the RK3066) or SPL (on the RK3188) using
> this model of having to count entries, this commit adds code to the boot0
> hook to track the number of entries and handle them accordingly.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> Signed-off-by: Paweł Jarosz <paweljarosz3691 at gmail.com>
> Tested-by: Andy Yan <andy.yan at rock-chips.com>
> ---
>
> Changes in v5:
> - set return value to 0 before returning to the BROM
>
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
> arch/arm/include/asm/arch-rockchip/boot0.h | 25 +++++++++++++++++++------
> arch/arm/mach-rockchip/Kconfig | 28 ++++++++++++++++++++++++++++
> 2 files changed, 47 insertions(+), 6 deletions(-)
>
Applied to u-boot-rockchip/next, thanks!
More information about the U-Boot
mailing list