RFC arm64: rk3399: enable SPL with ATF support
Get series with b4
b4 am [email protected]Versions newest first
- 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.
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,
MichalQuoted 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.cand the entry inspl.cKever Yang (3):
arm64: rk3399: add SPL support
arm64: rk3399: add ddr controller driver
spl: add support to booting with ATFarch/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.hcreate mode 100644arch/arm/mach-rockchip/rk3399-board-spl.ccreate mode 100644arch/arm/mach-rockchip/rk3399/sdram-lpddr3-4GB.inccreate mode 100644arch/arm/mach-rockchip/rk3399/sdram_rk3399.ccreate mode 100644common/spl/spl_atf.c
create mode 100644include/atf_common.h