u-boot-brain/arch/arm/mach-rockchip
Philipp Tomsich b377d22264 rockchip: boot0 hook: support early return for RK3188/RK3066-style BROM
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@theobroma-systems.com>
Signed-off-by: Paweł Jarosz <paweljarosz3691@gmail.com>
Tested-by: Andy Yan <andy.yan@rock-chips.com>
2017-11-21 23:57:22 +01:00
..
rk322x rockchip: rk322x: add basic soc support 2017-07-11 12:13:46 +02:00
rk3036 rockchip: rk3036: sync os_reg2 define with other soc 2017-07-11 12:13:48 +02:00
rk3188 rockchip: rk3188: move sdram driver to driver/ram 2017-10-01 00:33:31 +02:00
rk3288 rk3288: vyasa: Add TPL support 2017-10-01 00:33:33 +02:00
rk3328 rockchip: rk3328: fix rockchip_get_cru api 2017-11-01 11:21:32 +01:00
rk3368 rockchip: rk3368: spl: move SPL_LDSCRIPT to Kconfig 2017-08-13 17:15:08 +02:00
rk3399 rockchip: rk3399: move sdram driver to driver/ram 2017-10-01 00:33:31 +02:00
rv1108 rockchip: Add basic support for evb-rv1108 board 2017-06-07 07:29:25 -06:00
bootrom.c rockchip: back-to-bootrom: simplify the #ifdef-check for LIBCOMMON in TPL/SPL 2017-08-13 17:12:19 +02:00
Kconfig rockchip: boot0 hook: support early return for RK3188/RK3066-style BROM 2017-11-21 23:57:22 +01:00
Makefile rk3288: vyasa: Add TPL support 2017-10-01 00:33:33 +02:00
rk322x-board-spl.c rockchip: rk322x: set the DDR region as non-secure in SPL 2017-08-13 17:15:08 +02:00
rk322x-board.c rockchip: rk322x: update the sysreg number for boot mode 2017-10-01 00:33:34 +02:00
rk3036-board-spl.c rockchip: enable SPL_LIBGENERIC for rk3036 based boards 2017-07-27 14:59:04 +02:00
rk3036-board.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
rk3188-board-spl.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
rk3188-board-tpl.c rockchip: rk3188: Cleanup some SPL/TPL rename leftovers 2017-04-04 20:01:57 -06:00
rk3188-board.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
rk3288-board-spl.c rk3288: spl: Add dram_init_banksize 2017-10-01 00:33:35 +02:00
rk3288-board-tpl.c rk3288: vyasa: Add TPL support 2017-10-01 00:33:33 +02:00
rk3288-board.c rockchip: rk3288: Add reset reason detection 2017-09-05 11:04:35 +02:00
rk3368-board-spl.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
rk3368-board-tpl.c rockchip: rk3368: remove setup of secure timer from TPL/SPL 2017-08-13 17:12:36 +02:00
rk3399-board-spl.c rockchip: spl: rk3399: implement chip-specific board_spl_was_booted_from() 2017-10-01 00:33:34 +02:00
rk_timer.c rockchip: timer: make register sizes explicit 2017-07-27 14:59:00 +02:00
save_boot_param.S rockchip: back-to-bootrom: add 'back-to-bootrom' support for AArch64 2017-08-13 17:12:19 +02:00
sdram_common.c rockchip: add sdram_common for common functions 2017-07-11 12:13:44 +02:00
spl-boot-order.c rockchip: spl: support a 'same-as-spl'-specifier in the spl-boot-order 2017-10-01 00:33:34 +02:00