]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: dts: rk3328: fix sdram params
authorJonas Karlman <jonas@kwiboo.se>
Fri, 10 Feb 2023 18:30:05 +0000 (18:30 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:26 +0000 (18:07 +0800)
commit6c2327ff4586d625ad16bce49a9051403e1642f9
tree0caf07464e99143bff8f46679ae280c35fa2e708
parent68afd9ea1cda84711e270dee041811bc54ab0fdf
rockchip: dts: rk3328: fix sdram params

The rk3328 sdram driver read sdram parameters from the devicetree into a
struct rk3328_sdram_params using dev_read_u32_array.

After commit 5c8da345e55c ("ram: rockchip: Update ddr pctl regs for px30")
changed the size of struct ddr_pctl_regs, a member of struct
rk3328_sdram_params, U-Boot TPL can no longer initialize DRAM on RK3328.

Add ten u32 to the sdram parameter array in devicetree to align with
this size change. This fixes DRAM initialization on RK3328.

Fixes: 5c8da345e55c ("ram: rockchip: Update ddr pctl regs for px30")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # roc-rk3328-cc
arch/arm/dts/rk3328-sdram-ddr3-666.dtsi
arch/arm/dts/rk3328-sdram-ddr4-666.dtsi
arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi
arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi