brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 500-board-D4PW.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -524,6 +524,22 @@ 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  #endif /* CONFIG_BCM63XX_CPU_6348 */
24  
25  /*
26 @@ -705,6 +721,7 @@ static const struct board_info __initcon
27         &board_DV201AMR,
28         &board_96348gw_a,
29         &board_rta1025w_16,
30 +       &board_96348_D4PW,
31  #endif
32  
33  #ifdef CONFIG_BCM63XX_CPU_6358
34 @@ -736,6 +753,7 @@ static struct of_device_id const bcm963x
35         { .compatible = "brcm,bcm96348gw-10", .data = &board_96348gw_10, },
36         { .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
37         { .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
38 +       { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
39         { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
40         { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
41         { .compatible = "netgear,dg834gtpn", .data = &board_96348gw_10, },