Most rockchip platform based boards use a key to instruct the board enter download firmware mode, some boards use a adc to detect the key status, and some use a gpio.
This series try to implement all the download mode related functions. Changes in v2: - correct the rk322x boot mode register address - make the help text more clear - implement the back to bootrom download mode check in c, thanks for Dr. Philipp Tomsich's suggestion. - more document - move adc key detect as the defaut Andy Yan (3): rockchip: make boot_mode related codes reused across all platforms rockchip: add support for enter to bootrom download mode rockchip: check download key before bootup arch/arm/include/asm/arch-rockchip/boot_mode.h | 7 +++ arch/arm/include/asm/arch-rockchip/bootrom.h | 15 ++++- arch/arm/mach-rockchip/Kconfig | 15 +++++ arch/arm/mach-rockchip/Makefile | 4 ++ arch/arm/mach-rockchip/boot_mode.c | 76 ++++++++++++++++++++++++++ arch/arm/mach-rockchip/bootrom.c | 31 ++++++++++- arch/arm/mach-rockchip/rk3036-board.c | 24 -------- arch/arm/mach-rockchip/rk322x-board.c | 24 -------- arch/arm/mach-rockchip/rk3288-board.c | 25 --------- arch/arm/mach-rockchip/rk3399-board.c | 14 +++++ arch/arm/mach-rockchip/save_boot_param.S | 25 ++++++--- 11 files changed, 177 insertions(+), 83 deletions(-) create mode 100644 arch/arm/mach-rockchip/boot_mode.c create mode 100644 arch/arm/mach-rockchip/rk3399-board.c -- 2.7.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot