rockchip: sdram: Move all DT decoding to ofdata_to_platdata()
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:58:34 +0000 (11:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
commitfb4baf5d58c212f0b78ac125ee2d7c595b6437e9
treec2e4a379842983ecb453b26bbd963655b631f2ef
parent5ce4bb2709cea7bde2196ad5f3af11f8f3aa3375
rockchip: sdram: Move all DT decoding to ofdata_to_platdata()

It is more correct to avoid touching the device tree in the probe() method.
Update the driver to work this way. Note that only SPL needs to fiddle with
the SDRAM registers, so decoding the platform data fully is not necessary in
U-Boot proper.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-rockchip/sdram.h
arch/arm/mach-rockchip/rk3288/sdram_rk3288.c