brcm63xx: refresh patches
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 500-board-D4PW.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -544,6 +544,56 @@ static struct board_info __initdata boar
4  
5         .has_ohci0 = 1,
6  };
7 +
8 +static struct board_info __initdata board_96348_D4PW = {
9 +       .name                           = "D-4P-W",
10 +       .expected_cpu_id                = 0x6348,
11 +
12 +       .has_enet1                      = 1,
13 +       .has_pci                        = 1,
14 +       .has_uart0                      = 1,
15 +
16 +       .enet1 = {
17 +               .has_phy                = 1,
18 +               .phy_id                 = 0,
19 +               .force_speed_100        = 1,
20 +               .force_duplex_full      = 1,
21 +       },
22 +
23 +       .leds = {
24 +               {
25 +                       .name           = "D-4P-W:green:power",
26 +                       .gpio           = 0,
27 +                       .active_low     = 1,
28 +               },
29 +               {
30 +                       .name           = "D-4P-W::status",
31 +                       .gpio           = 3,
32 +                       .active_low     = 1,
33 +               },
34 +               {
35 +                       .name           = "D-4P-W:green:internet",
36 +                       .gpio           = 4,
37 +                       .active_low     = 1,
38 +               },
39 +               {
40 +                       .name           = "D-4P-W:red:internet",
41 +                       .gpio           = 5,
42 +                       .active_low     = 1,
43 +               },
44 +       },
45 +
46 +       .buttons = {
47 +               {
48 +                       .desc           = "reset",
49 +                       .gpio           = 7,
50 +                       .active_low     = 1,
51 +                       .type           = EV_KEY,
52 +                       .code           = KEY_RESTART,
53 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
54 +               },
55 +       },
56 +};
57  #endif /* CONFIG_BCM63XX_CPU_6348 */
58  
59  /*
60 @@ -725,6 +775,7 @@ static const struct board_info __initcon
61         &board_DV201AMR,
62         &board_96348gw_a,
63         &board_rta1025w_16,
64 +       &board_96348_D4PW,
65  #endif
66  
67  #ifdef CONFIG_BCM63XX_CPU_6358
68 @@ -756,6 +807,7 @@ static struct of_device_id const bcm963x
69         { .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
70         { .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
71         { .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
72 +       { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
73         { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
74         { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
75         { .compatible = "netgear,dg834gtpn", .data = &board_96348gw_10, },