1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
4 #include <linux/gpio_keys.h>
5 #include <linux/input.h>
6 #include <linux/pci_ids.h>
7 +#include <linux/platform_data/b53.h>
8 #include <linux/platform_device.h>
9 #include <linux/spi/spi.h>
10 #include <linux/spi/spi_gpio.h>
11 @@ -4585,6 +4586,117 @@ static struct board_info __initdata boar
16 +static struct b53_platform_data WAP5813n_b53_pdata = {
20 +static struct spi_board_info WAP5813n_spi_devices[] = {
22 + .modalias = "b53-switch",
23 + .max_speed_hz = 781000,
26 + .platform_data = &WAP5813n_b53_pdata,
30 +static struct sprom_fixup __initdata wap5813n_fixups[] = {
31 + { .offset = 97, .value = 0xfeed },
32 + { .offset = 98, .value = 0x15d1 },
33 + { .offset = 99, .value = 0xfb0d },
34 + { .offset = 113, .value = 0xfef7 },
35 + { .offset = 114, .value = 0x15f7 },
36 + { .offset = 115, .value = 0xfb1a },
39 +static struct board_info __initdata board_WAP5813n = {
40 + .name = "96369R-1231N",
41 + .expected_cpu_id = 0x6368,
45 + .use_fallback_sprom = 1,
56 + .force_speed = 1000,
57 + .force_duplex_full = 1,
65 + .name = "WAP-5813n:green:power",
67 + .default_trigger = "default-on",
70 + .name = "WAP-5813n:red:power",
74 + .name = "WAP-5813n:green:inet",
78 + .name = "WAP-5813n:red:inet",
82 + .name = "WAP-5813n:green:wps",
95 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
102 + .code = KEY_RESTART,
103 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
110 + .code = KEY_WPS_BUTTON,
111 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
115 + .fallback_sprom = {
116 + .type = SPROM_BCM43222,
119 + .board_fixups = wap5813n_fixups,
120 + .num_board_fixups = ARRAY_SIZE(wap5813n_fixups),
123 + .spis = WAP5813n_spi_devices,
124 + .num_spis = ARRAY_SIZE(WAP5813n_spi_devices),
126 #endif /* CONFIG_BCM63XX_CPU_6368 */
129 @@ -4968,6 +5080,7 @@ static const struct board_info __initcon
130 #ifdef CONFIG_BCM63XX_CPU_6368
135 #ifdef CONFIG_BCM63XX_CPU_63268
136 &board_963268bu_p300,