brcm63xx: add preliminary support for 3.13
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.13 / 532-board_96328a-1241N.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -180,6 +180,73 @@ static struct board_info __initdata boar
4 },
5 };
6
7 +static struct board_info __initdata board_96328A_1241N = {
8 + .name = "96328A-1241N",
9 + .expected_cpu_id = 0x6328,
10 +
11 + .has_uart0 = 1,
12 + .has_pci = 1,
13 + .has_ohci0 = 1,
14 + .has_ehci0 = 1,
15 + .num_usbh_ports = 1,
16 + .has_enetsw = 1,
17 +
18 + .enetsw = {
19 + .used_ports = {
20 + [0] = {
21 + .used = 1,
22 + .phy_id = 1,
23 + .name = "Port 1",
24 + },
25 + [1] = {
26 + .used = 1,
27 + .phy_id = 2,
28 + .name = "Port 2",
29 + },
30 + [2] = {
31 + .used = 1,
32 + .phy_id = 3,
33 + .name = "Port 3",
34 + },
35 + [3] = {
36 + .used = 1,
37 + .phy_id = 4,
38 + .name = "Port 4",
39 + },
40 + },
41 + },
42 +
43 + .leds = {
44 + {
45 + .name = "96328A-1241N:green:power",
46 + .gpio = 4,
47 + .active_low = 1,
48 + .default_trigger = "default-on",
49 + },
50 + {
51 + .name = "96328A-1241N:red:alarm",
52 + .gpio = 2,
53 + .active_low = 1,
54 + },
55 + {
56 + .name = "96328A-1241N:green:inet",
57 + .gpio = 3,
58 + .active_low = 1,
59 + },
60 + },
61 +
62 + .buttons = {
63 + {
64 + .desc = "reset",
65 + .gpio = 23,
66 + .active_low = 1,
67 + .type = EV_KEY,
68 + .code = KEY_RESTART,
69 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
70 + },
71 + },
72 +};
73 +
74 static struct board_info __initdata board_96328A_1441N1 = {
75 .name = "96328A-1441N1",
76 .expected_cpu_id = 0x6328,
77 @@ -3171,6 +3238,7 @@ static const struct board_info __initcon
78 #endif
79 #ifdef CONFIG_BCM63XX_CPU_6328
80 &board_96328avng,
81 + &board_96328A_1241N,
82 &board_96328A_1441N1,
83 &board_963281TAN,
84 &board_963281T_TEF,