aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood
diff options
context:
space:
mode:
authorJamie Lentin <jm@lentin.co.uk>2013-08-11 10:26:50 -0400
committerJason Cooper <jason@lakedaemon.net>2013-08-12 14:43:35 -0400
commit844703c1addb01f83c74a4d284a418263867304d (patch)
tree64c2a873267cd18791e71e7c6ca9d497a966223f /arch/arm/mach-kirkwood
parentea489af05bdb172fd3863b69fbd61749690935e8 (diff)
ARM: kirkwood: Remove all remaining trace of DNS-320/325 platform code
No platform code left now, so remove all references to it. The reset gpio code didn't work to begin with, it will be replaced with a DT node at a future date. -jc Signed-off-by: Jamie Lentin <jm@lentin.co.uk> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-kirkwood')
-rw-r--r--arch/arm/mach-kirkwood/Kconfig8
-rw-r--r--arch/arm/mach-kirkwood/Makefile1
-rw-r--r--arch/arm/mach-kirkwood/board-dnskw.c36
-rw-r--r--arch/arm/mach-kirkwood/board-dt.c3
-rw-r--r--arch/arm/mach-kirkwood/common.h6
5 files changed, 0 insertions, 54 deletions
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
index 780bca07f7f3..94540d5cb75b 100644
--- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig
@@ -105,14 +105,6 @@ config ARCH_KIRKWOOD_DT
105 Say 'Y' here if you want your kernel to support the 105 Say 'Y' here if you want your kernel to support the
106 Marvell Kirkwood using flattened device tree. 106 Marvell Kirkwood using flattened device tree.
107 107
108config MACH_DLINK_KIRKWOOD_DT
109 bool "D-Link Kirkwood-based NAS (Flattened Device Tree)"
110 select ARCH_KIRKWOOD_DT
111 help
112 Say 'Y' here if you want your kernel to support the
113 Kirkwood-based D-Link NASes such as DNS-320 & DNS-325,
114 using Flattened Device Tree.
115
116config MACH_MV88F6281GTW_GE_DT 108config MACH_MV88F6281GTW_GE_DT
117 bool "Marvell 88F6281 GTW GE Board (Flattened Device Tree)" 109 bool "Marvell 88F6281 GTW GE Board (Flattened Device Tree)"
118 select ARCH_KIRKWOOD_DT 110 select ARCH_KIRKWOOD_DT
diff --git a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile
index 937d4e1fb8a7..d1f8e3d0793b 100644
--- a/arch/arm/mach-kirkwood/Makefile
+++ b/arch/arm/mach-kirkwood/Makefile
@@ -11,5 +11,4 @@ obj-$(CONFIG_MACH_TS219) += ts219-setup.o tsx1x-common.o
11obj-$(CONFIG_MACH_TS41X) += ts41x-setup.o tsx1x-common.o 11obj-$(CONFIG_MACH_TS41X) += ts41x-setup.o tsx1x-common.o
12 12
13obj-$(CONFIG_ARCH_KIRKWOOD_DT) += board-dt.o 13obj-$(CONFIG_ARCH_KIRKWOOD_DT) += board-dt.o
14obj-$(CONFIG_MACH_DLINK_KIRKWOOD_DT) += board-dnskw.o
15obj-$(CONFIG_MACH_MV88F6281GTW_GE_DT) += board-mv88f6281gtw_ge.o 14obj-$(CONFIG_MACH_MV88F6281GTW_GE_DT) += board-mv88f6281gtw_ge.o
diff --git a/arch/arm/mach-kirkwood/board-dnskw.c b/arch/arm/mach-kirkwood/board-dnskw.c
deleted file mode 100644
index 2af7a95d8a3c..000000000000
--- a/arch/arm/mach-kirkwood/board-dnskw.c
+++ /dev/null
@@ -1,36 +0,0 @@
1/*
2 * Copyright 2012 (C), Jamie Lentin <jm@lentin.co.uk>
3 *
4 * arch/arm/mach-kirkwood/board-dnskw.c
5 *
6 * D-link DNS-320 & DNS-325 NAS Init for drivers not converted to
7 * flattened device tree yet.
8 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
12 */
13
14#include <linux/kernel.h>
15#include <linux/init.h>
16#include <linux/platform_device.h>
17#include <linux/gpio.h>
18#include "common.h"
19
20/* Register any GPIO for output and set the value */
21static void __init dnskw_gpio_register(unsigned gpio, char *name, int def)
22{
23 if (gpio_request(gpio, name) == 0 &&
24 gpio_direction_output(gpio, 0) == 0) {
25 gpio_set_value(gpio, def);
26 if (gpio_export(gpio, 0) != 0)
27 pr_err("dnskw: Failed to export GPIO %s\n", name);
28 } else
29 pr_err("dnskw: Failed to register %s\n", name);
30}
31
32void __init dnskw_init(void)
33{
34 /* Set NAS to turn back on after a power failure */
35 dnskw_gpio_register(37, "dnskw:power:recover", 1);
36}
diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach-kirkwood/board-dt.c
index b129c65c23a4..b1872e93a78d 100644
--- a/arch/arm/mach-kirkwood/board-dt.c
+++ b/arch/arm/mach-kirkwood/board-dt.c
@@ -106,9 +106,6 @@ static void __init kirkwood_dt_init(void)
106 kexec_reinit = kirkwood_enable_pcie; 106 kexec_reinit = kirkwood_enable_pcie;
107#endif 107#endif
108 108
109 if (of_machine_is_compatible("dlink,dns-kirkwood"))
110 dnskw_init();
111
112 if (of_machine_is_compatible("marvell,mv88f6281gtw-ge")) 109 if (of_machine_is_compatible("marvell,mv88f6281gtw-ge"))
113 mv88f6281gtw_ge_init(); 110 mv88f6281gtw_ge_init();
114 111
diff --git a/arch/arm/mach-kirkwood/common.h b/arch/arm/mach-kirkwood/common.h
index cc639bbf9ac5..1296de94febf 100644
--- a/arch/arm/mach-kirkwood/common.h
+++ b/arch/arm/mach-kirkwood/common.h
@@ -59,12 +59,6 @@ void kirkwood_restart(enum reboot_mode, const char *);
59void kirkwood_clk_init(void); 59void kirkwood_clk_init(void);
60 60
61/* board init functions for boards not fully converted to fdt */ 61/* board init functions for boards not fully converted to fdt */
62#ifdef CONFIG_MACH_DLINK_KIRKWOOD_DT
63void dnskw_init(void);
64#else
65static inline void dnskw_init(void) {};
66#endif
67
68#ifdef CONFIG_MACH_MV88F6281GTW_GE_DT 62#ifdef CONFIG_MACH_MV88F6281GTW_GE_DT
69void mv88f6281gtw_ge_init(void); 63void mv88f6281gtw_ge_init(void);
70#else 64#else