diff options
author | Olof Johansson <olof@lixom.net> | 2013-06-01 02:23:25 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-06-01 02:23:25 -0400 |
commit | 85b9174fda1d516198b4a46a7795e43636a3ea4c (patch) | |
tree | 2721a32c07ca3e1d46df573a19b4e92853688966 /arch | |
parent | 2dbefbf6a803d65f6327fe617f5e1960f218ce01 (diff) | |
parent | ea7e0bd7e78868bbe6df6834595ef96166dd296a (diff) |
Merge tag 'seb_clk-3.11' of git://git.infradead.org/users/jcooper/linux into next/soc
From Jason Cooper:
mvebu clock restructuring for v3.11
- clk: mvebu
- reorganize by SoC to remove built up #ifdefs
- add clk flags per clock gate
* tag 'seb_clk-3.11' of git://git.infradead.org/users/jcooper/linux:
clk: mvebu: disintegrate obsolete file
ARM: mvebu: move DT boards to SoC-centric clock init
ARM: kirkwood: move DT boards to SoC-centric clock init
ARM: dove: move DT boards to SoC-centric clock init
clk: mvebu: add Armada XP SoC-centric clock init
clk: mvebu: add Armada 370 SoC-centric clock init
clk: mvebu: add Kirkwood SoC-centric clock init
clk: mvebu: add Dove SoC-centric clock init
clk: mvebu: add common clock functions for core clk and clk gating
clk: mvebu: introduce per-clock-gate flags
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-dove/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-dove/board-dt.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-dove/common.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-dt.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/Kconfig | 5 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/armada-370-xp.c | 4 |
7 files changed, 8 insertions, 14 deletions
diff --git a/arch/arm/mach-dove/Kconfig b/arch/arm/mach-dove/Kconfig index 36469d813951..dff7b2fd4e20 100644 --- a/arch/arm/mach-dove/Kconfig +++ b/arch/arm/mach-dove/Kconfig | |||
@@ -22,8 +22,7 @@ config MACH_CM_A510 | |||
22 | 22 | ||
23 | config MACH_DOVE_DT | 23 | config MACH_DOVE_DT |
24 | bool "Marvell Dove Flattened Device Tree" | 24 | bool "Marvell Dove Flattened Device Tree" |
25 | select MVEBU_CLK_CORE | 25 | select DOVE_CLK |
26 | select MVEBU_CLK_GATING | ||
27 | select REGULATOR | 26 | select REGULATOR |
28 | select REGULATOR_FIXED_VOLTAGE | 27 | select REGULATOR_FIXED_VOLTAGE |
29 | select USE_OF | 28 | select USE_OF |
diff --git a/arch/arm/mach-dove/board-dt.c b/arch/arm/mach-dove/board-dt.c index 0b142803b2e1..f3755ac81148 100644 --- a/arch/arm/mach-dove/board-dt.c +++ b/arch/arm/mach-dove/board-dt.c | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/clk-provider.h> | 12 | #include <linux/clk-provider.h> |
13 | #include <linux/clk/mvebu.h> | ||
14 | #include <linux/of.h> | 13 | #include <linux/of.h> |
15 | #include <linux/of_platform.h> | 14 | #include <linux/of_platform.h> |
16 | #include <linux/platform_data/usb-ehci-orion.h> | 15 | #include <linux/platform_data/usb-ehci-orion.h> |
@@ -49,7 +48,7 @@ static void __init dove_legacy_clk_init(void) | |||
49 | 48 | ||
50 | static void __init dove_of_clk_init(void) | 49 | static void __init dove_of_clk_init(void) |
51 | { | 50 | { |
52 | mvebu_clocks_init(); | 51 | of_clk_init(NULL); |
53 | dove_legacy_clk_init(); | 52 | dove_legacy_clk_init(); |
54 | } | 53 | } |
55 | 54 | ||
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index e2b5da031f96..2a9443d04d92 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c | |||
@@ -9,7 +9,6 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/clk-provider.h> | 11 | #include <linux/clk-provider.h> |
12 | #include <linux/clk/mvebu.h> | ||
13 | #include <linux/dma-mapping.h> | 12 | #include <linux/dma-mapping.h> |
14 | #include <linux/init.h> | 13 | #include <linux/init.h> |
15 | #include <linux/of.h> | 14 | #include <linux/of.h> |
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig index b56bd3d7ece3..e610e137aa36 100644 --- a/arch/arm/mach-kirkwood/Kconfig +++ b/arch/arm/mach-kirkwood/Kconfig | |||
@@ -128,13 +128,12 @@ comment "Device tree entries" | |||
128 | 128 | ||
129 | config ARCH_KIRKWOOD_DT | 129 | config ARCH_KIRKWOOD_DT |
130 | bool "Marvell Kirkwood Flattened Device Tree" | 130 | bool "Marvell Kirkwood Flattened Device Tree" |
131 | select KIRKWOOD_CLK | ||
131 | select POWER_SUPPLY | 132 | select POWER_SUPPLY |
132 | select POWER_RESET | 133 | select POWER_RESET |
133 | select POWER_RESET_GPIO | 134 | select POWER_RESET_GPIO |
134 | select REGULATOR | 135 | select REGULATOR |
135 | select REGULATOR_FIXED_VOLTAGE | 136 | select REGULATOR_FIXED_VOLTAGE |
136 | select MVEBU_CLK_CORE | ||
137 | select MVEBU_CLK_GATING | ||
138 | select USE_OF | 137 | select USE_OF |
139 | help | 138 | help |
140 | Say 'Y' here if you want your kernel to support the | 139 | Say 'Y' here if you want your kernel to support the |
diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach-kirkwood/board-dt.c index 57d4fa11a90f..cee5dc71cb60 100644 --- a/arch/arm/mach-kirkwood/board-dt.c +++ b/arch/arm/mach-kirkwood/board-dt.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/of.h> | 15 | #include <linux/of.h> |
16 | #include <linux/of_platform.h> | 16 | #include <linux/of_platform.h> |
17 | #include <linux/clk-provider.h> | 17 | #include <linux/clk-provider.h> |
18 | #include <linux/clk/mvebu.h> | ||
19 | #include <linux/kexec.h> | 18 | #include <linux/kexec.h> |
20 | #include <asm/mach/arch.h> | 19 | #include <asm/mach/arch.h> |
21 | #include <asm/mach/map.h> | 20 | #include <asm/mach/map.h> |
@@ -72,7 +71,7 @@ static void __init kirkwood_legacy_clk_init(void) | |||
72 | 71 | ||
73 | static void __init kirkwood_of_clk_init(void) | 72 | static void __init kirkwood_of_clk_init(void) |
74 | { | 73 | { |
75 | mvebu_clocks_init(); | 74 | of_clk_init(NULL); |
76 | kirkwood_legacy_clk_init(); | 75 | kirkwood_legacy_clk_init(); |
77 | } | 76 | } |
78 | 77 | ||
diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index fb827ac9d906..9eb63d724602 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 ARCH_REQUIRE_GPIOLIB | 15 | select ARCH_REQUIRE_GPIOLIB |
@@ -32,6 +29,7 @@ config MACH_ARMADA_370_XP | |||
32 | 29 | ||
33 | config MACH_ARMADA_370 | 30 | config MACH_ARMADA_370 |
34 | bool "Marvell Armada 370 boards" | 31 | bool "Marvell Armada 370 boards" |
32 | select ARMADA_370_CLK | ||
35 | select MACH_ARMADA_370_XP | 33 | select MACH_ARMADA_370_XP |
36 | select PINCTRL_ARMADA_370 | 34 | select PINCTRL_ARMADA_370 |
37 | help | 35 | help |
@@ -40,6 +38,7 @@ config MACH_ARMADA_370 | |||
40 | 38 | ||
41 | config MACH_ARMADA_XP | 39 | config MACH_ARMADA_XP |
42 | bool "Marvell Armada XP boards" | 40 | bool "Marvell Armada XP boards" |
41 | select ARMADA_XP_CLK | ||
43 | select MACH_ARMADA_370_XP | 42 | select MACH_ARMADA_370_XP |
44 | select PINCTRL_ARMADA_XP | 43 | select PINCTRL_ARMADA_XP |
45 | help | 44 | help |
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c index 1c48890bb72b..ebbc99739726 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 | ||