brcm63xx: CPVA502+ board fixes
[openwrt/staging/mkresin.git] / target / linux / brcm63xx / patches-3.14 / 530-board_963281T_TEF.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -220,6 +220,126 @@ static struct board_info __initdata boar
4 },
5 };
6
7 +static struct board_info __initdata board_963281T_TEF = {
8 + .name = "963281T_TEF",
9 + .expected_cpu_id = 0x6328,
10 +
11 + .has_uart0 = 1,
12 + .has_pci = 1,
13 + .has_ohci0 = 1,
14 + .has_ehci0 = 1,
15 + .num_usbh_ports = 1,
16 + .has_enetsw = 1,
17 +
18 + .enetsw = {
19 + .used_ports = {
20 + [0] = {
21 + .used = 1,
22 + .phy_id = 1,
23 + .name = "Port 1",
24 + },
25 + [1] = {
26 + .used = 1,
27 + .phy_id = 2,
28 + .name = "Port 2",
29 + },
30 + [2] = {
31 + .used = 1,
32 + .phy_id = 3,
33 + .name = "Port 3",
34 + },
35 + [3] = {
36 + .used = 1,
37 + .phy_id = 4,
38 + .name = "Port 4",
39 + },
40 + },
41 + },
42 +
43 + .leds = {
44 + {
45 + .name = "963281T_TEF:green:power",
46 + .gpio = 4,
47 + .active_low = 1,
48 + .default_trigger = "default-on",
49 + },
50 + {
51 + .name = "963281T_TEF:red:power",
52 + .gpio = 8,
53 + .active_low = 1,
54 + },
55 + {
56 + .name = "963281T_TEF:green:inet",
57 + .gpio = 11,
58 + .active_low = 1,
59 + },
60 + {
61 + .name = "963281T_TEF:red:inet",
62 + .gpio = 2,
63 + .active_low = 1,
64 + },
65 + {
66 + .name = "963281T_TEF:green:ppp",
67 + .gpio = 3,
68 + .active_low = 1,
69 + },
70 + {
71 + .name = "963281T_TEF:red:ppp",
72 + .gpio = 5,
73 + .active_low = 1,
74 + },
75 + {
76 + .name = "963281T_TEF:green:3g",
77 + .gpio = 6,
78 + .active_low = 1,
79 + },
80 + {
81 + .name = "963281T_TEF:red:3g",
82 + .gpio = 7,
83 + .active_low = 1,
84 + },
85 + {
86 + .name = "963281T_TEF:green:wlan",
87 + .gpio = 9,
88 + .active_low = 1,
89 + },
90 + {
91 + .name = "963281T_TEF:red:wlan",
92 + .gpio = 10,
93 + .active_low = 1,
94 + },
95 + {
96 + .name = "963281T_TEF:green:eth",
97 + .gpio = 31,
98 + .active_low = 1,
99 + },
100 + {
101 + .name = "963281T_TEF:red:eth",
102 + .gpio = 20,
103 + .active_low = 1,
104 + },
105 + },
106 +
107 + .buttons = {
108 + {
109 + .desc = "reset",
110 + .gpio = 23,
111 + .active_low = 1,
112 + .type = EV_KEY,
113 + .code = KEY_RESTART,
114 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
115 + },
116 + {
117 + .desc = "wlan",
118 + .gpio = 24,
119 + .active_low = 1,
120 + .type = EV_KEY,
121 + .code = KEY_WLAN,
122 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
123 + },
124 + },
125 +};
126 +
127 static struct board_info __initdata board_dsl_274xb_f1 = {
128 .name = "AW4339U",
129 .expected_cpu_id = 0x6328,
130 @@ -2971,6 +3091,7 @@ static const struct board_info __initcon
131 #ifdef CONFIG_BCM63XX_CPU_6328
132 &board_96328avng,
133 &board_963281TAN,
134 + &board_963281T_TEF,
135 &board_dsl_274xb_f1,
136 #endif
137 #ifdef CONFIG_BCM63XX_CPU_6338