[brcm63xx] add preliminary support for 3.6 kernel
[openwrt.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,109 @@ 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 +               },
31 +       },
32 +
33 +       .has_enetsw                     = 1,
34 +
35 +       .enetsw = {
36 +               .used_ports = {
37 +                       [0] = {
38 +                               .used   = 1,
39 +                               .phy_id = 1,
40 +                               .name   = "Port 4",
41 +                       },
42 +                       [1] = {
43 +                               .used   = 1,
44 +                               .phy_id = 2,
45 +                               .name   = "Port 3",
46 +                       },
47 +                       [2] = {
48 +                               .used   = 1,
49 +                               .phy_id = 3,
50 +                               .name   = "Port 2",
51 +                       },
52 +                       [3] = {
53 +                               .used   = 1,
54 +                               .phy_id = 4,
55 +                               .name   = "Port 1",
56 +                       },
57 +               },
58 +       },
59 +
60 +       .leds = {
61 +               {
62 +                       .name           = "dsl-274xb:red:internet",
63 +                       .gpio           = 2,
64 +                       .active_low     = 1,
65 +               },
66 +               {
67 +                       .name           = "dsl-274xb:green:dsl",
68 +                       .gpio           = 3,
69 +                       .active_low     = 1,
70 +               },
71 +               {
72 +                       .name           = "dsl-274xb:green:power",
73 +                       .gpio           = 4,
74 +                       .active_low     = 1,
75 +                       .default_trigger = "default-on",
76 +               },
77 +               {
78 +                       .name           = "dsl-274xb:red:power",
79 +                       .gpio           = 8,
80 +                       .active_low     = 1,
81 +               },
82 +               {
83 +                       .name           = "dsl-274xb:blue:wps",
84 +                       .gpio           = 9,
85 +                       .active_low     = 1,
86 +               },
87 +               {
88 +                       .name           = "dsl-274xb:green:internet",
89 +                       .gpio           = 11,
90 +                       .active_low     = 1,
91 +               },
92 +       },
93 +
94 +       .buttons = {
95 +               {
96 +                       .desc           = "wifi",
97 +                       .gpio           = 10,
98 +                       .active_low     = 1,
99 +                       .type           = EV_KEY,
100 +                       .code           = BTN_0,
101 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
102 +               },
103 +               {
104 +                       .desc           = "reset",
105 +                       .gpio           = 23,
106 +                       .active_low     = 1,
107 +                       .type           = EV_KEY,
108 +                       .code           = KEY_RESTART,
109 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
110 +               },
111 +               {
112 +                       .desc           = "wps",
113 +                       .gpio           = 24,
114 +                       .active_low     = 1,
115 +                       .code           = KEY_WPS_BUTTON,
116 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
117 +               },
118 +       },
119 +};
120  #endif
121  
122  /*
123 @@ -2393,6 +2496,7 @@ static const struct board_info __initdat
124  #ifdef CONFIG_BCM63XX_CPU_6328
125         &board_96328avng,
126         &board_963281TAN,
127 +       &board_dsl_274xb_f1,
128  #endif
129  #ifdef CONFIG_BCM63XX_CPU_6338
130         &board_96338gw,