Skip to content

RFC arm64: rk3399: enable SPL with ATF support

Kever Yang u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [RFC PATCH 0/3] arm64: rk3399: enable SPL with ATF support

Hi Michal,

Quoted 3 lines · Michal Simek

Hi,

separation of rk3399 SPL from ATF SPL would be worth.

Thanks for your comment, this may help my rk3399 SPL patches get accept faster.
I will do it after people get back from holiday and send me other comments.

Thanks,
- Kever

Quoted 58 lines

Thanks,
Michal

Quoted 50 lines · Kever Yang

RK3399 SPL is not enable bacause of the lack of ATF support in SPL, after port some source code from ATF, I manage to enable the support for ATF in SPL. This patch set depends on some patch for SPL support multi binary in FIT which is from Andre.

The patch of sdram controller is still not clean, because I want to get comments from upstream.I port this driver from coreboot, and I don't want to make much change on it. The rk3399 dram controller has many registers to config, I want to make them directly used by driver instead of parse and copy them one by one from dts.

Another part of comment is welcome for the implementation of spl_atf.c and the entry in spl.c

Kever Yang (3):
arm64: rk3399: add SPL support
arm64: rk3399: add ddr controller driver
spl: add support to booting with ATF

  arch/arm/Kconfig                                   |    1 +
  arch/arm/dts/rk3399.dtsi                           |   24 +
  arch/arm/include/asm/arch-rockchip/grf_rk3399.h    |  118 ++
  arch/arm/include/asm/arch-rockchip/sdram_rk3399.h  |  188 +++
  arch/arm/mach-rockchip/Kconfig                     |    2 +
  arch/arm/mach-rockchip/Makefile                    |    1 +
  arch/arm/mach-rockchip/rk3399-board-spl.c          |  157 ++
  arch/arm/mach-rockchip/rk3399/Makefile             |    1 +
  arch/arm/mach-rockchip/rk3399/sdram-lpddr3-4GB.inc | 1565 ++++++++++++++++++++
  arch/arm/mach-rockchip/rk3399/sdram_rk3399.c       | 1121 ++++++++++++++
  common/spl/Kconfig                                 |   14 +
  common/spl/Makefile                                |    1 +
  common/spl/spl.c                                   |    4 +
  common/spl/spl_atf.c                               |   91 ++
  configs/evb-rk3399_defconfig                       |   17 +
  drivers/clk/rockchip/clk_rk3399.c                  |   42 +-
  drivers/pinctrl/rockchip/pinctrl_rk3399.c          |  106 --
  include/atf_common.h                               |  295 ++++
  include/configs/rk3399_common.h                    |   11 +
  include/dt-bindings/clock/rk3399-cru.h             |   16 +-
  include/spl.h                                      |    1 +
  21 files changed, 3663 insertions(+), 113 deletions(-)

create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_rk3399.h create mode 100644 arch/arm/mach-rockchip/rk3399-board-spl.c create mode 100644 arch/arm/mach-rockchip/rk3399/sdram-lpddr3-4GB.inc create mode 100644 arch/arm/mach-rockchip/rk3399/sdram_rk3399.c create mode 100644 common/spl/spl_atf.c
create mode 100644 include/atf_common.h