bcm63xx: add 3.9 support
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.9 / 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 @@ -204,6 +204,111 @@ 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 + .vendor = PCI_VENDOR_ID_ATHEROS,
29 + .caldata_offset = 0x7d1000,
30 + .slot = 0,
31 + .led_pin = -1,
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 @@ -2436,6 +2541,7 @@ static const struct board_info __initcon
126 #ifdef CONFIG_BCM63XX_CPU_6328
127 &board_96328avng,
128 &board_963281TAN,
129 + &board_dsl_274xb_f1,
130 #endif
131 #ifdef CONFIG_BCM63XX_CPU_6338
132 &board_96338gw,