brcm63xx: 3.10: backport multi-board support
[openwrt.git] / target / linux / brcm63xx / patches-3.10 / 555-board_96318ref.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -73,6 +73,93 @@ static struct board_info __initdata boar
4  #endif
5  
6  /*
7 + * known 6318 boards
8 + */
9 +#ifdef CONFIG_BCM63XX_CPU_6318
10 +static struct board_info __initdata board_96318ref = {
11 +       .name                           = "96318REF",
12 +       .expected_cpu_id                = 0x6318,
13 +
14 +       .has_uart0                      = 1,
15 +       .has_pci                        = 1,
16 +
17 +       .has_usbd                       = 1,
18 +
19 +       .usbd = {
20 +               .use_fullspeed          = 0,
21 +               .port_no                = 0,
22 +       },
23 +
24 +       .has_enetsw                     = 1,
25 +
26 +       .has_ehci0                      = 1,
27 +       .num_usbh_ports                 = 1,
28 +
29 +       .enetsw = {
30 +               .used_ports = {
31 +                       [0] = {
32 +                               .used   = 1,
33 +                               .phy_id = 1,
34 +                               .name   = "Port 1",
35 +                       },
36 +                       [1] = {
37 +                               .used   = 1,
38 +                               .phy_id = 2,
39 +                               .name   = "Port 2",
40 +                       },
41 +                       [2] = {
42 +                               .used   = 1,
43 +                               .phy_id = 3,
44 +                               .name   = "Port 3",
45 +                       },
46 +                       [3] = {
47 +                               .used   = 1,
48 +                               .phy_id = 4,
49 +                               .name   = "Port 4",
50 +                       },
51 +               },
52 +       },
53 +
54 +       .leds = {
55 +               {
56 +                       .name           = "96318REF:red:post-failed",
57 +                       .gpio           = 11,
58 +                       .active_low     = 1,
59 +               },
60 +               {
61 +                       .name           = "96318REF:green:inet",
62 +                       .gpio           = 8,
63 +                       .active_low     = 1,
64 +               },
65 +               {
66 +                       .name           = "96318REF:red:inet-fail",
67 +                       .gpio           = 9,
68 +                       .active_low     = 1,
69 +               },
70 +       },
71 +
72 +       .buttons = {
73 +               {
74 +                       .desc                   = "wps",
75 +                       .gpio                   = 33,
76 +                       .active_low             = 1,
77 +                       .type                   = EV_KEY,
78 +                       .code                   = KEY_WPS_BUTTON,
79 +                       .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
80 +               },
81 +               {
82 +                       .desc                   = "reset",
83 +                       .gpio                   = 34,
84 +                       .active_low             = 1,
85 +                       .type                   = EV_KEY,
86 +                       .code                   = KEY_RESTART,
87 +                       .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
88 +               },
89 +       },
90 +};
91 +#endif
92 +
93 +/*
94   * known 6328 boards
95   */
96  #ifdef CONFIG_BCM63XX_CPU_6328
97 @@ -4255,6 +4342,9 @@ static const struct board_info __initcon
98  #ifdef CONFIG_BCM63XX_CPU_3368
99         &board_cvg834g,
100  #endif
101 +#ifdef CONFIG_BCM63XX_CPU_6318
102 +       &board_96318ref,
103 +#endif
104  #ifdef CONFIG_BCM63XX_CPU_6328
105         &board_96328avng,
106         &board_96328A_1241N,