diff options
author | Jason Cooper <jason@lakedaemon.net> | 2013-01-26 15:50:14 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-02-28 12:57:16 -0500 |
commit | 4ded65751c262e4897dbaf8c11d11d85332eecf3 (patch) | |
tree | 8c87d571903d89143f7a7862c9837b1f3d143e70 /arch/arm/mach-kirkwood | |
parent | 44d032e7940131fd991a01a948630747d91fe983 (diff) |
ARM: kirkwood: nsa310: convert to pinctrl
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-kirkwood')
-rw-r--r-- | arch/arm/mach-kirkwood/board-dt.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/board-nsa310.c | 26 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/common.h | 6 |
3 files changed, 0 insertions, 35 deletions
diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach-kirkwood/board-dt.c index 05b3b7ea41f7..2e73e9d53f70 100644 --- a/arch/arm/mach-kirkwood/board-dt.c +++ b/arch/arm/mach-kirkwood/board-dt.c | |||
@@ -144,9 +144,6 @@ static void __init kirkwood_dt_init(void) | |||
144 | if (of_machine_is_compatible("usi,topkick")) | 144 | if (of_machine_is_compatible("usi,topkick")) |
145 | usi_topkick_init(); | 145 | usi_topkick_init(); |
146 | 146 | ||
147 | if (of_machine_is_compatible("zyxel,nsa310")) | ||
148 | nsa310_init(); | ||
149 | |||
150 | of_platform_populate(NULL, kirkwood_dt_match_table, NULL, NULL); | 147 | of_platform_populate(NULL, kirkwood_dt_match_table, NULL, NULL); |
151 | } | 148 | } |
152 | 149 | ||
diff --git a/arch/arm/mach-kirkwood/board-nsa310.c b/arch/arm/mach-kirkwood/board-nsa310.c index 6966c86e0c34..544f83a46679 100644 --- a/arch/arm/mach-kirkwood/board-nsa310.c +++ b/arch/arm/mach-kirkwood/board-nsa310.c | |||
@@ -14,32 +14,6 @@ | |||
14 | #include <mach/kirkwood.h> | 14 | #include <mach/kirkwood.h> |
15 | #include <linux/of.h> | 15 | #include <linux/of.h> |
16 | #include "common.h" | 16 | #include "common.h" |
17 | #include "mpp.h" | ||
18 | |||
19 | static unsigned int nsa310_mpp_config[] __initdata = { | ||
20 | MPP12_GPIO, /* led esata green */ | ||
21 | MPP13_GPIO, /* led esata red */ | ||
22 | MPP15_GPIO, /* led usb green */ | ||
23 | MPP16_GPIO, /* led usb red */ | ||
24 | MPP21_GPIO, /* control usb power off */ | ||
25 | MPP28_GPIO, /* led sys green */ | ||
26 | MPP29_GPIO, /* led sys red */ | ||
27 | MPP36_GPIO, /* key reset */ | ||
28 | MPP37_GPIO, /* key copy */ | ||
29 | MPP39_GPIO, /* led copy green */ | ||
30 | MPP40_GPIO, /* led copy red */ | ||
31 | MPP41_GPIO, /* led hdd green */ | ||
32 | MPP42_GPIO, /* led hdd red */ | ||
33 | MPP44_GPIO, /* ?? */ | ||
34 | MPP46_GPIO, /* key power */ | ||
35 | MPP48_GPIO, /* control power off */ | ||
36 | 0 | ||
37 | }; | ||
38 | |||
39 | void __init nsa310_init(void) | ||
40 | { | ||
41 | kirkwood_mpp_conf(nsa310_mpp_config); | ||
42 | } | ||
43 | 17 | ||
44 | static int __init nsa310_pci_init(void) | 18 | static int __init nsa310_pci_init(void) |
45 | { | 19 | { |
diff --git a/arch/arm/mach-kirkwood/common.h b/arch/arm/mach-kirkwood/common.h index 537bdf816af7..5ed70565c843 100644 --- a/arch/arm/mach-kirkwood/common.h +++ b/arch/arm/mach-kirkwood/common.h | |||
@@ -135,12 +135,6 @@ void ns2_init(void); | |||
135 | static inline void ns2_init(void) {}; | 135 | static inline void ns2_init(void) {}; |
136 | #endif | 136 | #endif |
137 | 137 | ||
138 | #ifdef CONFIG_MACH_NSA310_DT | ||
139 | void nsa310_init(void); | ||
140 | #else | ||
141 | static inline void nsa310_init(void) {}; | ||
142 | #endif | ||
143 | |||
144 | #ifdef CONFIG_MACH_OPENBLOCKS_A6_DT | 138 | #ifdef CONFIG_MACH_OPENBLOCKS_A6_DT |
145 | void openblocks_a6_init(void); | 139 | void openblocks_a6_init(void); |
146 | #else | 140 | #else |