a3b630eeb5b5aa357798d55b81a44bbf02edd6c3
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.6 / 524-board_dsl_274xb_rev_f.patch
1 From 66808f706b3dcd83a9f5157997ff478a880a2906 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 | 104 +++++++++++++++++++++++++++++
9 1 files changed, 104 insertions(+), 0 deletions(-)
10
11 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
13 @@ -195,6 +195,110 @@ static struct board_info __initdata boar
14
15 },
16 };
17 +
18 +static struct board_info __initdata board_dsl_274xb_f1 = {
19 + .name = "AW4339U",
20 + .expected_cpu_id = 0x6328,
21 +
22 + .has_uart0 = 1,
23 + .has_pci = 1,
24 +
25 + .has_caldata = 1,
26 + .caldata = {
27 + {
28 + .caldata_offset = 0x7d1000,
29 + .slot = 0,
30 + .led_pin = -1,
31 + },
32 + },
33 +
34 + .has_enetsw = 1,
35 +
36 + .enetsw = {
37 + .used_ports = {
38 + [0] = {
39 + .used = 1,
40 + .phy_id = 1,
41 + .name = "Port 4",
42 + },
43 + [1] = {
44 + .used = 1,
45 + .phy_id = 2,
46 + .name = "Port 3",
47 + },
48 + [2] = {
49 + .used = 1,
50 + .phy_id = 3,
51 + .name = "Port 2",
52 + },
53 + [3] = {
54 + .used = 1,
55 + .phy_id = 4,
56 + .name = "Port 1",
57 + },
58 + },
59 + },
60 +
61 + .leds = {
62 + {
63 + .name = "dsl-274xb:red:internet",
64 + .gpio = 2,
65 + .active_low = 1,
66 + },
67 + {
68 + .name = "dsl-274xb:green:dsl",
69 + .gpio = 3,
70 + .active_low = 1,
71 + },
72 + {
73 + .name = "dsl-274xb:green:power",
74 + .gpio = 4,
75 + .active_low = 1,
76 + .default_trigger = "default-on",
77 + },
78 + {
79 + .name = "dsl-274xb:red:power",
80 + .gpio = 8,
81 + .active_low = 1,
82 + },
83 + {
84 + .name = "dsl-274xb:blue:wps",
85 + .gpio = 9,
86 + .active_low = 1,
87 + },
88 + {
89 + .name = "dsl-274xb:green:internet",
90 + .gpio = 11,
91 + .active_low = 1,
92 + },
93 + },
94 +
95 + .buttons = {
96 + {
97 + .desc = "wifi",
98 + .gpio = 10,
99 + .active_low = 1,
100 + .type = EV_KEY,
101 + .code = BTN_0,
102 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
103 + },
104 + {
105 + .desc = "reset",
106 + .gpio = 23,
107 + .active_low = 1,
108 + .type = EV_KEY,
109 + .code = KEY_RESTART,
110 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
111 + },
112 + {
113 + .desc = "wps",
114 + .gpio = 24,
115 + .active_low = 1,
116 + .code = KEY_WPS_BUTTON,
117 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
118 + },
119 + },
120 +};
121 #endif
122
123 /*
124 @@ -2393,6 +2497,7 @@ static const struct board_info __initdat
125 #ifdef CONFIG_BCM63XX_CPU_6328
126 &board_96328avng,
127 &board_963281TAN,
128 + &board_dsl_274xb_f1,
129 #endif
130 #ifdef CONFIG_BCM63XX_CPU_6338
131 &board_96338gw,