[brcm63xx] add preliminary support for 3.6 kernel
[openwrt.git] / target / linux / brcm63xx / patches-3.6 / 527-board_dva-g3810bn-tl-1.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2512,6 +2512,71 @@ static struct board_info __initdata boar
4                 },
5         }
6  };
7 +
8 +/* D-Link DVA-G3810BN/TL */
9 +static struct board_info __initdata board_DVAG3810BN = {
10 +       .name                   = "DVAG3810BN",
11 +       .expected_cpu_id        = 0x6358,
12 +
13 +       .has_uart0              = 1,
14 +       .has_enet0              = 1,
15 +       .has_enet1              = 1,
16 +       .has_pci                = 1,
17 +
18 +       .enet0 = {
19 +               .has_phy                = 0,
20 +               .use_internal_phy       = 1,
21 +               .force_speed_100        = 1,
22 +               .force_duplex_full      = 1,
23 +       },
24 +
25 +       .enet1 = {
26 +               .force_speed_100        = 1,
27 +               .force_duplex_full      = 1,
28 +       },
29 +
30 +
31 +       .has_ohci0              = 1,
32 +       .has_pccard             = 1,
33 +       .has_ehci0              = 1,
34 +
35 +       .leds = {
36 +               {
37 +                       .name   = "DVAG3810BN::voip",
38 +                       .gpio   = 1,
39 +               },
40 +               {
41 +                       .name   = "DVAG3810BN::dsl",
42 +                       .gpio   = 22,
43 +                       .active_low  = 1,
44 +               },
45 +               {
46 +                       .name   = "DVAG3810BN::internet",
47 +                       .gpio   = 23,
48 +                       .active_low  = 1,
49 +               },
50 +               {
51 +                       .name   = "DVAG3810BN::power",
52 +                       .gpio   = 4,
53 +                       .default_trigger = "default-on",
54 +               },
55 +               {
56 +                       .name   = "DVAG3810BN::stop",
57 +                       .gpio   = 5,
58 +               },
59 +       },
60 +
61 +       .buttons = {
62 +               {
63 +                       .desc   = "reset",
64 +                       .gpio   = 34,
65 +                       .active_low = 1,
66 +                       .type   = EV_KEY,
67 +                       .code   = KEY_RESTART,
68 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
69 +               },
70 +       },
71 +};
72  #endif
73  
74  /*
75 @@ -2707,6 +2772,7 @@ static const struct board_info __initdat
76         &board_ct6373_1,
77         &board_HW553,
78         &board_spw303v,
79 +       &board_DVAG3810BN,
80  #endif
81  
82  #ifdef CONFIG_BCM63XX_CPU_6368