[brcm63xx] add support for DSL-2640B rev B2
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-2.6.37 / 421-board-D4PW_correction.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -522,42 +522,48 @@ static struct board_info __initdata boar
4 .name = "D-4P-W",
5 .expected_cpu_id = 0x6348,
6
7 - .has_enet0 = 1,
8 - .has_enet1 = 1,
9 + .has_enet1 = 1,
10 .has_pci = 1,
11 -
12 - .enet0 = {
13 - .has_phy = 1,
14 - .use_internal_phy = 1,
15 - },
16 + .has_uart0 = 1,
17 +
18 .enet1 = {
19 .force_speed_100 = 1,
20 .force_duplex_full = 1,
21 - },
22 -
23 - .has_ohci0 = 1,
24 - .has_ehci0 = 1,
25 + },
26
27 .leds = {
28 {
29 - .name = "ppp",
30 + .name = "power:green",
31 + .gpio = 0,
32 + .active_low = 1,
33 + },
34 + {
35 + .name = "status",
36 + .gpio = 3,
37 + .active_low = 1,
38 + },
39 + {
40 + .name = "internet:green",
41 .gpio = 4,
42 .active_low = 1,
43 },
44 {
45 - .name = "ppp-fail",
46 + .name = "internet:red",
47 .gpio = 5,
48 .active_low = 1,
49 - },
50 + },
51 + },
52 +
53 + .buttons = {
54 {
55 - .name = "power",
56 - .gpio = 0,
57 + .desc = "reset",
58 + .gpio = 7,
59 .active_low = 1,
60 - .default_trigger = "default-on",
61 -
62 + .type = EV_KEY,
63 + .code = KEY_RESTART,
64 + .threshold = 3,
65 },
66 },
67 -
68 };
69
70 static struct board_info __initdata board_spw500v = {