Root/target/linux/brcm63xx/patches-3.1/443-board-CPVA642.patch

1--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3@@ -685,6 +685,98 @@ static struct board_info __initdata boar
4     },
5 };
6 
7+static struct board_info __initdata board_CPVA642 = {
8+ .name = "CPVA642",
9+ .expected_cpu_id = 0x6358,
10+
11+ .has_uart0 = 1,
12+ .has_enet1 = 1,
13+ .has_pci = 1,
14+
15+ .enet1 = {
16+ .force_speed_100 = 1,
17+ .force_duplex_full = 1,
18+ },
19+
20+ .has_ohci0 = 1,
21+ .has_ehci0 = 1,
22+
23+ .leds = {
24+ /* bi-color */
25+ {
26+ .name = "power:red",
27+ .gpio = 14,
28+ .active_low = 1,
29+ },
30+ {
31+ .name = "power:green",
32+ .gpio = 11,
33+ .active_low = 1,
34+ .default_trigger = "default-on",
35+ },
36+ {
37+ .name = "wifi:red",
38+ .gpio = 6,
39+ .active_low = 1,
40+ },
41+ {
42+ .name = "wifi:green",
43+ .gpio = 28,
44+ .active_low = 0,
45+ },
46+ {
47+ .name = "link:red",
48+ .gpio = 9,
49+ .active_low = 1,
50+ },
51+ {
52+ .name = "link:green",
53+ .gpio = 10,
54+ .active_low = 1,
55+ },
56+ /* green only */
57+ {
58+ .name = "ether",
59+ .gpio = 1,
60+ .active_low = 1,
61+ },
62+ {
63+ .name = "phone1",
64+ .gpio = 4,
65+ .active_low = 1,
66+ },
67+ {
68+ .name = "phone2",
69+ .gpio = 2,
70+ .active_low = 1,
71+ },
72+ {
73+ .name = "usb",
74+ .gpio = 3,
75+ .active_low = 1,
76+ },
77+ },
78+
79+ .buttons = {
80+ {
81+ .desc = "reset",
82+ .gpio = 36,
83+ .active_low = 1,
84+ .type = EV_KEY,
85+ .code = KEY_RESTART,
86+ .threshold = 3,
87+ },
88+ {
89+ .desc = "wps",
90+ .gpio = 37,
91+ .type = EV_KEY,
92+ .code = KEY_WPS_BUTTON,
93+ .threshold = 3,
94+ },
95+ },
96+};
97+
98+
99 static struct board_info __initdata board_AGPFS0 = {
100     .name = "AGPF-S0",
101     .expected_cpu_id = 0x6358,
102@@ -1347,6 +1439,7 @@ static const struct board_info __initdat
103     &board_96358vw,
104     &board_96358vw2,
105     &board_AGPFS0,
106+ &board_CPVA642,
107     &board_DWVS0,
108     &board_nb4_ser_r0,
109     &board_nb4_ser_r1,
110

Archive Download this file



interactive