Skip to content

rk3399: enable SPL driver

Kever Yang u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v29 patches 0 repliesSuperseded
  3. v10 of 6 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- enable driver without of-platdata
- add binding file for sdram driver
- some fix base on Simon's comment.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm64: rk3399: add ddr controller driverarch/arm/dts/rk3399-sdram-lpddr3-4GB-1600.dtsi arch/arm/include/asm/arch-rockchip/sdram_rk3399.h arch/arm/mach-rockchip/rk3399/Makefile +3 more+3020 -02 replies
2/4dts: rk3399: update for spl require driverarch/arm/dts/rk3399-evb.dts arch/arm/dts/rk3399.dtsi+46 -01 reply
3/4arm64: rk3399: add SPL supportarch/arm/Kconfig arch/arm/mach-rockchip/Kconfig arch/arm/mach-rockchip/Makefile +2 more+168 -01 reply
4/4config: rk3399: enable SPL config for evb-rk3399configs/evb-rk3399_defconfig include/configs/rk3399_common.h+23 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/4A-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/4] rk3399: enable SPL driver

This series patch enable basic driver for rk3399 SPL, the ATF support has been split as a separate patch.

SPL_OF_PLATDATA is consider as recommend option because the dram driver has much configuration parameter from dts, we can save some boot time if we don't do the copy.

Other driver like clock, pinctrl, sdhci has update to support OF-PLATDATA.

Patches that have been applied are removed from this version.

Changes in v3:
- enable driver without of-platdata
- add binding file for sdram driver
- some fix base on Simon's comment.

Changes in v2:
- use lower-case hex for input dts data
- using rk3288 like style to encode/decode sys_reg
- gather some parameters as base params in rk3399_sdram_params
- add some missing comment
- split SPL patch into 4 patches

Changes in v1:
- use dts for parameter
- get all controller base address from dts instead of hard code
- gather all controller into dram_info instead of separate global variables.
- add return value for error case

Kever Yang (4):
arm64: rk3399: add ddr controller driver
dts: rk3399: update for spl require driver
arm64: rk3399: add SPL support
config: rk3399: enable SPL config for evb-rk3399

 arch/arm/Kconfig                                   |    1 +
 arch/arm/dts/rk3399-evb.dts                        |    2 +
 arch/arm/dts/rk3399-sdram-lpddr3-4GB-1600.dtsi     | 1536 ++++++++++++++++++++
 arch/arm/dts/rk3399.dtsi                           |   44 +
 arch/arm/include/asm/arch-rockchip/sdram_rk3399.h  |  119 ++
 arch/arm/mach-rockchip/Kconfig                     |    2 +
 arch/arm/mach-rockchip/Makefile                    |    1 +
 arch/arm/mach-rockchip/rk3399-board-spl.c          |  158 ++
 arch/arm/mach-rockchip/rk3399/Makefile             |    1 +
 arch/arm/mach-rockchip/rk3399/rk3399.c             |    1 +
 arch/arm/mach-rockchip/rk3399/sdram_rk3399.c       | 1321 +++++++++++++++++
 configs/evb-rk3399_defconfig                       |   18 +
 .../clock/rockchip,rk3399-dmc.txt                  |   42 +
 include/configs/rk3399_common.h                    |   11 +
 14 files changed, 3257 insertions(+)
 create mode 100644 arch/arm/dts/rk3399-sdram-lpddr3-4GB-1600.dtsi
 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_rk3399.c
 create mode 100644 doc/device-tree-bindings/clock/rockchip,rk3399-dmc.txt
Signature · 1 line
1.9.1