clk: mvebu: refactor corediv driver to support more SoC
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 14 Feb 2014 20:15:02 +0000 (17:15 -0300)
committerJason Cooper <jason@lakedaemon.net>
Mon, 17 Feb 2014 02:33:57 +0000 (02:33 +0000)
commitc642e6a95bbb0bee488078b740ee5b3bac57f7fb
tree58b3b5c21cda79b7a43782dbea1e51035a343ba7
parent846f33e6c31ca0a9665a6754af8432dd558a0fc3
clk: mvebu: refactor corediv driver to support more SoC

This commit refactors the corediv clock driver so that it is capable
of handling various SOCs that have slightly different corediv clock
registers and capabilities.

It introduces a clk_corediv_soc_desc structure that encapsulates all
the SoC specific details.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/clk/mvebu/clk-corediv.c