diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-05-10 21:08:09 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2013-05-29 15:21:20 -0400 |
commit | 9cbbc51551522efbc8313d45178a3415fd474eab (patch) | |
tree | 8bc506d82ceec2d0fa73c28b0f0d245408140030 /arch/arm/mach-mvebu | |
parent | ed9f30a273d3868737104d17234859ca02c857b7 (diff) |
ARM: mvebu: move DT boards to SoC-centric clock init
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>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r-- | arch/arm/mach-mvebu/Kconfig | 5 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/armada-370-xp.c | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index 381062d90c1d..ef4e21cf36bf 100644 --- a/arch/arm/mach-mvebu/Kconfig +++ b/arch/arm/mach-mvebu/Kconfig | |||
@@ -10,9 +10,6 @@ config ARCH_MVEBU | |||
10 | select PLAT_ORION | 10 | select PLAT_ORION |
11 | select SPARSE_IRQ | 11 | select SPARSE_IRQ |
12 | select CLKDEV_LOOKUP | 12 | select CLKDEV_LOOKUP |
13 | select MVEBU_CLK_CORE | ||
14 | select MVEBU_CLK_CPU | ||
15 | select MVEBU_CLK_GATING | ||
16 | select MVEBU_MBUS | 13 | select MVEBU_MBUS |
17 | select ZONE_DMA if ARM_LPAE | 14 | select ZONE_DMA if ARM_LPAE |
18 | select MIGHT_HAVE_PCI | 15 | select MIGHT_HAVE_PCI |
@@ -31,6 +28,7 @@ config MACH_ARMADA_370_XP | |||
31 | 28 | ||
32 | config MACH_ARMADA_370 | 29 | config MACH_ARMADA_370 |
33 | bool "Marvell Armada 370 boards" | 30 | bool "Marvell Armada 370 boards" |
31 | select ARMADA_370_CLK | ||
34 | select MACH_ARMADA_370_XP | 32 | select MACH_ARMADA_370_XP |
35 | select PINCTRL_ARMADA_370 | 33 | select PINCTRL_ARMADA_370 |
36 | help | 34 | help |
@@ -39,6 +37,7 @@ config MACH_ARMADA_370 | |||
39 | 37 | ||
40 | config MACH_ARMADA_XP | 38 | config MACH_ARMADA_XP |
41 | bool "Marvell Armada XP boards" | 39 | bool "Marvell Armada XP boards" |
40 | select ARMADA_XP_CLK | ||
42 | select MACH_ARMADA_370_XP | 41 | select MACH_ARMADA_370_XP |
43 | select PINCTRL_ARMADA_XP | 42 | select PINCTRL_ARMADA_XP |
44 | help | 43 | help |
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c index 42a4cb3087e2..1d018e420208 100644 --- a/arch/arm/mach-mvebu/armada-370-xp.c +++ b/arch/arm/mach-mvebu/armada-370-xp.c | |||
@@ -14,10 +14,10 @@ | |||
14 | 14 | ||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/clk-provider.h> | ||
17 | #include <linux/of_platform.h> | 18 | #include <linux/of_platform.h> |
18 | #include <linux/io.h> | 19 | #include <linux/io.h> |
19 | #include <linux/time-armada-370-xp.h> | 20 | #include <linux/time-armada-370-xp.h> |
20 | #include <linux/clk/mvebu.h> | ||
21 | #include <linux/dma-mapping.h> | 21 | #include <linux/dma-mapping.h> |
22 | #include <linux/mbus.h> | 22 | #include <linux/mbus.h> |
23 | #include <linux/irqchip.h> | 23 | #include <linux/irqchip.h> |
@@ -45,7 +45,7 @@ void __init armada_370_xp_map_io(void) | |||
45 | 45 | ||
46 | void __init armada_370_xp_timer_and_clk_init(void) | 46 | void __init armada_370_xp_timer_and_clk_init(void) |
47 | { | 47 | { |
48 | mvebu_clocks_init(); | 48 | of_clk_init(NULL); |
49 | armada_370_xp_timer_init(); | 49 | armada_370_xp_timer_init(); |
50 | } | 50 | } |
51 | 51 | ||