From: Philipp Tomsich Date: Tue, 12 Sep 2017 17:47:45 +0200 Subject: [U-Boot] rockchip: add support for backing to bootrom download mode In-Reply-To: <1505111271-17489-1-git-send-email-andy.yan@rock-chips.com> References: <1505111271-17489-1-git-send-email-andy.yan@rock-chips.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Rockchip bootrom will enter download mode if it returns from > spl/tpl with a none-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/tps code override the interrupt settings. > > Signed-off-by: Andy Yan > Reviewed-by: Kever Yang > --- > > arch/arm/include/asm/arch-rockchip/bootrom.h | 2 +- > arch/arm/mach-rockchip/Kconfig | 13 +++++++ > arch/arm/mach-rockchip/bootrom.c | 2 +- > arch/arm/mach-rockchip/save_boot_param.S | 57 +++++++++++++++++++++++----- > 4 files changed, 63 insertions(+), 11 deletions(-) > Acked-by: Philipp Tomsich