[U-Boot] [PATCH v2 0/3] support enter download mode on rockchip platform

Andy Yan andy.yan at rock-chips.com
Thu Sep 14 08:51:06 UTC 2017


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




More information about the U-Boot mailing list