memory: emif: Load the correct custom config values from dt
authorLokesh Vutla <lokeshvutla@ti.com>
Sat, 16 Mar 2013 06:16:48 +0000 (11:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:18:13 +0000 (13:18 -0700)
commitf57f27bc6ed7106276004dd224aaeeb160a5b4b8
tree91467ef4a24198697de7074b45d7eaa9553bf443
parentf02503b2ff73d3b09ca27335304611a206d2b54a
memory: emif: Load the correct custom config values from dt

of_get_property returns value in Big Endian format.
Before using this value it should be converted to little endian
using be32_to_cpup().
Custom configs of emif are read from dt using of_get_property,
but these are not converted to litte endian format.
Correcting the same here.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/memory/emif.c