arm: mxs: olinuxino: move DRAM config tuning to SPL
authorJan Luebbe <jlu@pengutronix.de>
Sun, 14 Dec 2014 15:34:49 +0000 (16:34 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Dec 2014 14:32:14 +0000 (15:32 +0100)
commit7ae350a0305de592faa8903255c988d4e6afb194
tree2a2dcf7c620963a5d2eec519ef624bd600bb4995
parent76494f7ac38ef97510c2e9ef13943e472f0d2702
arm: mxs: olinuxino: move DRAM config tuning to SPL

The weak mxs_adjust_memory_params function is called from spl_mem_init.c,
so it must be linked into the SPL to have an effect. Move it from
mx23_olinuxino.c to spl_boot.c.

This change was verified by reading back the register values.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
board/olimex/mx23_olinuxino/mx23_olinuxino.c
board/olimex/mx23_olinuxino/spl_boot.c