brcm63xx: fix BCM96318MVWG LEDs
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.10 / 556-board_96318ref_p300.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -185,6 +185,93 @@ static struct board_info __initdata boar
4 },
5 },
6 };
7 +
8 +static struct board_info __initdata board_96318ref_p300 = {
9 + .name = "96318REF_P300",
10 + .expected_cpu_id = 0x6318,
11 +
12 + .has_uart0 = 1,
13 + .has_pci = 1,
14 +
15 + .has_usbd = 1,
16 +
17 + .usbd = {
18 + .use_fullspeed = 0,
19 + .port_no = 0,
20 + },
21 +
22 + .has_enetsw = 1,
23 +
24 + .has_ehci0 = 1,
25 +
26 + .enetsw = {
27 + .used_ports = {
28 + [0] = {
29 + .used = 1,
30 + .phy_id = 1,
31 + .name = "Port 1",
32 + },
33 + [1] = {
34 + .used = 1,
35 + .phy_id = 2,
36 + .name = "Port 2",
37 + },
38 + [2] = {
39 + .used = 1,
40 + .phy_id = 3,
41 + .name = "Port 3",
42 + },
43 + [3] = {
44 + .used = 1,
45 + .phy_id = 4,
46 + .name = "Port 4",
47 + },
48 + },
49 + },
50 +
51 + .leds = {
52 + {
53 + .name = "96318REF_P300:red:post-failed",
54 + .gpio = 11,
55 + .active_low = 1,
56 + },
57 + {
58 + .name = "96318REF_P300:green:inet",
59 + .gpio = 8,
60 + .active_low = 1,
61 + },
62 + {
63 + .name = "96318REF_P300:red:inet-fail",
64 + .gpio = 9,
65 + .active_low = 1,
66 + },
67 + {
68 + .name = "96318REF_P300::usb-pwron",
69 + .gpio = 13,
70 + .active_low = 1,
71 + .default_trigger = "default-on",
72 + },
73 + },
74 +
75 + .buttons = {
76 + {
77 + .desc = "wps",
78 + .gpio = 33,
79 + .active_low = 1,
80 + .type = EV_KEY,
81 + .code = KEY_WPS_BUTTON,
82 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
83 + },
84 + {
85 + .desc = "reset",
86 + .gpio = 34,
87 + .active_low = 1,
88 + .type = EV_KEY,
89 + .code = KEY_RESTART,
90 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
91 + },
92 + },
93 +};
94 #endif
95
96 /*
97 @@ -4129,6 +4216,7 @@ static const struct board_info __initcon
98 #endif
99 #ifdef CONFIG_BCM63XX_CPU_6318
100 &board_96318ref,
101 + &board_96318ref_p300,
102 #endif
103 #ifdef CONFIG_BCM63XX_CPU_6328
104 &board_96328avng,