1 From 6e38a86d50dba5cc1da9bfd07969d76dd3ac2dda Mon Sep 17 00:00:00 2001
2 From: John Crispin <john@phrozen.org>
3 Date: Tue, 6 Mar 2018 09:28:13 +0100
4 Subject: [PATCH 23/27] MIPS: ath79: drop mach files
6 Signed-off-by: John Crispin <john@phrozen.org>
8 arch/mips/ath79/Kconfig | 73 -------------------
9 arch/mips/ath79/Makefile | 10 ---
10 arch/mips/ath79/mach-ap121.c | 92 ------------------------
11 arch/mips/ath79/mach-ap136.c | 156 -----------------------------------------
12 arch/mips/ath79/mach-ap81.c | 100 --------------------------
13 arch/mips/ath79/mach-db120.c | 136 -----------------------------------
14 arch/mips/ath79/mach-pb44.c | 128 ---------------------------------
15 arch/mips/ath79/mach-ubnt-xm.c | 126 ---------------------------------
16 8 files changed, 821 deletions(-)
17 delete mode 100644 arch/mips/ath79/mach-ap121.c
18 delete mode 100644 arch/mips/ath79/mach-ap136.c
19 delete mode 100644 arch/mips/ath79/mach-ap81.c
20 delete mode 100644 arch/mips/ath79/mach-db120.c
21 delete mode 100644 arch/mips/ath79/mach-pb44.c
22 delete mode 100644 arch/mips/ath79/mach-ubnt-xm.c
24 Index: linux-4.14.25/arch/mips/ath79/Kconfig
25 ===================================================================
26 --- linux-4.14.25.orig/arch/mips/ath79/Kconfig
27 +++ linux-4.14.25/arch/mips/ath79/Kconfig
29 # SPDX-License-Identifier: GPL-2.0
32 -menu "Atheros AR71XX/AR724X/AR913X machine selection"
34 -config ATH79_MACH_AP121
35 - bool "Atheros AP121 reference board"
37 - select ATH79_DEV_GPIO_BUTTONS
38 - select ATH79_DEV_LEDS_GPIO
39 - select ATH79_DEV_SPI
40 - select ATH79_DEV_USB
41 - select ATH79_DEV_WMAC
43 - Say 'Y' here if you want your kernel to support the
44 - Atheros AP121 reference board.
46 -config ATH79_MACH_AP136
47 - bool "Atheros AP136 reference board"
49 - select ATH79_DEV_GPIO_BUTTONS
50 - select ATH79_DEV_LEDS_GPIO
51 - select ATH79_DEV_SPI
52 - select ATH79_DEV_USB
53 - select ATH79_DEV_WMAC
55 - Say 'Y' here if you want your kernel to support the
56 - Atheros AP136 reference board.
58 -config ATH79_MACH_AP81
59 - bool "Atheros AP81 reference board"
61 - select ATH79_DEV_GPIO_BUTTONS
62 - select ATH79_DEV_LEDS_GPIO
63 - select ATH79_DEV_SPI
64 - select ATH79_DEV_USB
65 - select ATH79_DEV_WMAC
67 - Say 'Y' here if you want your kernel to support the
68 - Atheros AP81 reference board.
70 -config ATH79_MACH_DB120
71 - bool "Atheros DB120 reference board"
73 - select ATH79_DEV_GPIO_BUTTONS
74 - select ATH79_DEV_LEDS_GPIO
75 - select ATH79_DEV_SPI
76 - select ATH79_DEV_USB
77 - select ATH79_DEV_WMAC
79 - Say 'Y' here if you want your kernel to support the
80 - Atheros DB120 reference board.
82 -config ATH79_MACH_PB44
83 - bool "Atheros PB44 reference board"
85 - select ATH79_DEV_GPIO_BUTTONS
86 - select ATH79_DEV_LEDS_GPIO
87 - select ATH79_DEV_SPI
88 - select ATH79_DEV_USB
90 - Say 'Y' here if you want your kernel to support the
91 - Atheros PB44 reference board.
93 -config ATH79_MACH_UBNT_XM
94 - bool "Ubiquiti Networks XM (rev 1.0) board"
96 - select ATH79_DEV_GPIO_BUTTONS
97 - select ATH79_DEV_LEDS_GPIO
98 - select ATH79_DEV_SPI
100 - Say 'Y' here if you want your kernel to support the
101 - Ubiquiti Networks XM (rev 1.0) board.
108 Index: linux-4.14.25/arch/mips/ath79/Makefile
109 ===================================================================
110 --- linux-4.14.25.orig/arch/mips/ath79/Makefile
111 +++ linux-4.14.25/arch/mips/ath79/Makefile
112 @@ -21,13 +21,3 @@ obj-$(CONFIG_ATH79_DEV_LEDS_GPIO) += dev
113 obj-$(CONFIG_ATH79_DEV_SPI) += dev-spi.o
114 obj-$(CONFIG_ATH79_DEV_USB) += dev-usb.o
115 obj-$(CONFIG_ATH79_DEV_WMAC) += dev-wmac.o
120 -obj-$(CONFIG_ATH79_MACH_AP121) += mach-ap121.o
121 -obj-$(CONFIG_ATH79_MACH_AP136) += mach-ap136.o
122 -obj-$(CONFIG_ATH79_MACH_AP81) += mach-ap81.o
123 -obj-$(CONFIG_ATH79_MACH_DB120) += mach-db120.o
124 -obj-$(CONFIG_ATH79_MACH_PB44) += mach-pb44.o
125 -obj-$(CONFIG_ATH79_MACH_UBNT_XM) += mach-ubnt-xm.o
126 Index: linux-4.14.25/arch/mips/ath79/mach-ap121.c
127 ===================================================================
128 --- linux-4.14.25.orig/arch/mips/ath79/mach-ap121.c
132 - * Atheros AP121 board support
134 - * Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
136 - * This program is free software; you can redistribute it and/or modify it
137 - * under the terms of the GNU General Public License version 2 as published
138 - * by the Free Software Foundation.
141 -#include "machtypes.h"
142 -#include "dev-gpio-buttons.h"
143 -#include "dev-leds-gpio.h"
144 -#include "dev-spi.h"
145 -#include "dev-usb.h"
146 -#include "dev-wmac.h"
148 -#define AP121_GPIO_LED_WLAN 0
149 -#define AP121_GPIO_LED_USB 1
151 -#define AP121_GPIO_BTN_JUMPSTART 11
152 -#define AP121_GPIO_BTN_RESET 12
154 -#define AP121_KEYS_POLL_INTERVAL 20 /* msecs */
155 -#define AP121_KEYS_DEBOUNCE_INTERVAL (3 * AP121_KEYS_POLL_INTERVAL)
157 -#define AP121_CAL_DATA_ADDR 0x1fff1000
159 -static struct gpio_led ap121_leds_gpio[] __initdata = {
161 - .name = "ap121:green:usb",
162 - .gpio = AP121_GPIO_LED_USB,
166 - .name = "ap121:green:wlan",
167 - .gpio = AP121_GPIO_LED_WLAN,
172 -static struct gpio_keys_button ap121_gpio_keys[] __initdata = {
174 - .desc = "jumpstart button",
176 - .code = KEY_WPS_BUTTON,
177 - .debounce_interval = AP121_KEYS_DEBOUNCE_INTERVAL,
178 - .gpio = AP121_GPIO_BTN_JUMPSTART,
182 - .desc = "reset button",
184 - .code = KEY_RESTART,
185 - .debounce_interval = AP121_KEYS_DEBOUNCE_INTERVAL,
186 - .gpio = AP121_GPIO_BTN_RESET,
191 -static struct spi_board_info ap121_spi_info[] = {
195 - .max_speed_hz = 25000000,
196 - .modalias = "mx25l1606e",
200 -static struct ath79_spi_platform_data ap121_spi_data = {
202 - .num_chipselect = 1,
205 -static void __init ap121_setup(void)
207 - u8 *cal_data = (u8 *) KSEG1ADDR(AP121_CAL_DATA_ADDR);
209 - ath79_register_leds_gpio(-1, ARRAY_SIZE(ap121_leds_gpio),
211 - ath79_register_gpio_keys_polled(-1, AP121_KEYS_POLL_INTERVAL,
212 - ARRAY_SIZE(ap121_gpio_keys),
215 - ath79_register_spi(&ap121_spi_data, ap121_spi_info,
216 - ARRAY_SIZE(ap121_spi_info));
217 - ath79_register_usb();
218 - ath79_register_wmac(cal_data);
221 -MIPS_MACHINE(ATH79_MACH_AP121, "AP121", "Atheros AP121 reference board",
223 Index: linux-4.14.25/arch/mips/ath79/mach-ap136.c
224 ===================================================================
225 --- linux-4.14.25.orig/arch/mips/ath79/mach-ap136.c
229 - * Qualcomm Atheros AP136 reference board support
231 - * Copyright (c) 2012 Qualcomm Atheros
232 - * Copyright (c) 2012-2013 Gabor Juhos <juhosg@openwrt.org>
234 - * Permission to use, copy, modify, and/or distribute this software for any
235 - * purpose with or without fee is hereby granted, provided that the above
236 - * copyright notice and this permission notice appear in all copies.
238 - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
239 - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
240 - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
241 - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
242 - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
243 - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
244 - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
248 -#include <linux/pci.h>
249 -#include <linux/ath9k_platform.h>
251 -#include "machtypes.h"
252 -#include "dev-gpio-buttons.h"
253 -#include "dev-leds-gpio.h"
254 -#include "dev-spi.h"
255 -#include "dev-usb.h"
256 -#include "dev-wmac.h"
259 -#define AP136_GPIO_LED_STATUS_RED 14
260 -#define AP136_GPIO_LED_STATUS_GREEN 19
261 -#define AP136_GPIO_LED_USB 4
262 -#define AP136_GPIO_LED_WLAN_2G 13
263 -#define AP136_GPIO_LED_WLAN_5G 12
264 -#define AP136_GPIO_LED_WPS_RED 15
265 -#define AP136_GPIO_LED_WPS_GREEN 20
267 -#define AP136_GPIO_BTN_WPS 16
268 -#define AP136_GPIO_BTN_RFKILL 21
270 -#define AP136_KEYS_POLL_INTERVAL 20 /* msecs */
271 -#define AP136_KEYS_DEBOUNCE_INTERVAL (3 * AP136_KEYS_POLL_INTERVAL)
273 -#define AP136_WMAC_CALDATA_OFFSET 0x1000
274 -#define AP136_PCIE_CALDATA_OFFSET 0x5000
276 -static struct gpio_led ap136_leds_gpio[] __initdata = {
278 - .name = "qca:green:status",
279 - .gpio = AP136_GPIO_LED_STATUS_GREEN,
283 - .name = "qca:red:status",
284 - .gpio = AP136_GPIO_LED_STATUS_RED,
288 - .name = "qca:green:wps",
289 - .gpio = AP136_GPIO_LED_WPS_GREEN,
293 - .name = "qca:red:wps",
294 - .gpio = AP136_GPIO_LED_WPS_RED,
298 - .name = "qca:red:wlan-2g",
299 - .gpio = AP136_GPIO_LED_WLAN_2G,
303 - .name = "qca:red:usb",
304 - .gpio = AP136_GPIO_LED_USB,
309 -static struct gpio_keys_button ap136_gpio_keys[] __initdata = {
311 - .desc = "WPS button",
313 - .code = KEY_WPS_BUTTON,
314 - .debounce_interval = AP136_KEYS_DEBOUNCE_INTERVAL,
315 - .gpio = AP136_GPIO_BTN_WPS,
319 - .desc = "RFKILL button",
321 - .code = KEY_RFKILL,
322 - .debounce_interval = AP136_KEYS_DEBOUNCE_INTERVAL,
323 - .gpio = AP136_GPIO_BTN_RFKILL,
328 -static struct spi_board_info ap136_spi_info[] = {
332 - .max_speed_hz = 25000000,
333 - .modalias = "mx25l6405d",
337 -static struct ath79_spi_platform_data ap136_spi_data = {
339 - .num_chipselect = 1,
343 -static struct ath9k_platform_data ap136_ath9k_data;
345 -static int ap136_pci_plat_dev_init(struct pci_dev *dev)
347 - if (dev->bus->number == 1 && (PCI_SLOT(dev->devfn)) == 0)
348 - dev->dev.platform_data = &ap136_ath9k_data;
353 -static void __init ap136_pci_init(u8 *eeprom)
355 - memcpy(ap136_ath9k_data.eeprom_data, eeprom,
356 - sizeof(ap136_ath9k_data.eeprom_data));
358 - ath79_pci_set_plat_dev_init(ap136_pci_plat_dev_init);
359 - ath79_register_pci();
362 -static inline void ap136_pci_init(u8 *eeprom) {}
363 -#endif /* CONFIG_PCI */
365 -static void __init ap136_setup(void)
367 - u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
369 - ath79_register_leds_gpio(-1, ARRAY_SIZE(ap136_leds_gpio),
371 - ath79_register_gpio_keys_polled(-1, AP136_KEYS_POLL_INTERVAL,
372 - ARRAY_SIZE(ap136_gpio_keys),
374 - ath79_register_spi(&ap136_spi_data, ap136_spi_info,
375 - ARRAY_SIZE(ap136_spi_info));
376 - ath79_register_usb();
377 - ath79_register_wmac(art + AP136_WMAC_CALDATA_OFFSET);
378 - ap136_pci_init(art + AP136_PCIE_CALDATA_OFFSET);
381 -MIPS_MACHINE(ATH79_MACH_AP136_010, "AP136-010",
382 - "Atheros AP136-010 reference board",
384 Index: linux-4.14.25/arch/mips/ath79/mach-ap81.c
385 ===================================================================
386 --- linux-4.14.25.orig/arch/mips/ath79/mach-ap81.c
390 - * Atheros AP81 board support
392 - * Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
393 - * Copyright (C) 2009 Imre Kaloz <kaloz@openwrt.org>
395 - * This program is free software; you can redistribute it and/or modify it
396 - * under the terms of the GNU General Public License version 2 as published
397 - * by the Free Software Foundation.
400 -#include "machtypes.h"
401 -#include "dev-wmac.h"
402 -#include "dev-gpio-buttons.h"
403 -#include "dev-leds-gpio.h"
404 -#include "dev-spi.h"
405 -#include "dev-usb.h"
407 -#define AP81_GPIO_LED_STATUS 1
408 -#define AP81_GPIO_LED_AOSS 3
409 -#define AP81_GPIO_LED_WLAN 6
410 -#define AP81_GPIO_LED_POWER 14
412 -#define AP81_GPIO_BTN_SW4 12
413 -#define AP81_GPIO_BTN_SW1 21
415 -#define AP81_KEYS_POLL_INTERVAL 20 /* msecs */
416 -#define AP81_KEYS_DEBOUNCE_INTERVAL (3 * AP81_KEYS_POLL_INTERVAL)
418 -#define AP81_CAL_DATA_ADDR 0x1fff1000
420 -static struct gpio_led ap81_leds_gpio[] __initdata = {
422 - .name = "ap81:green:status",
423 - .gpio = AP81_GPIO_LED_STATUS,
426 - .name = "ap81:amber:aoss",
427 - .gpio = AP81_GPIO_LED_AOSS,
430 - .name = "ap81:green:wlan",
431 - .gpio = AP81_GPIO_LED_WLAN,
434 - .name = "ap81:green:power",
435 - .gpio = AP81_GPIO_LED_POWER,
440 -static struct gpio_keys_button ap81_gpio_keys[] __initdata = {
445 - .debounce_interval = AP81_KEYS_DEBOUNCE_INTERVAL,
446 - .gpio = AP81_GPIO_BTN_SW1,
452 - .debounce_interval = AP81_KEYS_DEBOUNCE_INTERVAL,
453 - .gpio = AP81_GPIO_BTN_SW4,
458 -static struct spi_board_info ap81_spi_info[] = {
462 - .max_speed_hz = 25000000,
463 - .modalias = "m25p64",
467 -static struct ath79_spi_platform_data ap81_spi_data = {
469 - .num_chipselect = 1,
472 -static void __init ap81_setup(void)
474 - u8 *cal_data = (u8 *) KSEG1ADDR(AP81_CAL_DATA_ADDR);
476 - ath79_register_leds_gpio(-1, ARRAY_SIZE(ap81_leds_gpio),
478 - ath79_register_gpio_keys_polled(-1, AP81_KEYS_POLL_INTERVAL,
479 - ARRAY_SIZE(ap81_gpio_keys),
481 - ath79_register_spi(&ap81_spi_data, ap81_spi_info,
482 - ARRAY_SIZE(ap81_spi_info));
483 - ath79_register_wmac(cal_data);
484 - ath79_register_usb();
487 -MIPS_MACHINE(ATH79_MACH_AP81, "AP81", "Atheros AP81 reference board",
489 Index: linux-4.14.25/arch/mips/ath79/mach-db120.c
490 ===================================================================
491 --- linux-4.14.25.orig/arch/mips/ath79/mach-db120.c
495 - * Atheros DB120 reference board support
497 - * Copyright (c) 2011 Qualcomm Atheros
498 - * Copyright (c) 2011 Gabor Juhos <juhosg@openwrt.org>
500 - * Permission to use, copy, modify, and/or distribute this software for any
501 - * purpose with or without fee is hereby granted, provided that the above
502 - * copyright notice and this permission notice appear in all copies.
504 - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
505 - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
506 - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
507 - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
508 - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
509 - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
510 - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
514 -#include <linux/pci.h>
515 -#include <linux/ath9k_platform.h>
517 -#include "machtypes.h"
518 -#include "dev-gpio-buttons.h"
519 -#include "dev-leds-gpio.h"
520 -#include "dev-spi.h"
521 -#include "dev-usb.h"
522 -#include "dev-wmac.h"
525 -#define DB120_GPIO_LED_WLAN_5G 12
526 -#define DB120_GPIO_LED_WLAN_2G 13
527 -#define DB120_GPIO_LED_STATUS 14
528 -#define DB120_GPIO_LED_WPS 15
530 -#define DB120_GPIO_BTN_WPS 16
532 -#define DB120_KEYS_POLL_INTERVAL 20 /* msecs */
533 -#define DB120_KEYS_DEBOUNCE_INTERVAL (3 * DB120_KEYS_POLL_INTERVAL)
535 -#define DB120_WMAC_CALDATA_OFFSET 0x1000
536 -#define DB120_PCIE_CALDATA_OFFSET 0x5000
538 -static struct gpio_led db120_leds_gpio[] __initdata = {
540 - .name = "db120:green:status",
541 - .gpio = DB120_GPIO_LED_STATUS,
545 - .name = "db120:green:wps",
546 - .gpio = DB120_GPIO_LED_WPS,
550 - .name = "db120:green:wlan-5g",
551 - .gpio = DB120_GPIO_LED_WLAN_5G,
555 - .name = "db120:green:wlan-2g",
556 - .gpio = DB120_GPIO_LED_WLAN_2G,
561 -static struct gpio_keys_button db120_gpio_keys[] __initdata = {
563 - .desc = "WPS button",
565 - .code = KEY_WPS_BUTTON,
566 - .debounce_interval = DB120_KEYS_DEBOUNCE_INTERVAL,
567 - .gpio = DB120_GPIO_BTN_WPS,
572 -static struct spi_board_info db120_spi_info[] = {
576 - .max_speed_hz = 25000000,
577 - .modalias = "s25sl064a",
581 -static struct ath79_spi_platform_data db120_spi_data = {
583 - .num_chipselect = 1,
587 -static struct ath9k_platform_data db120_ath9k_data;
589 -static int db120_pci_plat_dev_init(struct pci_dev *dev)
591 - switch (PCI_SLOT(dev->devfn)) {
593 - dev->dev.platform_data = &db120_ath9k_data;
600 -static void __init db120_pci_init(u8 *eeprom)
602 - memcpy(db120_ath9k_data.eeprom_data, eeprom,
603 - sizeof(db120_ath9k_data.eeprom_data));
605 - ath79_pci_set_plat_dev_init(db120_pci_plat_dev_init);
606 - ath79_register_pci();
609 -static inline void db120_pci_init(u8 *eeprom) {}
610 -#endif /* CONFIG_PCI */
612 -static void __init db120_setup(void)
614 - u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
616 - ath79_register_leds_gpio(-1, ARRAY_SIZE(db120_leds_gpio),
618 - ath79_register_gpio_keys_polled(-1, DB120_KEYS_POLL_INTERVAL,
619 - ARRAY_SIZE(db120_gpio_keys),
621 - ath79_register_spi(&db120_spi_data, db120_spi_info,
622 - ARRAY_SIZE(db120_spi_info));
623 - ath79_register_usb();
624 - ath79_register_wmac(art + DB120_WMAC_CALDATA_OFFSET);
625 - db120_pci_init(art + DB120_PCIE_CALDATA_OFFSET);
628 -MIPS_MACHINE(ATH79_MACH_DB120, "DB120", "Atheros DB120 reference board",
630 Index: linux-4.14.25/arch/mips/ath79/mach-pb44.c
631 ===================================================================
632 --- linux-4.14.25.orig/arch/mips/ath79/mach-pb44.c
636 - * Atheros PB44 reference board support
638 - * Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
640 - * This program is free software; you can redistribute it and/or modify it
641 - * under the terms of the GNU General Public License version 2 as published
642 - * by the Free Software Foundation.
645 -#include <linux/init.h>
646 -#include <linux/platform_device.h>
647 -#include <linux/i2c.h>
648 -#include <linux/i2c-gpio.h>
649 -#include <linux/platform_data/pcf857x.h>
651 -#include "machtypes.h"
652 -#include "dev-gpio-buttons.h"
653 -#include "dev-leds-gpio.h"
654 -#include "dev-spi.h"
655 -#include "dev-usb.h"
658 -#define PB44_GPIO_I2C_SCL 0
659 -#define PB44_GPIO_I2C_SDA 1
661 -#define PB44_GPIO_EXP_BASE 16
662 -#define PB44_GPIO_SW_RESET (PB44_GPIO_EXP_BASE + 6)
663 -#define PB44_GPIO_SW_JUMP (PB44_GPIO_EXP_BASE + 8)
664 -#define PB44_GPIO_LED_JUMP1 (PB44_GPIO_EXP_BASE + 9)
665 -#define PB44_GPIO_LED_JUMP2 (PB44_GPIO_EXP_BASE + 10)
667 -#define PB44_KEYS_POLL_INTERVAL 20 /* msecs */
668 -#define PB44_KEYS_DEBOUNCE_INTERVAL (3 * PB44_KEYS_POLL_INTERVAL)
670 -static struct i2c_gpio_platform_data pb44_i2c_gpio_data = {
671 - .sda_pin = PB44_GPIO_I2C_SDA,
672 - .scl_pin = PB44_GPIO_I2C_SCL,
675 -static struct platform_device pb44_i2c_gpio_device = {
676 - .name = "i2c-gpio",
679 - .platform_data = &pb44_i2c_gpio_data,
683 -static struct pcf857x_platform_data pb44_pcf857x_data = {
684 - .gpio_base = PB44_GPIO_EXP_BASE,
687 -static struct i2c_board_info pb44_i2c_board_info[] __initdata = {
689 - I2C_BOARD_INFO("pcf8575", 0x20),
690 - .platform_data = &pb44_pcf857x_data,
694 -static struct gpio_led pb44_leds_gpio[] __initdata = {
696 - .name = "pb44:amber:jump1",
697 - .gpio = PB44_GPIO_LED_JUMP1,
700 - .name = "pb44:green:jump2",
701 - .gpio = PB44_GPIO_LED_JUMP2,
706 -static struct gpio_keys_button pb44_gpio_keys[] __initdata = {
708 - .desc = "soft_reset",
710 - .code = KEY_RESTART,
711 - .debounce_interval = PB44_KEYS_DEBOUNCE_INTERVAL,
712 - .gpio = PB44_GPIO_SW_RESET,
715 - .desc = "jumpstart",
717 - .code = KEY_WPS_BUTTON,
718 - .debounce_interval = PB44_KEYS_DEBOUNCE_INTERVAL,
719 - .gpio = PB44_GPIO_SW_JUMP,
724 -static struct spi_board_info pb44_spi_info[] = {
728 - .max_speed_hz = 25000000,
729 - .modalias = "m25p64",
733 -static struct ath79_spi_platform_data pb44_spi_data = {
735 - .num_chipselect = 1,
738 -static void __init pb44_init(void)
740 - i2c_register_board_info(0, pb44_i2c_board_info,
741 - ARRAY_SIZE(pb44_i2c_board_info));
742 - platform_device_register(&pb44_i2c_gpio_device);
744 - ath79_register_leds_gpio(-1, ARRAY_SIZE(pb44_leds_gpio),
746 - ath79_register_gpio_keys_polled(-1, PB44_KEYS_POLL_INTERVAL,
747 - ARRAY_SIZE(pb44_gpio_keys),
749 - ath79_register_spi(&pb44_spi_data, pb44_spi_info,
750 - ARRAY_SIZE(pb44_spi_info));
751 - ath79_register_usb();
752 - ath79_register_pci();
755 -MIPS_MACHINE(ATH79_MACH_PB44, "PB44", "Atheros PB44 reference board",