27049ee8d5a9dcdf55051a75a50e47a5470417d0
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-2.6.35 / 310-CPVA642_board.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -677,6 +677,103 @@ 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 = 8,
44 + .active_low = 1,
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 = "phone2",
74 + .gpio = 2,
75 + .active_low = 1,
76 + },
77 + {
78 + .name = "usb",
79 + .gpio = 3,
80 + .active_low = 1,
81 + },
82 + },
83 +
84 + .buttons = {
85 + {
86 + .desc = "reset",
87 + .gpio = 36,
88 + .active_low = 1,
89 + .type = EV_KEY,
90 + .code = KEY_RESTART,
91 + .threshold = 3,
92 + },
93 + {
94 + .desc = "wps",
95 + .gpio = 37,
96 + .type = EV_KEY,
97 + .code = KEY_WPS_BUTTON,
98 + .threshold = 3,
99 + },
100 + },
101 +};
102 +
103 +
104 static struct board_info __initdata board_AGPFS0 = {
105 .name = "AGPF-S0",
106 .expected_cpu_id = 0x6358,
107 @@ -1339,6 +1436,7 @@ static const struct board_info __initdat
108 &board_96358vw,
109 &board_96358vw2,
110 &board_AGPFS0,
111 + &board_CPVA642,
112 &board_DWVS0,
113 &board_nb4_ser_r0,
114 &board_nb4_ser_r1,