brcm63xx: Add support for Comtrend VR-3025un
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 563-board_VR-3025un.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -4552,6 +4552,98 @@ static struct board_info __initdata boar
4 },
5 };
6
7 +static struct board_info __initdata board_VR3025un = {
8 + .name = "96368M-1341N",
9 + .expected_cpu_id = 0x6368,
10 +
11 + .has_uart0 = 1,
12 + .has_pci = 1,
13 + .has_ohci0 = 1,
14 + .has_ehci0 = 1,
15 +
16 + .has_enetsw = 1,
17 + .enetsw = {
18 + .used_ports = {
19 + [0] = {
20 + .used = 1,
21 + .phy_id = 1,
22 + .name = "port1",
23 + },
24 + [1] = {
25 + .used = 1,
26 + .phy_id = 2,
27 + .name = "port2",
28 + },
29 + [2] = {
30 + .used = 1,
31 + .phy_id = 3,
32 + .name = "port3",
33 + },
34 + [3] = {
35 + .used = 1,
36 + .phy_id = 4,
37 + .name = "port4",
38 + },
39 + },
40 + },
41 +
42 + .leds = {
43 + {
44 + .name = "VR-3025un:green:dsl",
45 + .gpio = 2,
46 + .active_low = 1,
47 + },
48 + {
49 + .name = "VR-3025un:green:inet",
50 + .gpio = 5,
51 + },
52 + {
53 + .name = "VR-3025un:green:lan1",
54 + .gpio = 6,
55 + .active_low = 1,
56 + },
57 + {
58 + .name = "VR-3025un:green:lan2",
59 + .gpio = 7,
60 + .active_low = 1,
61 + },
62 + {
63 + .name = "VR-3025un:green:lan3",
64 + .gpio = 8,
65 + .active_low = 1,
66 + },
67 + {
68 + .name = "VR-3025un:green:iptv",
69 + .gpio = 9,
70 + .active_low = 1,
71 + },
72 + {
73 + .name = "VR-3025un:green:power",
74 + .gpio = 22,
75 + .default_trigger = "default-on",
76 + },
77 + {
78 + .name = "VR-3025un:red:power",
79 + .gpio = 24,
80 + },
81 + {
82 + .name = "VR-3025un:red:inet",
83 + .gpio = 31,
84 + },
85 + },
86 +
87 + .buttons = {
88 + {
89 + .desc = "reset",
90 + .gpio = 34,
91 + .type = EV_KEY,
92 + .code = KEY_RESTART,
93 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
94 + .active_low = 1,
95 + },
96 + },
97 +};
98 +
99 static struct b53_platform_data WAP5813n_b53_pdata = {
100 .alias = "eth0",
101 };
102 @@ -5028,6 +5120,7 @@ static const struct board_info __initcon
103 &board_96368mvwg,
104 &board_96368mvngr,
105 &board_VR3025u,
106 + &board_VR3025un,
107 &board_WAP5813n,
108 #endif
109 #ifdef CONFIG_BCM63XX_CPU_63268