[U-Boot] [PATCH v2 0/8] rockchip: rk3399: Use spl_board_init in SPL, TPL

Jagan Teki jagan at amarulasolutions.com
Thu Jun 20 18:54:58 UTC 2019


This is v2 set for previous v1. No much diff, except the
latest rebase.

Usually spl_board_init has preloader_console_init which
would help to print boot up banner during SPL and TPL.

The current rk3399 lacking that in few of the boards, 
this series make reuse of spl_board_init in SPL and TPL stages.

with this series:
================

U-Boot TPL 2019.07-rc1-00243-g3f0cad6bd2 (May 08 2019 - 11:29:32 +0530)
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2019.07-rc1-00243-g3f0cad6bd2 (May 08 2019 - 11:29:32 +0530)
Trying to boot from MMC1


U-Boot 2019.07-rc1-00243-g3f0cad6bd2 (May 08 2019 - 11:29:32 +0530)

Model: FriendlyElec NanoPC-T4
DRAM:  3.9 GiB
MMC:   dwmmc at fe310000: 2, dwmmc at fe320000: 1, sdhci at fe330000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial at ff1a0000
Out:   serial at ff1a0000
Err:   serial at ff1a0000
Model: FriendlyElec NanoPC-T4
Net:   eth0: ethernet at fe300000
Hit any key to stop autoboot:  0 
=>

without this series:
===================

U-Boot TPL board init
Trying to boot from BOOTROM
Returning to boot ROM...
U-Boot SPL board init
Trying to boot from MMC1

U-Boot 2019.07-rc1-00243-g3f0cad6bd2 (May 08 2019 - 11:29:32 +0530)

Model: FriendlyElec NanoPC-T4
DRAM:  3.9 GiB
MMC:   dwmmc at fe310000: 2, dwmmc at fe320000: 1, sdhci at fe330000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial at ff1a0000
Out:   serial at ff1a0000
Err:   serial at ff1a0000
Model: FriendlyElec NanoPC-T4
Net:   eth0: ethernet at fe300000
Hit any key to stop autoboot:  0 
=>

Any inputs?
Jagan.

Jagan Teki (8):
  board: rk3399: Drop explicit uart enablement in spl_board_init
  rockchip: rk3399: Support common spl_board_init
  rockchip: rk3399: spl: Mark printascii into debug
  rockchip: rk3399: Move u-boot, dm-pre-reloc of uart0, uart2
  rockchip: rk3399: Enable SPL_BOARD_INIT
  rockchip: rk3399: tpl: Add spl_board_init
  rockchip: rk3399: tpl: Mark printascii into debug
  rockchip: rk3399: Enable TPL_BOARD_INIT

 arch/arm/dts/rk3399-gru.dtsi                  |  1 -
 arch/arm/dts/rk3399-puma.dtsi                 |  1 -
 arch/arm/dts/rk3399-u-boot.dtsi               |  8 +++
 arch/arm/mach-rockchip/Kconfig                |  2 +
 arch/arm/mach-rockchip/rk3399-board-spl.c     | 65 ++++++++++++++++++-
 arch/arm/mach-rockchip/rk3399-board-tpl.c     |  9 ++-
 board/rockchip/evb_rk3399/evb-rk3399.c        | 29 ---------
 .../puma_rk3399/puma-rk3399.c                 | 58 -----------------
 board/vamrs/rock960_rk3399/rock960-rk3399.c   | 31 ---------
 configs/puma-rk3399_defconfig                 |  1 -
 10 files changed, 82 insertions(+), 123 deletions(-)

-- 
2.18.0.321.gffc6fa0e3



More information about the U-Boot mailing list