brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 514-board_ct536_ct5621.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -446,6 +446,34 @@ static struct board_info __initdata boar
4  };
5  
6  
7 +static struct board_info __initdata board_ct536_ct5621 = {
8 +       .name                           = "CT536_CT5621",
9 +       .expected_cpu_id                = 0x6348,
10 +
11 +       .has_uart0                      = 1,
12 +       .has_enet0                      = 0,
13 +       .has_enet1                      = 1,
14 +       .has_pci                        = 1,
15 +       .use_fallback_sprom             = 1,
16 +
17 +       .enet1 = {
18 +               .has_phy                = 1,
19 +               .phy_id                 = 0,
20 +               .force_speed_100        = 1,
21 +               .force_duplex_full      = 1,
22 +       },
23 +
24 +       .has_ohci0 = 1,
25 +       .has_pccard = 1,
26 +       .has_ehci0 = 1,
27 +
28 +       .fallback_sprom = {
29 +               .type                           = SPROM_BCM4318,
30 +               .pci_bus                        = 0,
31 +               .pci_dev                        = 1,
32 +       },
33 +};
34 +
35  static struct board_info __initdata board_96348gw = {
36         .name                           = "96348GW",
37         .expected_cpu_id                = 0x6348,
38 @@ -1126,6 +1154,7 @@ static const struct board_info __initcon
39         &board_96348sv,
40         &board_V2500V_BB,
41         &board_V2110,
42 +       &board_ct536_ct5621,
43  #endif
44  
45  #ifdef CONFIG_BCM63XX_CPU_6358
46 @@ -1165,6 +1194,8 @@ static struct of_device_id const bcm963x
47         { .compatible = "brcm,bcm96348gw-11", .data = &board_96348gw_11, },
48         { .compatible = "brcm,bcm96348gw-a", .data = &board_96348gw_a, },
49         { .compatible = "bt,v2500v-bb", .data = &board_V2500V_BB, },
50 +       { .compatible = "comtrend,ct-536+", .data = &board_ct536_ct5621, },
51 +       { .compatible = "comtrend,ct-5621", .data = &board_ct536_ct5621, },
52         { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
53         { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
54         { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },