bcm63xx: add support for DSL-274XB rev F1
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 522-board_dsl_274xb_rev_f.patch
1 From 653dd2c8ff9d777104de85fb7b872ebed7139ceb Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Mon, 30 Apr 2012 09:10:51 +0200
4 Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
5 DSL-274xB rev F1
6
7 ---
8 arch/mips/bcm63xx/boards/board_bcm963xx.c | 80 +++++++++++++++++++++++++++++
9 1 file changed, 80 insertions(+)
10
11 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
13 @@ -54,6 +54,114 @@
14 static struct board_info board;
15
16 /*
17 + * known 6328 boards
18 + */
19 +#ifdef CONFIG_BCM63XX_CPU_6328
20 +static struct board_info __initdata board_dsl_274xb_f1 = {
21 + .name = "AW4339U",
22 + .expected_cpu_id = 0x6328,
23 +
24 + .has_uart0 = 1,
25 + .has_pci = 1,
26 +
27 + .has_caldata = 1,
28 + .caldata = {
29 + {
30 + .caldata_offset = 0x7d1000,
31 + .slot = 0,
32 + },
33 + },
34 +
35 + .has_enetsw = 1,
36 +
37 + .enetsw = {
38 + .used_ports = {
39 + [0] = {
40 + .used = 1,
41 + .phy_id = 1,
42 + .name = "Port 4",
43 + },
44 + [1] = {
45 + .used = 1,
46 + .phy_id = 2,
47 + .name = "Port 3",
48 + },
49 + [2] = {
50 + .used = 1,
51 + .phy_id = 3,
52 + .name = "Port 2",
53 + },
54 + [3] = {
55 + .used = 1,
56 + .phy_id = 4,
57 + .name = "Port 1",
58 + },
59 + },
60 + },
61 +
62 + .leds = {
63 + {
64 + .name = "dsl-274xb:red:internet",
65 + .gpio = 2,
66 + .active_low = 1,
67 + },
68 + {
69 + .name = "dsl-274xb:green:dsl",
70 + .gpio = 3,
71 + .active_low = 1,
72 + },
73 + {
74 + .name = "dsl-274xb:green:power",
75 + .gpio = 4,
76 + .active_low = 1,
77 + .default_trigger = "default-on",
78 + },
79 + {
80 + .name = "dsl-274xb:red:power",
81 + .gpio = 8,
82 + .active_low = 1,
83 + },
84 + {
85 + .name = "dsl-274xb:blue:wps",
86 + .gpio = 9,
87 + .active_low = 1,
88 + },
89 + {
90 + .name = "dsl-274xb:green:internet",
91 + .gpio = 11,
92 + .active_low = 1,
93 + },
94 + },
95 +
96 + .buttons = {
97 + {
98 + .desc = "wifi",
99 + .gpio = 10,
100 + .active_low = 1,
101 + .type = EV_KEY,
102 + .code = BTN_0,
103 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
104 + },
105 + {
106 + .desc = "reset",
107 + .gpio = 23,
108 + .active_low = 1,
109 + .type = EV_KEY,
110 + .code = KEY_RESTART,
111 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
112 + },
113 + {
114 + .desc = "wps",
115 + .gpio = 24,
116 + .active_low = 1,
117 + .code = KEY_WPS_BUTTON,
118 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
119 + },
120 + },
121 +};
122 +#endif
123 +
124 +/*
125 * known 6338 boards
126 */
127 #ifdef CONFIG_BCM63XX_CPU_6338
128 @@ -2160,6 +2268,9 @@ static struct board_info __initdata boar
129 * all boards
130 */
131 static const struct board_info __initdata *bcm963xx_boards[] = {
132 +#ifdef CONFIG_BCM63XX_CPU_6328
133 + &board_dsl_274xb_f1,
134 +#endif
135 #ifdef CONFIG_BCM63XX_CPU_6338
136 &board_96338gw,
137 &board_96338w,