255b16c4268475d5dc4db36e78e18f9f7c6190a1
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 560-board_963268gu_p300.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -4580,6 +4580,131 @@ static struct board_info __initdata boar
4 * known 63268/63269 boards
5 */
6 #ifdef CONFIG_BCM63XX_CPU_63268
7 +static struct board_info __initdata board_963268bu_p300 = {
8 + .name = "963268BU_P300",
9 + .expected_cpu_id = 0x63268,
10 +
11 + .has_uart0 = 1,
12 +
13 + .has_ehci0 = 1,
14 + .has_ohci0 = 1,
15 + .num_usbh_ports = 1,
16 +
17 + .has_usbd = 1,
18 +
19 + .usbd = {
20 + .use_fullspeed = 0,
21 + .port_no = 0,
22 + },
23 +
24 + .has_enetsw = 1,
25 +
26 + .enetsw = {
27 + .used_ports = {
28 + [0] = {
29 + .used = 1,
30 + .phy_id = 17,
31 + .name = "FE1",
32 + },
33 +
34 + [3] = {
35 + .used = 1,
36 + .phy_id = 4,
37 + .name = "GbE2",
38 + },
39 +
40 + [4] = {
41 + .used = 1,
42 + .phy_id = 0,
43 + .name = "GbE3",
44 + },
45 +
46 + [5] = {
47 + .used = 1,
48 + .phy_id = 1,
49 + .name = "GbE1",
50 + },
51 +
52 + [6] = {
53 + .used = 1,
54 + .phy_id = 24,
55 + .name = "GbE4",
56 + },
57 +
58 + [7] = {
59 + .used = 1,
60 + .phy_id = 25,
61 + .name = "GbE5",
62 + },
63 + },
64 + },
65 +
66 + .leds = {
67 + {
68 + .name = "963268BU_P300:green:power",
69 + .gpio = 20,
70 + .active_low = 1,
71 + },
72 + {
73 + .name = "963268BU_P300:red:power",
74 + .gpio = 21,
75 + .active_low = 1,
76 + },
77 + {
78 + .name = "963268BU_P300:green:internet",
79 + .gpio = 8,
80 + .active_low = 1,
81 + },
82 + {
83 + .name = "963268BU_P300:red:internet",
84 + .gpio = 2,
85 + .active_low = 1,
86 + },
87 + {
88 + .name = "963268BU_P300:green:adsl",
89 + .gpio = 3,
90 + .active_low = 1,
91 + },
92 + {
93 + .name = "963268BU_P300:green:wps",
94 + .gpio = 7,
95 + .active_low = 1,
96 + },
97 + {
98 + .name = "963268BU_P300:green:voip1",
99 + .gpio = 4,
100 + .active_low = 1,
101 + },
102 + {
103 + .name = "963268BU_P300:green:voip2",
104 + .gpio = 5,
105 + .active_low = 1,
106 + },
107 + {
108 + .name = "963268BU_P300:green:pots",
109 + .gpio = 6,
110 + .active_low = 1,
111 + },
112 + },
113 +
114 + .buttons = {
115 + {
116 + .desc = "reset",
117 + .gpio = 32,
118 + .type = EV_KEY,
119 + .code = KEY_RESTART,
120 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
121 + },
122 + {
123 + .desc = "wps",
124 + .gpio = 33,
125 + .type = EV_KEY,
126 + .code = KEY_WPS_BUTTON,
127 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
128 + },
129 + },
130 +};
131 +
132 static struct board_info __initdata board_963269bhr = {
133 .name = "963269BHR",
134 .expected_cpu_id = 0x63268,
135 @@ -4834,6 +4959,7 @@ static const struct board_info __initcon
136 &board_96368mvngr,
137 #endif
138 #ifdef CONFIG_BCM63XX_CPU_63268
139 + &board_963268bu_p300,
140 &board_963269bhr,
141 &board_vw6339gu,
142 #endif