kernel: fix bluetooth and zsmalloc for 3.14
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.13 / 556-board_96318ref_p300.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -186,6 +186,94 @@ static struct board_info __initdata boar
4 },
5 },
6 };
7 +
8 +static struct board_info __initdata board_96318ref_p300 = {
9 + .name = "96318REF_P300",
10 + .expected_cpu_id = 0x6318,
11 +
12 + .has_uart0 = 1,
13 + .has_pci = 1,
14 +
15 + .has_usbd = 1,
16 +
17 + .usbd = {
18 + .use_fullspeed = 0,
19 + .port_no = 0,
20 + },
21 +
22 + .has_enetsw = 1,
23 +
24 + .has_ehci0 = 1,
25 + .num_usbh_ports = 1,
26 +
27 + .enetsw = {
28 + .used_ports = {
29 + [0] = {
30 + .used = 1,
31 + .phy_id = 1,
32 + .name = "Port 1",
33 + },
34 + [1] = {
35 + .used = 1,
36 + .phy_id = 2,
37 + .name = "Port 2",
38 + },
39 + [2] = {
40 + .used = 1,
41 + .phy_id = 3,
42 + .name = "Port 3",
43 + },
44 + [3] = {
45 + .used = 1,
46 + .phy_id = 4,
47 + .name = "Port 4",
48 + },
49 + },
50 + },
51 +
52 + .leds = {
53 + {
54 + .name = "96318REF_P300:red:post-failed",
55 + .gpio = 11,
56 + .active_low = 1,
57 + },
58 + {
59 + .name = "96318REF_P300:green:inet",
60 + .gpio = 8,
61 + .active_low = 1,
62 + },
63 + {
64 + .name = "96318REF_P300:red:inet-fail",
65 + .gpio = 9,
66 + .active_low = 1,
67 + },
68 + {
69 + .name = "96318REF_P300::usb-pwron",
70 + .gpio = 13,
71 + .active_low = 1,
72 + .default_trigger = "default-on",
73 + },
74 + },
75 +
76 + .buttons = {
77 + {
78 + .desc = "wps",
79 + .gpio = 33,
80 + .active_low = 1,
81 + .type = EV_KEY,
82 + .code = KEY_WPS_BUTTON,
83 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
84 + },
85 + {
86 + .desc = "reset",
87 + .gpio = 34,
88 + .active_low = 1,
89 + .type = EV_KEY,
90 + .code = KEY_RESTART,
91 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
92 + },
93 + },
94 +};
95 #endif
96
97 /*
98 @@ -4351,6 +4439,7 @@ static const struct board_info __initcon
99 #endif
100 #ifdef CONFIG_BCM63XX_CPU_6318
101 &board_96318ref,
102 + &board_96318ref_p300,
103 #endif
104 #ifdef CONFIG_BCM63XX_CPU_6328
105 &board_96328avng,