memory: mvebu-devbus: split functions
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 22 Apr 2014 21:26:11 +0000 (23:26 +0200)
committerJason Cooper <jason@lakedaemon.net>
Tue, 29 Apr 2014 13:16:53 +0000 (13:16 +0000)
commit30bd30b603462ae64a0b261a704a8b2b070c6688
tree863cef40485f2197fe2a9fd8df67dfc32652fade
parent8a33692ee8f10f1ceb38001101a4f55de921d726
memory: mvebu-devbus: split functions

The mvebu-devbus driver currently only supports the Armada 370/XP
family, but it can also cover the Orion5x family. However, the Orion5x
family has a different organization of the registers.

Therefore, in preparation to the introduction of Orion5x support, we
separate into two functions the code that 1/ retrieves the timing
parameters from the Device Tree and 2/ applies those timings
parameters into the hardware registers.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Link: https://lkml.kernel.org/r/1398202002-28530-8-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/memory/mvebu-devbus.c