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 @@ -4172,6 +4173,118 @@ 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 + .of_board_id = "comtrend,wap-5813n",
42 + .expected_cpu_id = 0x6368,
46 + .use_fallback_sprom = 1,
57 + .force_speed = 1000,
58 + .force_duplex_full = 1,
66 + .name = "WAP-5813n:green:power",
68 + .default_trigger = "default-on",
71 + .name = "WAP-5813n:red:power",
75 + .name = "WAP-5813n:green:inet",
79 + .name = "WAP-5813n:red:inet",
83 + .name = "WAP-5813n:green:wps",
96 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
103 + .code = KEY_RESTART,
104 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
111 + .code = KEY_WPS_BUTTON,
112 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
116 + .fallback_sprom = {
117 + .type = SPROM_BCM43222,
120 + .board_fixups = wap5813n_fixups,
121 + .num_board_fixups = ARRAY_SIZE(wap5813n_fixups),
124 + .spis = WAP5813n_spi_devices,
125 + .num_spis = ARRAY_SIZE(WAP5813n_spi_devices),
127 #endif /* CONFIG_BCM63XX_CPU_6368 */
130 @@ -4551,6 +4664,7 @@ static const struct board_info __initcon
131 #ifdef CONFIG_BCM63XX_CPU_6368
136 #ifdef CONFIG_BCM63XX_CPU_63268
137 &board_963268bu_p300,