kernel: fix bluetooth and zsmalloc for 3.14
[openwrt.git] / target / linux / brcm63xx / patches-3.13 / 535-board_rta770w.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -776,6 +776,60 @@ static struct board_info __initdata boar
4                 },
5         },
6  };
7 +
8 +// Actually this board is the very same as the rta770bw,
9 +// where the additional 'b' within the name just
10 +// just indicates 'Annex B'. The ADSL Modem itself is able
11 +// to handle both Annex A as well as Annex B -
12 +// the loaded firmware makes the only difference
13 +static struct board_info __initdata board_rta770w = {
14 +       .name                           = "RTA770W",
15 +       .expected_cpu_id                = 0x6345,
16 +
17 +       .has_uart0                      = 1,
18 +
19 +       .has_enet0                      = 1,
20 +
21 +       .enet0 = {
22 +               .has_phy                = 1,
23 +               .phy_id                 = 0,
24 +               .force_speed_100        = 1,
25 +               .force_duplex_full      = 1,
26 +       },
27 +
28 +       .leds = {
29 +               {
30 +                       .name           = "RTA770W:green:usb",
31 +                       .gpio           = 7,
32 +                       .active_low     = 1,
33 +               },
34 +               {
35 +                       .name           = "RTA770W:green:adsl",
36 +                       .gpio           = 8,
37 +               },
38 +               {
39 +                       .name           = "RTA770W:green:diag",
40 +                       .gpio           = 10,
41 +                       .active_low     = 1,
42 +               },
43 +               {
44 +                       .name           = "RTA770W:green:wlan",
45 +                       .gpio           = 11,
46 +                       .active_low     = 1,
47 +               },
48 +       },
49 +
50 +       .buttons = {
51 +               {
52 +                       .desc           = "reset",
53 +                       .gpio           = 13,
54 +                       .type           = EV_KEY,
55 +                       .code           = KEY_RESTART,
56 +                       .active_low     = 1,
57 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
58 +               },
59 +       },
60 +};
61  #endif
62  
63  /*
64 @@ -3788,6 +3842,7 @@ static const struct board_info __initcon
65  #ifdef CONFIG_BCM63XX_CPU_6345
66         &board_96345gw2,
67         &board_rta770bw,
68 +       &board_rta770w,
69  #endif
70  #ifdef CONFIG_BCM63XX_CPU_6348
71         &board_96348r,