6a8d9c1ec9911d7d54c6d77daed14ce1f7c6d915
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 510-board_spw303v.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1587,6 +1587,72 @@ static struct board_info __initdata boar
4 .pci_dev = 1,
5 },
6 };
7 +
8 + /* T-Home Speedport W 303V Typ B */
9 +static struct board_info __initdata board_spw303v = {
10 + .name = "96358-502V",
11 + .expected_cpu_id = 0x6358,
12 +
13 + .has_uart0 = 1,
14 + .has_enet0 = 1,
15 + .has_pci = 1,
16 +
17 + .enet0 = {
18 + .has_phy = 1,
19 + .use_internal_phy = 1,
20 + },
21 +
22 + .leds = {
23 + {
24 + .name = "spw303v:green:power+adsl",
25 + .gpio = 22,
26 + .active_low = 1,
27 + },
28 + {
29 + .name = "spw303v:red:power+adsl",
30 + .gpio = 2,
31 + .active_low = 1,
32 + },
33 + {
34 + .name = "spw303v:green:ppp",
35 + .gpio = 5,
36 + .active_low = 1,
37 + },
38 + {
39 + .name = "spw303v:green:ses",
40 + .gpio = 0,
41 + .active_low = 1,
42 + },
43 + {
44 + .name = "spw303v:green:voip",
45 + .gpio = 27,
46 + .active_low = 1,
47 + },
48 + {
49 + .name = "spw303v:green:pots",
50 + .gpio = 31,
51 + .active_low = 1,
52 + },
53 + },
54 +
55 + .buttons = {
56 + {
57 + .desc = "reset",
58 + .gpio = 11,
59 + .type = EV_KEY,
60 + .code = KEY_RESTART,
61 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
62 + },
63 + {
64 + .desc = "ses",
65 + .gpio = 37,
66 + .active_low = 1,
67 + .type = EV_KEY,
68 + .code = KEY_WPS_BUTTON,
69 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
70 + },
71 + }
72 +};
73 #endif /* CONFIG_BCM63XX_CPU_6358 */
74
75 /*
76 @@ -1634,6 +1700,7 @@ static const struct board_info __initcon
77 &board_nb4_ser_r0,
78 &board_nb4_fxc_r1,
79 &board_HW553,
80 + &board_spw303v,
81 #endif
82 };
83