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