brcm63xx: add preliminary support for 3.13
[openwrt.git] / target / linux / brcm63xx / patches-3.13 / 514-board_ct536_ct5621.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -543,6 +543,51 @@ 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 +
16 +       .enet1 = {
17 +               .has_phy                = 1,
18 +               .phy_id                 = 0,
19 +               .force_speed_100        = 1,
20 +               .force_duplex_full      = 1,
21 +       },
22 +
23 +       .has_ohci0 = 1,
24 +       .has_pccard = 1,
25 +       .has_ehci0 = 1,
26 +
27 +       .leds = {
28 +               {
29 +                       .name           = "CT536_CT5621:green:adsl-fail",
30 +                       .gpio           = 2,
31 +                       .active_low     = 1,
32 +               },
33 +               {
34 +                       .name           = "CT536_CT5621:green:power",
35 +                       .gpio           = 0,
36 +                       .active_low     = 1,
37 +                       .default_trigger = "default-on",
38 +               },
39 +       },
40 +       .buttons = {
41 +               {
42 +                       .desc           = "reset",
43 +                       .gpio           = 33,
44 +                       .active_low     = 1,
45 +                       .type           = EV_KEY,
46 +                       .code           = KEY_RESTART,
47 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
48 +               },
49 +       },
50 +};
51 +
52  static struct board_info __initdata board_96348gw = {
53         .name                           = "96348GW",
54         .expected_cpu_id                = 0x6348,
55 @@ -2114,6 +2159,7 @@ static const struct board_info __initcon
56         &board_96348sv,
57         &board_V2500V_BB,
58         &board_V2110,
59 +       &board_ct536_ct5621,
60  #endif
61  
62  #ifdef CONFIG_BCM63XX_CPU_6358