rockchip: sdram: Update the driver to support of-platdata
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:58:35 +0000 (11:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
commit086ec0e26d6117f492bad138b4dbee9318ff61bd
tree62f6460ed59a305d81b5ae3ed35655316278b2a0
parentfb4baf5d58c212f0b78ac125ee2d7c595b6437e9
rockchip: sdram: Update the driver to support of-platdata

Add support for of-platdata with rk3288 SDRAM initr. This requires decoding
the of-platdata struct and setting up the device from that. Also the driver
needs to be renamed to match the string that of-platdata will search for.

The platform data is copied from the of-platdata structure to the one used
by the driver. This allows the same code to be used with device tree and
of-platdata.

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