]> git.ipfire.org Git - people/ms/u-boot.git/commit - arch/arm/mach-rockchip/Kconfig
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)
commitb4d23f76430768c5eef0cc7f3d7fd2e0a420a3e0
tree2d7e8ca16357be0841c67ec290bce002764426ab
parente3067793c3109744a445f692395b9a3bac778e48
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