1 From 3973689b8f58652143ffa433bec6096d22904ee0 Mon Sep 17 00:00:00 2001
2 From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
3 Date: Wed, 3 Jul 2013 18:57:51 +0200
4 Subject: [PATCH 27/29] ARM: kirkwood: remove redundant DT board files
6 With DT support for mv643xx_eth board specific init for some boards now
7 is unneccessary. Remove those board files, Kconfig entries, and
8 corresponding entries in kirkwood_defconfig.
10 Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
11 Signed-off-by: Jason Cooper <jason@lakedaemon.net>
13 arch/arm/configs/kirkwood_defconfig | 21 ----
14 arch/arm/mach-kirkwood/Kconfig | 162 --------------------------
15 arch/arm/mach-kirkwood/Makefile | 21 ----
16 arch/arm/mach-kirkwood/board-db88f628x-bp.c | 24 ----
17 arch/arm/mach-kirkwood/board-dnskw.c | 7 --
18 arch/arm/mach-kirkwood/board-dockstar.c | 32 -----
19 arch/arm/mach-kirkwood/board-dreamplug.c | 35 ------
20 arch/arm/mach-kirkwood/board-dt.c | 82 +------------
21 arch/arm/mach-kirkwood/board-goflexnet.c | 34 ------
22 arch/arm/mach-kirkwood/board-guruplug.c | 33 ------
23 arch/arm/mach-kirkwood/board-ib62x0.c | 29 -----
24 arch/arm/mach-kirkwood/board-iconnect.c | 24 ----
25 arch/arm/mach-kirkwood/board-iomega_ix2_200.c | 34 ------
26 arch/arm/mach-kirkwood/board-km_kirkwood.c | 44 -------
27 arch/arm/mach-kirkwood/board-lsxl.c | 52 ---------
28 arch/arm/mach-kirkwood/board-mplcec4.c | 35 ------
29 arch/arm/mach-kirkwood/board-ns2.c | 35 ------
30 arch/arm/mach-kirkwood/board-openblocks_a6.c | 26 -----
31 arch/arm/mach-kirkwood/board-readynas.c | 28 -----
32 arch/arm/mach-kirkwood/board-ts219.c | 43 -------
33 arch/arm/mach-kirkwood/board-usi_topkick.c | 29 -----
34 arch/arm/mach-kirkwood/common.h | 104 -----------------
35 22 files changed, 2 insertions(+), 932 deletions(-)
36 delete mode 100644 arch/arm/mach-kirkwood/board-db88f628x-bp.c
37 delete mode 100644 arch/arm/mach-kirkwood/board-dockstar.c
38 delete mode 100644 arch/arm/mach-kirkwood/board-dreamplug.c
39 delete mode 100644 arch/arm/mach-kirkwood/board-goflexnet.c
40 delete mode 100644 arch/arm/mach-kirkwood/board-guruplug.c
41 delete mode 100644 arch/arm/mach-kirkwood/board-ib62x0.c
42 delete mode 100644 arch/arm/mach-kirkwood/board-iconnect.c
43 delete mode 100644 arch/arm/mach-kirkwood/board-iomega_ix2_200.c
44 delete mode 100644 arch/arm/mach-kirkwood/board-km_kirkwood.c
45 delete mode 100644 arch/arm/mach-kirkwood/board-lsxl.c
46 delete mode 100644 arch/arm/mach-kirkwood/board-mplcec4.c
47 delete mode 100644 arch/arm/mach-kirkwood/board-ns2.c
48 delete mode 100644 arch/arm/mach-kirkwood/board-openblocks_a6.c
49 delete mode 100644 arch/arm/mach-kirkwood/board-readynas.c
50 delete mode 100644 arch/arm/mach-kirkwood/board-ts219.c
51 delete mode 100644 arch/arm/mach-kirkwood/board-usi_topkick.c
53 --- a/arch/arm/configs/kirkwood_defconfig
54 +++ b/arch/arm/configs/kirkwood_defconfig
55 @@ -30,28 +30,7 @@ CONFIG_MACH_SHEEVAPLUG=y
59 -CONFIG_MACH_CLOUDBOX_DT=y
60 CONFIG_MACH_DLINK_KIRKWOOD_DT=y
61 -CONFIG_MACH_DOCKSTAR_DT=y
62 -CONFIG_MACH_DREAMPLUG_DT=y
63 -CONFIG_MACH_GOFLEXNET_DT=y
64 -CONFIG_MACH_GURUPLUG_DT=y
65 -CONFIG_MACH_IB62X0_DT=y
66 -CONFIG_MACH_ICONNECT_DT=y
67 -CONFIG_MACH_INETSPACE_V2_DT=y
68 -CONFIG_MACH_IOMEGA_IX2_200_DT=y
69 -CONFIG_MACH_KM_KIRKWOOD_DT=y
70 -CONFIG_MACH_LSXL_DT=y
71 -CONFIG_MACH_MPLCEC4_DT=y
72 -CONFIG_MACH_NETSPACE_LITE_V2_DT=y
73 -CONFIG_MACH_NETSPACE_MAX_V2_DT=y
74 -CONFIG_MACH_NETSPACE_MINI_V2_DT=y
75 -CONFIG_MACH_NETSPACE_V2_DT=y
76 -CONFIG_MACH_NSA310_DT=y
77 -CONFIG_MACH_OPENBLOCKS_A6_DT=y
78 -CONFIG_MACH_READYNAS_DT=y
79 -CONFIG_MACH_TOPKICK_DT=y
80 -CONFIG_MACH_TS219_DT=y
81 # CONFIG_CPU_FEROCEON_OLD_ID is not set
84 --- a/arch/arm/mach-kirkwood/Kconfig
85 +++ b/arch/arm/mach-kirkwood/Kconfig
86 @@ -140,20 +140,6 @@ config ARCH_KIRKWOOD_DT
87 Say 'Y' here if you want your kernel to support the
88 Marvell Kirkwood using flattened device tree.
90 -config MACH_CLOUDBOX_DT
91 - bool "LaCie CloudBox NAS (Flattened Device Tree)"
92 - select ARCH_KIRKWOOD_DT
94 - Say 'Y' here if you want your kernel to support the LaCie
95 - CloudBox NAS, using Flattened Device Tree.
97 -config MACH_DB88F628X_BP_DT
98 - bool "Marvell DB-88F628x-BP Development Board (Flattened Device Tree)"
100 - Say 'Y' here if you want your kernel to support the Marvell
101 - DB-88F6281-BP and DB-88F6282-BP Development Board (Flattened
104 config MACH_DLINK_KIRKWOOD_DT
105 bool "D-Link Kirkwood-based NAS (Flattened Device Tree)"
106 select ARCH_KIRKWOOD_DT
107 @@ -162,154 +148,6 @@ config MACH_DLINK_KIRKWOOD_DT
108 Kirkwood-based D-Link NASes such as DNS-320 & DNS-325,
109 using Flattened Device Tree.
111 -config MACH_DOCKSTAR_DT
112 - bool "Seagate FreeAgent Dockstar (Flattened Device Tree)"
113 - select ARCH_KIRKWOOD_DT
115 - Say 'Y' here if you want your kernel to support the
116 - Seagate FreeAgent Dockstar (Flattened Device Tree).
118 -config MACH_DREAMPLUG_DT
119 - bool "Marvell DreamPlug (Flattened Device Tree)"
120 - select ARCH_KIRKWOOD_DT
122 - Say 'Y' here if you want your kernel to support the
123 - Marvell DreamPlug (Flattened Device Tree).
125 -config MACH_GOFLEXNET_DT
126 - bool "Seagate GoFlex Net (Flattened Device Tree)"
127 - select ARCH_KIRKWOOD_DT
129 - Say 'Y' here if you want your kernel to support the
130 - Seagate GoFlex Net (Flattened Device Tree).
132 -config MACH_GURUPLUG_DT
133 - bool "Marvell GuruPlug Reference Board (Flattened Device Tree)"
134 - select ARCH_KIRKWOOD_DT
136 - Say 'Y' here if you want your kernel to support the
137 - Marvell GuruPlug Reference Board (Flattened Device Tree).
139 -config MACH_IB62X0_DT
140 - bool "RaidSonic IB-NAS6210, IB-NAS6220 (Flattened Device Tree)"
141 - select ARCH_KIRKWOOD_DT
143 - Say 'Y' here if you want your kernel to support the
144 - RaidSonic IB-NAS6210 & IB-NAS6220 devices, using
145 - Flattened Device Tree.
147 -config MACH_ICONNECT_DT
148 - bool "Iomega Iconnect (Flattened Device Tree)"
149 - select ARCH_KIRKWOOD_DT
151 - Say 'Y' here to enable Iomega Iconnect support.
153 -config MACH_INETSPACE_V2_DT
154 - bool "LaCie Internet Space v2 NAS (Flattened Device Tree)"
155 - select ARCH_KIRKWOOD_DT
157 - Say 'Y' here if you want your kernel to support the LaCie
158 - Internet Space v2 NAS, using Flattened Device Tree.
160 -config MACH_IOMEGA_IX2_200_DT
161 - bool "Iomega StorCenter ix2-200 (Flattened Device Tree)"
162 - select ARCH_KIRKWOOD_DT
164 - Say 'Y' here if you want your kernel to support the
165 - Iomega StorCenter ix2-200 (Flattened Device Tree).
167 -config MACH_KM_KIRKWOOD_DT
168 - bool "Keymile Kirkwood Reference Design (Flattened Device Tree)"
169 - select ARCH_KIRKWOOD_DT
171 - Say 'Y' here if you want your kernel to support the
172 - Keymile Kirkwood Reference Desgin, using Flattened Device Tree.
175 - bool "Buffalo Linkstation LS-XHL, LS-CHLv2 (Flattened Device Tree)"
176 - select ARCH_KIRKWOOD_DT
178 - Say 'Y' here if you want your kernel to support the
179 - Buffalo Linkstation LS-XHL & LS-CHLv2 devices, using
180 - Flattened Device Tree.
182 -config MACH_MPLCEC4_DT
183 - bool "MPL CEC4 (Flattened Device Tree)"
184 - select ARCH_KIRKWOOD_DT
186 - Say 'Y' here if you want your kernel to support the
187 - MPL CEC4 (Flattened Device Tree).
189 -config MACH_NETSPACE_LITE_V2_DT
190 - bool "LaCie Network Space Lite v2 NAS (Flattened Device Tree)"
191 - select ARCH_KIRKWOOD_DT
193 - Say 'Y' here if you want your kernel to support the LaCie
194 - Network Space Lite v2 NAS, using Flattened Device Tree.
196 -config MACH_NETSPACE_MAX_V2_DT
197 - bool "LaCie Network Space Max v2 NAS (Flattened Device Tree)"
198 - select ARCH_KIRKWOOD_DT
200 - Say 'Y' here if you want your kernel to support the LaCie
201 - Network Space Max v2 NAS, using Flattened Device Tree.
203 -config MACH_NETSPACE_MINI_V2_DT
204 - bool "LaCie Network Space Mini v2 NAS (Flattened Device Tree)"
205 - select ARCH_KIRKWOOD_DT
207 - Say 'Y' here if you want your kernel to support the LaCie
208 - Network Space Mini v2 NAS using Flattened Device Tree.
210 - This board is embedded in a product named CloudBox, which
211 - provides automatic backup on a 100GB cloud storage. This
212 - should not confused with a more recent LaCie NAS also named
213 - CloudBox. For this last, the disk capacity is 1TB or above.
215 -config MACH_NETSPACE_V2_DT
216 - bool "LaCie Network Space v2 NAS (Flattened Device Tree)"
217 - select ARCH_KIRKWOOD_DT
219 - Say 'Y' here if you want your kernel to support the LaCie
220 - Network Space v2 NAS, using Flattened Device Tree.
222 -config MACH_OPENBLOCKS_A6_DT
223 - bool "Plat'Home OpenBlocks A6 (Flattened Device Tree)"
224 - select ARCH_KIRKWOOD_DT
226 - Say 'Y' here if you want your kernel to support the
227 - Plat'Home OpenBlocks A6 (Flattened Device Tree).
229 -config MACH_READYNAS_DT
230 - bool "NETGEAR ReadyNAS Duo v2 (Flattened Device Tree)"
231 - select ARCH_KIRKWOOD_DT
232 - select ARM_APPENDED_DTB
233 - select ARM_ATAG_DTB_COMPAT
235 - Say 'Y' here if you want your kernel to support the
236 - NETGEAR ReadyNAS Duo v2 using Fattened Device Tree.
238 -config MACH_TOPKICK_DT
239 - bool "USI Topkick (Flattened Device Tree)"
240 - select ARCH_KIRKWOOD_DT
242 - Say 'Y' here if you want your kernel to support the
243 - USI Topkick, using Flattened Device Tree
245 -config MACH_TS219_DT
246 - bool "Device Tree for QNAP TS-11X, TS-21X NAS"
247 - select ARCH_KIRKWOOD_DT
248 - select ARM_APPENDED_DTB
249 - select ARM_ATAG_DTB_COMPAT
251 - Say 'Y' here if you want your kernel to support the QNAP
252 - TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and
253 - TS-219P+ Turbo NAS devices using Fattened Device Tree.
254 - There are two different Device Tree descriptions, depending
255 - on if the device is based on an if the board uses the MV6281
256 - or MV6282. If you have the wrong one, the buttons will not
262 --- a/arch/arm/mach-kirkwood/Makefile
263 +++ b/arch/arm/mach-kirkwood/Makefile
264 @@ -19,25 +19,4 @@ obj-$(CONFIG_MACH_TS219) += ts219-setup
265 obj-$(CONFIG_MACH_TS41X) += ts41x-setup.o tsx1x-common.o
267 obj-$(CONFIG_ARCH_KIRKWOOD_DT) += board-dt.o
268 -obj-$(CONFIG_MACH_CLOUDBOX_DT) += board-ns2.o
269 -obj-$(CONFIG_MACH_DB88F628X_BP_DT) += board-db88f628x-bp.o
270 obj-$(CONFIG_MACH_DLINK_KIRKWOOD_DT) += board-dnskw.o
271 -obj-$(CONFIG_MACH_DOCKSTAR_DT) += board-dockstar.o
272 -obj-$(CONFIG_MACH_DREAMPLUG_DT) += board-dreamplug.o
273 -obj-$(CONFIG_MACH_GOFLEXNET_DT) += board-goflexnet.o
274 -obj-$(CONFIG_MACH_GURUPLUG_DT) += board-guruplug.o
275 -obj-$(CONFIG_MACH_IB62X0_DT) += board-ib62x0.o
276 -obj-$(CONFIG_MACH_ICONNECT_DT) += board-iconnect.o
277 -obj-$(CONFIG_MACH_INETSPACE_V2_DT) += board-ns2.o
278 -obj-$(CONFIG_MACH_IOMEGA_IX2_200_DT) += board-iomega_ix2_200.o
279 -obj-$(CONFIG_MACH_KM_KIRKWOOD_DT) += board-km_kirkwood.o
280 -obj-$(CONFIG_MACH_LSXL_DT) += board-lsxl.o
281 -obj-$(CONFIG_MACH_MPLCEC4_DT) += board-mplcec4.o
282 -obj-$(CONFIG_MACH_NETSPACE_LITE_V2_DT) += board-ns2.o
283 -obj-$(CONFIG_MACH_NETSPACE_MAX_V2_DT) += board-ns2.o
284 -obj-$(CONFIG_MACH_NETSPACE_MINI_V2_DT) += board-ns2.o
285 -obj-$(CONFIG_MACH_NETSPACE_V2_DT) += board-ns2.o
286 -obj-$(CONFIG_MACH_OPENBLOCKS_A6_DT) += board-openblocks_a6.o
287 -obj-$(CONFIG_MACH_READYNAS_DT) += board-readynas.o
288 -obj-$(CONFIG_MACH_TOPKICK_DT) += board-usi_topkick.o
289 -obj-$(CONFIG_MACH_TS219_DT) += board-ts219.o tsx1x-common.o
290 --- a/arch/arm/mach-kirkwood/board-db88f628x-bp.c
294 - * Saeed Bishara <saeed@marvell.com>
296 - * Marvell DB-88F628{1,2}-BP Development Board Setup
298 - * This file is licensed under the terms of the GNU General Public
299 - * License version 2. This program is licensed "as is" without any
300 - * warranty of any kind, whether express or implied.
303 -#include <linux/kernel.h>
304 -#include <linux/init.h>
305 -#include <linux/of.h>
306 -#include <linux/mv643xx_eth.h>
309 -static struct mv643xx_eth_platform_data db88f628x_ge00_data = {
310 - .phy_addr = MV643XX_ETH_PHY_ADDR(8),
313 -void __init db88f628x_init(void)
315 - kirkwood_ge00_init(&db88f628x_ge00_data);
317 --- a/arch/arm/mach-kirkwood/board-dnskw.c
318 +++ b/arch/arm/mach-kirkwood/board-dnskw.c
320 #include <linux/kernel.h>
321 #include <linux/init.h>
322 #include <linux/platform_device.h>
323 -#include <linux/mv643xx_eth.h>
324 #include <linux/gpio.h>
327 -static struct mv643xx_eth_platform_data dnskw_ge00_data = {
328 - .phy_addr = MV643XX_ETH_PHY_ADDR(8),
331 /* Register any GPIO for output and set the value */
332 static void __init dnskw_gpio_register(unsigned gpio, char *name, int def)
334 @@ -36,8 +31,6 @@ static void __init dnskw_gpio_register(u
336 void __init dnskw_init(void)
338 - kirkwood_ge00_init(&dnskw_ge00_data);
340 /* Set NAS to turn back on after a power failure */
341 dnskw_gpio_register(37, "dnskw:power:recover", 1);
343 --- a/arch/arm/mach-kirkwood/board-dockstar.c
347 - * arch/arm/mach-kirkwood/board-dockstar.c
349 - * Seagate FreeAgent Dockstar Board Init for drivers not converted to
350 - * flattened device tree yet.
352 - * This file is licensed under the terms of the GNU General Public
353 - * License version 2. This program is licensed "as is" without any
354 - * warranty of any kind, whether express or implied.
356 - * Copied and modified for Seagate GoFlex Net support by
357 - * Joshua Coombs <josh.coombs@gmail.com> based on ArchLinux ARM's
358 - * GoFlex kernel patches.
362 -#include <linux/kernel.h>
363 -#include <linux/init.h>
364 -#include <linux/mv643xx_eth.h>
367 -static struct mv643xx_eth_platform_data dockstar_ge00_data = {
368 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
371 -void __init dockstar_dt_init(void)
374 - * Basic setup. Needs to be called early.
376 - kirkwood_ge00_init(&dockstar_ge00_data);
378 --- a/arch/arm/mach-kirkwood/board-dreamplug.c
382 - * Copyright 2012 (C), Jason Cooper <jason@lakedaemon.net>
384 - * arch/arm/mach-kirkwood/board-dreamplug.c
386 - * Marvell DreamPlug Reference Board Init for drivers not converted to
387 - * flattened device tree yet.
389 - * This file is licensed under the terms of the GNU General Public
390 - * License version 2. This program is licensed "as is" without any
391 - * warranty of any kind, whether express or implied.
394 -#include <linux/kernel.h>
395 -#include <linux/init.h>
396 -#include <linux/mv643xx_eth.h>
397 -#include <linux/gpio.h>
400 -static struct mv643xx_eth_platform_data dreamplug_ge00_data = {
401 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
404 -static struct mv643xx_eth_platform_data dreamplug_ge01_data = {
405 - .phy_addr = MV643XX_ETH_PHY_ADDR(1),
408 -void __init dreamplug_init(void)
411 - * Basic setup. Needs to be called early.
413 - kirkwood_ge00_init(&dreamplug_ge00_data);
414 - kirkwood_ge01_init(&dreamplug_ge01_data);
416 --- a/arch/arm/mach-kirkwood/board-dt.c
417 +++ b/arch/arm/mach-kirkwood/board-dt.c
418 @@ -106,92 +106,14 @@ static void __init kirkwood_dt_init(void
419 kexec_reinit = kirkwood_enable_pcie;
422 - if (of_machine_is_compatible("globalscale,dreamplug"))
425 - if (of_machine_is_compatible("globalscale,guruplug"))
426 - guruplug_dt_init();
428 if (of_machine_is_compatible("dlink,dns-kirkwood"))
431 - if (of_machine_is_compatible("iom,iconnect"))
434 - if (of_machine_is_compatible("raidsonic,ib-nas62x0"))
437 - if (of_machine_is_compatible("qnap,ts219"))
438 - qnap_dt_ts219_init();
440 - if (of_machine_is_compatible("seagate,dockstar"))
441 - dockstar_dt_init();
443 - if (of_machine_is_compatible("seagate,goflexnet"))
446 - if (of_machine_is_compatible("buffalo,lsxl"))
449 - if (of_machine_is_compatible("iom,ix2-200"))
450 - iomega_ix2_200_init();
452 - if (of_machine_is_compatible("keymile,km_kirkwood"))
453 - km_kirkwood_init();
455 - if (of_machine_is_compatible("lacie,cloudbox") ||
456 - of_machine_is_compatible("lacie,inetspace_v2") ||
457 - of_machine_is_compatible("lacie,netspace_lite_v2") ||
458 - of_machine_is_compatible("lacie,netspace_max_v2") ||
459 - of_machine_is_compatible("lacie,netspace_mini_v2") ||
460 - of_machine_is_compatible("lacie,netspace_v2"))
463 - if (of_machine_is_compatible("marvell,db-88f6281-bp") ||
464 - of_machine_is_compatible("marvell,db-88f6282-bp"))
467 - if (of_machine_is_compatible("mpl,cec4"))
470 - if (of_machine_is_compatible("netgear,readynas-duo-v2"))
471 - netgear_readynas_init();
473 - if (of_machine_is_compatible("plathome,openblocks-a6"))
474 - openblocks_a6_init();
476 - if (of_machine_is_compatible("usi,topkick"))
477 - usi_topkick_init();
479 - of_platform_populate(NULL, kirkwood_dt_match_table, NULL, NULL);
480 + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
483 static const char * const kirkwood_dt_board_compat[] = {
484 - "globalscale,dreamplug",
485 - "globalscale,guruplug",
489 - "raidsonic,ib-nas62x0",
491 - "seagate,dockstar",
492 - "seagate,goflexnet",
495 - "keymile,km_kirkwood",
497 - "lacie,inetspace_v2",
498 - "lacie,netspace_lite_v2",
499 - "lacie,netspace_max_v2",
500 - "lacie,netspace_mini_v2",
501 - "lacie,netspace_v2",
502 - "marvell,db-88f6281-bp",
503 - "marvell,db-88f6282-bp",
505 - "netgear,readynas-duo-v2",
506 - "plathome,openblocks-a6",
509 + "marvell,kirkwood",
513 --- a/arch/arm/mach-kirkwood/board-goflexnet.c
517 - * Copyright 2012 (C), Jason Cooper <jason@lakedaemon.net>
519 - * arch/arm/mach-kirkwood/board-goflexnet.c
521 - * Seagate GoFlext Net Board Init for drivers not converted to
522 - * flattened device tree yet.
524 - * This file is licensed under the terms of the GNU General Public
525 - * License version 2. This program is licensed "as is" without any
526 - * warranty of any kind, whether express or implied.
528 - * Copied and modified for Seagate GoFlex Net support by
529 - * Joshua Coombs <josh.coombs@gmail.com> based on ArchLinux ARM's
530 - * GoFlex kernel patches.
534 -#include <linux/kernel.h>
535 -#include <linux/init.h>
536 -#include <linux/mv643xx_eth.h>
539 -static struct mv643xx_eth_platform_data goflexnet_ge00_data = {
540 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
543 -void __init goflexnet_init(void)
546 - * Basic setup. Needs to be called early.
548 - kirkwood_ge00_init(&goflexnet_ge00_data);
550 --- a/arch/arm/mach-kirkwood/board-guruplug.c
554 - * arch/arm/mach-kirkwood/board-guruplug.c
556 - * Marvell Guruplug Reference Board Init for drivers not converted to
557 - * flattened device tree yet.
559 - * This file is licensed under the terms of the GNU General Public
560 - * License version 2. This program is licensed "as is" without any
561 - * warranty of any kind, whether express or implied.
564 -#include <linux/kernel.h>
565 -#include <linux/init.h>
566 -#include <linux/mv643xx_eth.h>
567 -#include <linux/gpio.h>
570 -static struct mv643xx_eth_platform_data guruplug_ge00_data = {
571 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
574 -static struct mv643xx_eth_platform_data guruplug_ge01_data = {
575 - .phy_addr = MV643XX_ETH_PHY_ADDR(1),
578 -void __init guruplug_dt_init(void)
581 - * Basic setup. Needs to be called early.
583 - kirkwood_ge00_init(&guruplug_ge00_data);
584 - kirkwood_ge01_init(&guruplug_ge01_data);
586 --- a/arch/arm/mach-kirkwood/board-ib62x0.c
590 - * Copyright 2012 (C), Simon Baatz <gmbnomis@gmail.com>
592 - * arch/arm/mach-kirkwood/board-ib62x0.c
594 - * RaidSonic ICY BOX IB-NAS6210 & IB-NAS6220 init for drivers not
595 - * converted to flattened device tree yet.
597 - * This file is licensed under the terms of the GNU General Public
598 - * License version 2. This program is licensed "as is" without any
599 - * warranty of any kind, whether express or implied.
602 -#include <linux/kernel.h>
603 -#include <linux/init.h>
604 -#include <linux/mv643xx_eth.h>
607 -static struct mv643xx_eth_platform_data ib62x0_ge00_data = {
608 - .phy_addr = MV643XX_ETH_PHY_ADDR(8),
611 -void __init ib62x0_init(void)
614 - * Basic setup. Needs to be called early.
616 - kirkwood_ge00_init(&ib62x0_ge00_data);
618 --- a/arch/arm/mach-kirkwood/board-iconnect.c
622 - * arch/arm/mach-kirkwood/board-iconnect.c
624 - * Iomega i-connect Board Setup
626 - * This file is licensed under the terms of the GNU General Public
627 - * License version 2. This program is licensed "as is" without any
628 - * warranty of any kind, whether express or implied.
631 -#include <linux/kernel.h>
632 -#include <linux/init.h>
633 -#include <linux/of.h>
634 -#include <linux/mv643xx_eth.h>
637 -static struct mv643xx_eth_platform_data iconnect_ge00_data = {
638 - .phy_addr = MV643XX_ETH_PHY_ADDR(11),
641 -void __init iconnect_init(void)
643 - kirkwood_ge00_init(&iconnect_ge00_data);
645 --- a/arch/arm/mach-kirkwood/board-iomega_ix2_200.c
649 - * arch/arm/mach-kirkwood/board-iomega_ix2_200.c
651 - * Iomega StorCenter ix2-200
653 - * This file is licensed under the terms of the GNU General Public
654 - * License version 2. This program is licensed "as is" without any
655 - * warranty of any kind, whether express or implied.
658 -#include <linux/kernel.h>
659 -#include <linux/init.h>
660 -#include <linux/mv643xx_eth.h>
661 -#include <linux/ethtool.h>
664 -static struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = {
665 - .phy_addr = MV643XX_ETH_PHY_NONE,
666 - .speed = SPEED_1000,
667 - .duplex = DUPLEX_FULL,
670 -static struct mv643xx_eth_platform_data iomega_ix2_200_ge01_data = {
671 - .phy_addr = MV643XX_ETH_PHY_ADDR(11),
674 -void __init iomega_ix2_200_init(void)
677 - * Basic setup. Needs to be called early.
679 - kirkwood_ge00_init(&iomega_ix2_200_ge00_data);
680 - kirkwood_ge01_init(&iomega_ix2_200_ge01_data);
682 --- a/arch/arm/mach-kirkwood/board-km_kirkwood.c
686 - * Copyright 2012 2012 KEYMILE AG, CH-3097 Bern
687 - * Valentin Longchamp <valentin.longchamp@keymile.com>
689 - * arch/arm/mach-kirkwood/board-km_kirkwood.c
691 - * Keymile km_kirkwood Reference Desing Init for drivers not converted to
692 - * flattened device tree yet.
694 - * This file is licensed under the terms of the GNU General Public
695 - * License version 2. This program is licensed "as is" without any
696 - * warranty of any kind, whether express or implied.
699 -#include <linux/kernel.h>
700 -#include <linux/init.h>
701 -#include <linux/mv643xx_eth.h>
702 -#include <linux/clk.h>
703 -#include <linux/clk-private.h>
706 -static struct mv643xx_eth_platform_data km_kirkwood_ge00_data = {
707 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
710 -void __init km_kirkwood_init(void)
712 - struct clk *sata_clk;
714 - * Our variant of kirkwood (integrated in the Bobcat) hangs on accessing
715 - * SATA bits (14-15) of the Clock Gating Control Register. Since these
716 - * devices are also not present in this variant, their clocks get
717 - * disabled because unused when clk_disable_unused() gets called.
718 - * That's why we change the flags to these clocks to CLK_IGNORE_UNUSED
720 - sata_clk = clk_get_sys("sata_mv.0", "0");
721 - if (!IS_ERR(sata_clk))
722 - sata_clk->flags |= CLK_IGNORE_UNUSED;
723 - sata_clk = clk_get_sys("sata_mv.0", "1");
724 - if (!IS_ERR(sata_clk))
725 - sata_clk->flags |= CLK_IGNORE_UNUSED;
727 - kirkwood_ge00_init(&km_kirkwood_ge00_data);
729 --- a/arch/arm/mach-kirkwood/board-lsxl.c
733 - * Copyright 2012 (C), Michael Walle <michael@walle.cc>
735 - * arch/arm/mach-kirkwood/board-lsxl.c
737 - * Buffalo Linkstation LS-XHL and LS-CHLv2 init for drivers not
738 - * converted to flattened device tree yet.
740 - * This file is licensed under the terms of the GNU General Public
741 - * License version 2. This program is licensed "as is" without any
742 - * warranty of any kind, whether express or implied.
745 -#include <linux/kernel.h>
746 -#include <linux/init.h>
747 -#include <linux/platform_device.h>
748 -#include <linux/mv643xx_eth.h>
751 -static struct mv643xx_eth_platform_data lsxl_ge00_data = {
752 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
755 -static struct mv643xx_eth_platform_data lsxl_ge01_data = {
756 - .phy_addr = MV643XX_ETH_PHY_ADDR(8),
760 - * On the LS-XHL/LS-CHLv2, the shutdown process is following:
761 - * - Userland monitors key events until the power switch goes to off position
762 - * - The board reboots
763 - * - U-boot starts and goes into an idle mode waiting for the user
764 - * to move the switch to ON position
767 -static void lsxl_power_off(void)
769 - kirkwood_restart('h', NULL);
772 -void __init lsxl_init(void)
775 - * Basic setup. Needs to be called early.
778 - kirkwood_ge00_init(&lsxl_ge00_data);
779 - kirkwood_ge01_init(&lsxl_ge01_data);
781 - /* register power-off method */
782 - pm_power_off = lsxl_power_off;
784 --- a/arch/arm/mach-kirkwood/board-mplcec4.c
788 - * Copyright (C) 2012 MPL AG, Switzerland
789 - * Stefan Peter <s.peter@mpl.ch>
791 - * arch/arm/mach-kirkwood/board-mplcec4.c
793 - * This file is licensed under the terms of the GNU General Public
794 - * License version 2. This program is licensed "as is" without any
795 - * warranty of any kind, whether express or implied.
798 -#include <linux/kernel.h>
799 -#include <linux/init.h>
800 -#include <linux/mv643xx_eth.h>
803 -static struct mv643xx_eth_platform_data mplcec4_ge00_data = {
804 - .phy_addr = MV643XX_ETH_PHY_ADDR(1),
807 -static struct mv643xx_eth_platform_data mplcec4_ge01_data = {
808 - .phy_addr = MV643XX_ETH_PHY_ADDR(2),
811 -void __init mplcec4_init(void)
814 - * Basic setup. Needs to be called early.
816 - kirkwood_ge00_init(&mplcec4_ge00_data);
817 - kirkwood_ge01_init(&mplcec4_ge01_data);
822 --- a/arch/arm/mach-kirkwood/board-ns2.c
826 - * Copyright 2012 (C), Simon Guinot <simon.guinot@sequanux.org>
828 - * arch/arm/mach-kirkwood/board-ns2.c
830 - * LaCie Network Space v2 board (and parents) initialization for drivers
831 - * not converted to flattened device tree yet.
833 - * This file is licensed under the terms of the GNU General Public
834 - * License version 2. This program is licensed "as is" without any
835 - * warranty of any kind, whether express or implied.
838 -#include <linux/kernel.h>
839 -#include <linux/init.h>
840 -#include <linux/platform_device.h>
841 -#include <linux/mv643xx_eth.h>
842 -#include <linux/of.h>
845 -static struct mv643xx_eth_platform_data ns2_ge00_data = {
846 - .phy_addr = MV643XX_ETH_PHY_ADDR(8),
849 -void __init ns2_init(void)
852 - * Basic setup. Needs to be called early.
854 - if (of_machine_is_compatible("lacie,cloudbox") ||
855 - of_machine_is_compatible("lacie,netspace_lite_v2") ||
856 - of_machine_is_compatible("lacie,netspace_mini_v2"))
857 - ns2_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0);
858 - kirkwood_ge00_init(&ns2_ge00_data);
860 --- a/arch/arm/mach-kirkwood/board-openblocks_a6.c
864 - * Copyright 2012 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
866 - * arch/arm/mach-kirkwood/board-openblocks_a6.c
868 - * This file is licensed under the terms of the GNU General Public
869 - * License version 2. This program is licensed "as is" without any
870 - * warranty of any kind, whether express or implied.
873 -#include <linux/kernel.h>
874 -#include <linux/init.h>
875 -#include <linux/mv643xx_eth.h>
878 -static struct mv643xx_eth_platform_data openblocks_ge00_data = {
879 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
882 -void __init openblocks_a6_init(void)
885 - * Basic setup. Needs to be called early.
887 - kirkwood_ge00_init(&openblocks_ge00_data);
889 --- a/arch/arm/mach-kirkwood/board-readynas.c
893 - * NETGEAR ReadyNAS Duo v2 Board setup for drivers not already
896 - * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
898 - * This program is free software; you can redistribute it and/or
899 - * modify it under the terms of the GNU General Public License
900 - * as published by the Free Software Foundation; either version
901 - * 2 of the License, or (at your option) any later version.
904 -#include <linux/kernel.h>
905 -#include <linux/init.h>
906 -#include <linux/platform_device.h>
907 -#include <linux/mv643xx_eth.h>
908 -#include <mach/kirkwood.h>
911 -static struct mv643xx_eth_platform_data netgear_readynas_ge00_data = {
912 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
915 -void __init netgear_readynas_init(void)
917 - kirkwood_ge00_init(&netgear_readynas_ge00_data);
918 - kirkwood_pcie_init(KW_PCIE0);
920 --- a/arch/arm/mach-kirkwood/board-ts219.c
925 - * QNAP TS-11x/TS-21x Turbo NAS Board Setup via DT
927 - * Copyright (C) 2012 Andrew Lunn <andrew@lunn.ch>
929 - * Based on the board file ts219-setup.c:
931 - * Copyright (C) 2009 Martin Michlmayr <tbm@cyrius.com>
932 - * Copyright (C) 2008 Byron Bradley <byron.bbradley@gmail.com>
934 - * This program is free software; you can redistribute it and/or
935 - * modify it under the terms of the GNU General Public License
936 - * as published by the Free Software Foundation; either version
937 - * 2 of the License, or (at your option) any later version.
940 -#include <linux/kernel.h>
941 -#include <linux/init.h>
942 -#include <linux/platform_device.h>
943 -#include <linux/mv643xx_eth.h>
944 -#include <asm/mach-types.h>
945 -#include <asm/mach/arch.h>
946 -#include <mach/kirkwood.h>
948 -#include "tsx1x-common.h"
950 -static struct mv643xx_eth_platform_data qnap_ts219_ge00_data = {
951 - .phy_addr = MV643XX_ETH_PHY_ADDR(8),
954 -void __init qnap_dt_ts219_init(void)
958 - kirkwood_pcie_id(&dev, &rev);
959 - if (dev == MV88F6282_DEV_ID)
960 - qnap_ts219_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0);
962 - kirkwood_ge00_init(&qnap_ts219_ge00_data);
964 - pm_power_off = qnap_tsx1x_power_off;
966 --- a/arch/arm/mach-kirkwood/board-usi_topkick.c
970 - * Copyright 2012 (C), Jason Cooper <jason@lakedaemon.net>
972 - * arch/arm/mach-kirkwood/board-usi_topkick.c
974 - * USI Topkick Init for drivers not converted to flattened device tree yet.
976 - * This file is licensed under the terms of the GNU General Public
977 - * License version 2. This program is licensed "as is" without any
978 - * warranty of any kind, whether express or implied.
981 -#include <linux/kernel.h>
982 -#include <linux/init.h>
983 -#include <linux/mv643xx_eth.h>
984 -#include <linux/gpio.h>
987 -static struct mv643xx_eth_platform_data topkick_ge00_data = {
988 - .phy_addr = MV643XX_ETH_PHY_ADDR(0),
991 -void __init usi_topkick_init(void)
994 - * Basic setup. Needs to be called early.
996 - kirkwood_ge00_init(&topkick_ge00_data);
998 --- a/arch/arm/mach-kirkwood/common.h
999 +++ b/arch/arm/mach-kirkwood/common.h
1000 @@ -55,116 +55,12 @@ void kirkwood_restart(char, const char *
1001 void kirkwood_clk_init(void);
1003 /* board init functions for boards not fully converted to fdt */
1004 -#ifdef CONFIG_MACH_DREAMPLUG_DT
1005 -void dreamplug_init(void);
1007 -static inline void dreamplug_init(void) {};
1009 -#ifdef CONFIG_MACH_GURUPLUG_DT
1010 -void guruplug_dt_init(void);
1012 -static inline void guruplug_dt_init(void) {};
1014 -#ifdef CONFIG_MACH_TS219_DT
1015 -void qnap_dt_ts219_init(void);
1017 -static inline void qnap_dt_ts219_init(void) {};
1020 #ifdef CONFIG_MACH_DLINK_KIRKWOOD_DT
1021 void dnskw_init(void);
1023 static inline void dnskw_init(void) {};
1026 -#ifdef CONFIG_MACH_ICONNECT_DT
1027 -void iconnect_init(void);
1029 -static inline void iconnect_init(void) {};
1032 -#ifdef CONFIG_MACH_IB62X0_DT
1033 -void ib62x0_init(void);
1035 -static inline void ib62x0_init(void) {};
1038 -#ifdef CONFIG_MACH_DOCKSTAR_DT
1039 -void dockstar_dt_init(void);
1041 -static inline void dockstar_dt_init(void) {};
1044 -#ifdef CONFIG_MACH_GOFLEXNET_DT
1045 -void goflexnet_init(void);
1047 -static inline void goflexnet_init(void) {};
1050 -#ifdef CONFIG_MACH_LSXL_DT
1051 -void lsxl_init(void);
1053 -static inline void lsxl_init(void) {};
1056 -#ifdef CONFIG_MACH_IOMEGA_IX2_200_DT
1057 -void iomega_ix2_200_init(void);
1059 -static inline void iomega_ix2_200_init(void) {};
1062 -#ifdef CONFIG_MACH_KM_KIRKWOOD_DT
1063 -void km_kirkwood_init(void);
1065 -static inline void km_kirkwood_init(void) {};
1068 -#ifdef CONFIG_MACH_DB88F628X_BP_DT
1069 -void db88f628x_init(void);
1071 -static inline void db88f628x_init(void) {};
1074 -#ifdef CONFIG_MACH_MPLCEC4_DT
1075 -void mplcec4_init(void);
1077 -static inline void mplcec4_init(void) {};
1080 -#if defined(CONFIG_MACH_INETSPACE_V2_DT) || \
1081 - defined(CONFIG_MACH_NETSPACE_V2_DT) || \
1082 - defined(CONFIG_MACH_NETSPACE_MAX_V2_DT) || \
1083 - defined(CONFIG_MACH_NETSPACE_LITE_V2_DT) || \
1084 - defined(CONFIG_MACH_NETSPACE_MINI_V2_DT)
1085 -void ns2_init(void);
1087 -static inline void ns2_init(void) {};
1090 -#ifdef CONFIG_MACH_OPENBLOCKS_A6_DT
1091 -void openblocks_a6_init(void);
1093 -static inline void openblocks_a6_init(void) {};
1096 -#ifdef CONFIG_MACH_READYNAS_DT
1097 -void netgear_readynas_init(void);
1099 -static inline void netgear_readynas_init(void) {};
1102 -#ifdef CONFIG_MACH_TOPKICK_DT
1103 -void usi_topkick_init(void);
1105 -static inline void usi_topkick_init(void) {};
1108 -#ifdef CONFIG_MACH_CLOUDBOX_DT
1109 -void cloudbox_init(void);
1111 -static inline void cloudbox_init(void) {};
1114 /* early init functions not converted to fdt yet */
1115 char *kirkwood_id(void);
1116 void kirkwood_l2_init(void);