[U-Boot] [PATCH 00/24] rockchip: Migrate to use common board file

Kever Yang kever.yang at rock-chips.com
Mon Jul 22 12:01:57 UTC 2019


Rockchip SoCs have similar boot process, we can re-use
the same U-Boot proper board file for all SoCs, and avoid too much
copy-paste overhead.



Kever Yang (24):
  rockchip: rk3328: add board_debug_uart_init()
  rockchip: convert to use ROCKCHIP_BOOT_MODE_REG for fastboot tag
  rockchip: clean up board_usb_init() for all SoCs
  rockchip: add common board file for U-Boot proper
  rockchip: sdram_common: add common dram_init_banksize
  rockchip: rk3036: move dram_init() into soc file
  rockchip: rk3036: Migrate to use common board file
  rockchip: rk3128: Migrate to use common board file
  rockchip: rk322x: move SoC setting into arch_cpu_init()
  rockchip: rk322x: Migrate to use common board file
  rockchip: rk3188: Move SoC one time setting into arch_cpu_init()
  rockchip: rk3188: Migrate to use common board file
  rockchip: rk3288: move SOC setting into arch_cpu_init()
  rockchip: rk3288: move board_early_init_f() back to veyron
  rockchip: rk3288: Move veyron_init() back to veyron.c
  rockchip: rk3288: Move clock CMD to SoC file
  rockchip: rk3288: Move rk3288_detect_reset_reason to soc file
  rockchip: rk3288: Migrate to use common board file
  rockchip: rk3328: Migrate to use common board file
  rockchip: rk3328: Migrate to use common board file
  rockchip: rk3399: init vbus regulator in board_early_init_f()
  rockchip: rk3399: Migrate to use common board file
  rockchip: elgin-rv1108: use board_early_init_f for per-boar init
  rockchip: rv1108: Migrate to use common board file

 arch/arm/mach-rockchip/Kconfig                |  16 +
 arch/arm/mach-rockchip/Makefile               |   9 +-
 .../mach-rockchip/{rk3036-board.c => board.c} |  52 +--
 arch/arm/mach-rockchip/rk3036/rk3036.c        |  16 +
 arch/arm/mach-rockchip/rk3128-board.c         | 123 -------
 arch/arm/mach-rockchip/rk3128/rk3128.c        |   3 +
 arch/arm/mach-rockchip/rk3188-board.c         |  53 ---
 arch/arm/mach-rockchip/rk3188/rk3188.c        |  16 +
 arch/arm/mach-rockchip/rk322x-board.c         | 127 -------
 arch/arm/mach-rockchip/rk322x/rk322x.c        |  11 +
 arch/arm/mach-rockchip/rk3288-board.c         | 320 ------------------
 arch/arm/mach-rockchip/rk3288/rk3288.c        | 134 ++++++++
 arch/arm/mach-rockchip/rk3328/rk3328.c        |  56 ++-
 arch/arm/mach-rockchip/rk3368/rk3368.c        |  11 -
 arch/arm/mach-rockchip/rk3399-board.c         |  13 -
 arch/arm/mach-rockchip/rk3399/rk3399.c        |  11 -
 arch/arm/mach-rockchip/rv1108-board.c         |  81 -----
 arch/arm/mach-rockchip/rv1108/rv1108.c        |  10 -
 arch/arm/mach-rockchip/sdram_common.c         |  63 ++++
 .../popmetal_rk3288/popmetal-rk3288.c         |   2 +-
 board/elgin/elgin_rv1108/elgin_rv1108.c       |   4 +-
 board/google/veyron/veyron.c                  |  83 +++++
 board/phytec/phycore_rk3288/phycore-rk3288.c  |   2 +-
 board/rockchip/evb_px5/evb-px5.c              |   6 -
 board/rockchip/evb_rk3328/evb-rk3328.c        |  65 ----
 board/rockchip/evb_rk3399/evb-rk3399.c        |  15 +-
 board/rockchip/evb_rv1108/evb_rv1108.c        |  14 -
 board/rockchip/sheep_rk3368/sheep_rk3368.c    |  15 -
 board/rockchip/tinker_rk3288/tinker-rk3288.c  |   2 +-
 .../lion_rk3368/lion_rk3368.c                 |  18 -
 .../puma_rk3399/puma-rk3399.c                 |  15 -
 board/vamrs/rock960_rk3399/rock960-rk3399.c   |  15 -
 32 files changed, 426 insertions(+), 955 deletions(-)
 rename arch/arm/mach-rockchip/{rk3036-board.c => board.c} (61%)
 delete mode 100644 arch/arm/mach-rockchip/rk3128-board.c
 delete mode 100644 arch/arm/mach-rockchip/rk3188-board.c
 delete mode 100644 arch/arm/mach-rockchip/rk322x-board.c
 delete mode 100644 arch/arm/mach-rockchip/rk3288-board.c
 delete mode 100644 arch/arm/mach-rockchip/rk3399-board.c
 delete mode 100644 arch/arm/mach-rockchip/rv1108-board.c

-- 
2.17.1



More information about the U-Boot mailing list