Skip to content

Add sdram capacity auto detect for rk3288

Kever Yang u-boot 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v2 posting 3/30 of 3 patches 0 repliesSuperseded
  3. v2 posting 2/30 of 3 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/33 patches0 repliesSuperseded
v10 of 2 patches0 repliesSuperseded

Changes in v3 from the cover letter

- move the config into defconfig file
- add error report and return value when error happen
- add comments for stride and address bits.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rk3288: config change for enable dram capacity auto-detect.configs/evb-rk3288_defconfig configs/fennec-rk3288_defconfig configs/miniarm-rk3288_defconfig +1 more+4 -02 replies
2/3rk3288: sdram: auto-detect the capacityarch/arm/include/asm/arch-rockchip/sdram.h arch/arm/mach-rockchip/rk3288/sdram_rk3288.c+245 -423 replies
3/3dts: rk3288: remove node in dmc which not need anymorearch/arm/dts/rk3288-evb.dts arch/arm/dts/rk3288-fennec.dts arch/arm/dts/rk3288-firefly.dts +4 more+0 -182 replies

Reviews trailers per patch

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

PatchSimon GlassVagrant Cascadian
1/3A-b
2/3T-b A-b T-b T-b
3/3A-b T-b A-b T-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/3] Add sdram capacity auto detect for rk3288

The rk3288 spl size is very close to 32KB while the rk3288 bootrom has the limitation of maximum size of SPL is 32KB. After apply this patch, the SPL size will exceed 32KB if we do not enable macro CONFIG_ROCKCHIP_SPL_BACK_TO_BROM and disable CONFIG_SPL_MMC_SUPPORT.

This patch has test with 2GB DDR3 and 2GB/4GB LPDDR3.

V2 add patch to clean some source code size for some rk3288 board to make the SPL size in the 32KB limitation.

Changes in v3:
- move the config into defconfig file
- add error report and return value when error happen
- add comments for stride and address bits.

Changes in v2:
- update code for OF_PLATDATA enabled
- bug fix for ddrconfig

Kever Yang (3):
rk3288: config change for enable dram capacity auto-detect.
rk3288: sdram: auto-detect the capacity
dts: rk3288: remove node in dmc which not need anymore

 arch/arm/dts/rk3288-evb.dts                  |   3 -
 arch/arm/dts/rk3288-fennec.dts               |   3 -
 arch/arm/dts/rk3288-firefly.dts              |   2 -
 arch/arm/dts/rk3288-miniarm.dts              |   3 -
 arch/arm/dts/rk3288-popmetal.dts             |   3 -
 arch/arm/dts/rk3288-rock2-square.dts         |   2 -
 arch/arm/dts/rk3288-veyron.dtsi              |   2 -
 arch/arm/include/asm/arch-rockchip/sdram.h   |  15 ++
 arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 272 ++++++++++++++++++++++-----
 configs/evb-rk3288_defconfig                 |   1 +
 configs/fennec-rk3288_defconfig              |   1 +
 configs/miniarm-rk3288_defconfig             |   1 +
 configs/popmetal-rk3288_defconfig            |   1 +
 13 files changed, 249 insertions(+), 60 deletions(-)
Signature · 1 line
1.9.1