]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mvebu: move DT boards to SoC-centric clock init
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 11 May 2013 01:08:09 +0000 (03:08 +0200)
committerJason Cooper <jason@lakedaemon.net>
Sun, 19 May 2013 19:49:57 +0000 (19:49 +0000)
SoC centric clock init for Armada 370/XP can be used by calling of_clk_init.
Use it and get rid of mvebu_clocks_init.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/Kconfig
arch/arm/mach-mvebu/armada-370-xp.c

index e11acbb0a46d4316c82f23cb333744cbab41d89f..65128372db26064b2ad9dd6ccdcc249e6b199d29 100644 (file)
@@ -10,9 +10,6 @@ config ARCH_MVEBU
        select PLAT_ORION
        select SPARSE_IRQ
        select CLKDEV_LOOKUP
-       select MVEBU_CLK_CORE
-       select MVEBU_CLK_CPU
-       select MVEBU_CLK_GATING
        select MVEBU_MBUS
        select ZONE_DMA if ARM_LPAE
 
@@ -29,6 +26,7 @@ config MACH_ARMADA_370_XP
 
 config MACH_ARMADA_370
        bool "Marvell Armada 370 boards"
+       select ARMADA_370_CLK
        select MACH_ARMADA_370_XP
        select PINCTRL_ARMADA_370
        help
@@ -37,6 +35,7 @@ config MACH_ARMADA_370
 
 config MACH_ARMADA_XP
        bool "Marvell Armada XP boards"
+       select ARMADA_XP_CLK
        select MACH_ARMADA_370_XP
        select PINCTRL_ARMADA_XP
        help
index 42a4cb3087e23ab04ea2e7e22971c1f38aeb9aa2..1d018e420208d62b42789e1d6d07f4777f927f0c 100644 (file)
 
 #include <linux/kernel.h>
 #include <linux/init.h>
+#include <linux/clk-provider.h>
 #include <linux/of_platform.h>
 #include <linux/io.h>
 #include <linux/time-armada-370-xp.h>
-#include <linux/clk/mvebu.h>
 #include <linux/dma-mapping.h>
 #include <linux/mbus.h>
 #include <linux/irqchip.h>
@@ -45,7 +45,7 @@ void __init armada_370_xp_map_io(void)
 
 void __init armada_370_xp_timer_and_clk_init(void)
 {
-       mvebu_clocks_init();
+       of_clk_init(NULL);
        armada_370_xp_timer_init();
 }