brcm63xx: refresh patches
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.18 / 510-board_spw303v.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1574,6 +1574,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 @@ -1621,6 +1687,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
84 @@ -1669,6 +1736,7 @@ static struct of_device_id const bcm963x
85 { .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
86 { .compatible = "sfr,nb4-ser-r0", .data = &board_nb4_ser_r0, },
87 { .compatible = "sfr,nb4-fxc-r1", .data = &board_nb4_fxc_r1, },
88 + { .compatible = "t-com,spw303v", .data = &board_spw303v, },
89 { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
90 #endif
91 #ifdef CONFIG_BCM63XX_CPU_6368