]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: add support for enter to bootrom download mode
authorAndy Yan <andy.yan@rock-chips.com>
Wed, 11 Oct 2017 07:00:49 +0000 (15:00 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 21 Nov 2017 22:57:23 +0000 (23:57 +0100)
commitdc8ddf06fc35315a7b40815b5c7bbf38dec7e6bf
tree2d7e8ca16357be0841c67ec290bce002764426ab
parent6ce5b2397c23a046072c1092cc786aca19800617
rockchip: add support for enter to bootrom download mode

Rockchip bootrom will enter download mode if it returns from
spl/tpl with a non-zero value and couldn't find a valid image
in the backup partition.
This patch provide a method to instruct the system to back to
bootrom download mode by checking the BROM_DOWNLOAD_FLAG register.
As the bootrom download function relys on some modules such as
interrupts, so we need to back to bootrom as early as possbile
before the tpl/spl code override the interrupt configurations.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-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/boot_mode.h
arch/arm/mach-rockchip/Kconfig
arch/arm/mach-rockchip/bootrom.c