brcm63xx: add preliminary support for 3.13
[openwrt.git] / target / linux / brcm63xx / patches-3.13 / 559-board_vw6339gu.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -4542,6 +4542,108 @@ static struct board_info __initdata boar
4                 },
5         },
6  };
7 +
8 +static struct board_info __initdata board_vw6339gu = {
9 +       .name                           = "VW6339GU",
10 +       .expected_cpu_id                = 0x63268,
11 +
12 +       .has_uart0                      = 1,
13 +
14 +       .has_ehci0                      = 1,
15 +       .has_ohci0                      = 1,
16 +       .num_usbh_ports                 = 1,
17 +
18 +       .has_enetsw                     = 1,
19 +
20 +       .enetsw = {
21 +               .used_ports = {
22 +                       [0] = {
23 +                               .used   = 1,
24 +                               .phy_id = 1,
25 +                               .name   = "LAN2",
26 +                       },
27 +
28 +                       [1] = {
29 +                               .used   = 1,
30 +                               .phy_id = 2,
31 +                               .name   = "LAN3",
32 +                       },
33 +
34 +                       [2] = {
35 +                               .used   = 1,
36 +                               .phy_id = 3,
37 +                               .name   = "LAN4",
38 +                       },
39 +
40 +                       [3] = {
41 +                               .used   = 1,
42 +                               .phy_id = 4,
43 +                               .name   = "LAN1",
44 +                       },
45 +
46 +                       [4] = {
47 +                               .used   = 1,
48 +                               .phy_id = 7,
49 +                               .name   = "WAN",
50 +                       },
51 +               },
52 +       },
53 +
54 +       .leds = {
55 +               {
56 +                       .name           = "VW6339GU:green:power",
57 +                       .gpio           = 1,
58 +                       .active_low     = 1,
59 +               },
60 +               {
61 +                       .name           = "VW6339GU:red:power",
62 +                       .gpio           = 0,
63 +                       .active_low     = 1,
64 +               },
65 +               {
66 +                       .name           = "VW6339GU:green:internet",
67 +                       .gpio           = 8,
68 +                       .active_low     = 1,
69 +               },
70 +               {
71 +                       .name           = "VW6339GU:red:internet",
72 +                       .gpio           = 2,
73 +                       .active_low     = 1,
74 +               },
75 +               {
76 +                       .name           = "VW6339GU:green:dsl",
77 +                       .gpio           = 3,
78 +                       .active_low     = 1,
79 +               },
80 +               {
81 +                       .name           = "VW6339GU:green:wps",
82 +                       .gpio           = 7,
83 +                       .active_low     = 1,
84 +               },
85 +               {
86 +                       .name           = "VW6339GU:green:usb",
87 +                       .gpio           = 15,
88 +                       .active_low     = 1,
89 +               },
90 +       },
91 +
92 +       .buttons = {
93 +               {
94 +                       .desc           = "reset",
95 +                       .gpio           = 32,
96 +                       .type           = EV_KEY,
97 +                       .code           = KEY_RESTART,
98 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
99 +               },
100 +               {
101 +                       .desc           = "wps",
102 +                       .gpio           = 34,
103 +                       .type           = EV_KEY,
104 +                       .code           = KEY_WPS_BUTTON,
105 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
106 +               },
107 +       },
108 +};
109  #endif
110  
111  /*
112 @@ -4632,6 +4734,7 @@ static const struct board_info __initcon
113  #endif
114  #ifdef CONFIG_BCM63XX_CPU_63268
115         &board_963269bhr,
116 +       &board_vw6339gu,
117  #endif
118  };
119