Root/target/linux/brcm63xx/patches-3.6/503-board-CPVA642.patch

1--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3@@ -706,6 +706,96 @@ 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+ {
25+ .name = "CPVA642:red:power",
26+ .gpio = 14,
27+ .active_low = 1,
28+ },
29+ {
30+ .name = "CPVA642:green:power",
31+ .gpio = 11,
32+ .active_low = 1,
33+ .default_trigger = "default-on",
34+ },
35+ {
36+ .name = "CPVA642:red:wifi",
37+ .gpio = 6,
38+ .active_low = 1,
39+ },
40+ {
41+ .name = "CPVA642:green:wifi",
42+ .gpio = 28,
43+ .active_low = 0,
44+ },
45+ {
46+ .name = "CPVA642:red:link",
47+ .gpio = 9,
48+ .active_low = 1,
49+ },
50+ {
51+ .name = "CPVA642:green:link",
52+ .gpio = 10,
53+ .active_low = 1,
54+ },
55+ {
56+ .name = "CPVA642:green:ether",
57+ .gpio = 1,
58+ .active_low = 1,
59+ },
60+ {
61+ .name = "CPVA642:green:phone1",
62+ .gpio = 4,
63+ .active_low = 1,
64+ },
65+ {
66+ .name = "CPVA642:green:phone2",
67+ .gpio = 2,
68+ .active_low = 1,
69+ },
70+ {
71+ .name = "CPVA642:green:usb",
72+ .gpio = 3,
73+ .active_low = 1,
74+ },
75+ },
76+
77+ .buttons = {
78+ {
79+ .desc = "reset",
80+ .gpio = 36,
81+ .active_low = 1,
82+ .type = EV_KEY,
83+ .code = KEY_RESTART,
84+ .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
85+ },
86+ {
87+ .desc = "wps",
88+ .gpio = 37,
89+ .type = EV_KEY,
90+ .code = KEY_WPS_BUTTON,
91+ .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
92+ },
93+ },
94+};
95+
96+
97 static struct board_info __initdata board_AGPFS0 = {
98     .name = "AGPF-S0",
99     .expected_cpu_id = 0x6358,
100@@ -1362,6 +1452,7 @@ static const struct board_info __initdat
101     &board_96358vw,
102     &board_96358vw2,
103     &board_AGPFS0,
104+ &board_CPVA642,
105     &board_DWVS0,
106     &board_nb4_ser_r0,
107     &board_nb4_ser_r1,
108

Archive Download this file



interactive