brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 527-board_dva-g3810bn-tl-1.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1318,6 +1318,36 @@ static struct board_info __initdata boar
4                 .use_internal_phy       = 1,
5         },
6  };
7 +
8 +/* D-Link DVA-G3810BN/TL */
9 +static struct board_info __initdata board_DVAG3810BN = {
10 +       .name                   = "DVAG3810BN",
11 +       .expected_cpu_id        = 0x6358,
12 +
13 +       .has_uart0              = 1,
14 +       .has_enet0              = 1,
15 +       .has_enet1              = 1,
16 +       .has_pci                = 1,
17 +
18 +       .enet0 = {
19 +               .has_phy                = 0,
20 +               .use_internal_phy       = 1,
21 +               .force_speed_100        = 1,
22 +               .force_duplex_full      = 1,
23 +       },
24 +
25 +       .enet1 = {
26 +               .has_phy                = 1,
27 +               .phy_id                 = 0,
28 +               .force_speed_100        = 1,
29 +               .force_duplex_full      = 1,
30 +       },
31 +
32 +
33 +       .has_ohci0              = 1,
34 +       .has_pccard             = 1,
35 +       .has_ehci0              = 1,
36 +};
37  #endif /* CONFIG_BCM63XX_CPU_6358 */
38  
39  /*
40 @@ -1468,6 +1498,7 @@ static const struct board_info __initcon
41         &board_ct6373_1,
42         &board_HW553,
43         &board_spw303v,
44 +       &board_DVAG3810BN,
45  #endif
46  
47  #ifdef CONFIG_BCM63XX_CPU_6368
48 @@ -1522,6 +1553,7 @@ static struct of_device_id const bcm963x
49         { .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
50         { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
51         { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
52 +       { .compatible = "d-link,dva-g3810bn/tl", .data = &board_DVAG3810BN, },
53         { .compatible = "huawei,hg553", .data = &board_HW553, },
54         { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
55         { .compatible = "pirelli,a226m", .data = &board_DWVS0, },