]> git.ipfire.org Git - people/ms/u-boot.git/commit
rockchip: rk3288: correct sdram setting
authorChris Zhong <zyw@rock-chips.com>
Mon, 7 Mar 2016 06:51:13 +0000 (14:51 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 10 Mar 2016 15:32:01 +0000 (08:32 -0700)
commitb5788dc0dd9570e98552833767f4373db965985d
treef9652cbfc5be0ec95d4641f3d0b4e77a28ccb820
parent87cef34576f5d0e7f094d99521e57537fef256de
rockchip: rk3288: correct sdram setting

The DMC driver in v3.14 kernel[0] get the ddr setting from PMU_SYS_REG2,
and it expects uboot to store the value using a same protocol. But now
the ddr setting value is different with DMC, so if you enable the DMC,
system would crash in kernel. Correct the sdram setting here, according
to the requirements of kernel.

[0]
https://chromium.googlesource.com/chromiumos/third_party/kernel/+/
chromeos-3.14/drivers/clk/rockchip/clk-rk3288-dmc.c

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/rk3288/sdram_rk3288.c