901a0d85877f27596af4f894de42e8ab3d6a9ce3
[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 @@ -102,6 +102,92 @@ 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 +
28 +       .enetsw = {
29 +               .used_ports = {
30 +                       [0] = {
31 +                               .used   = 1,
32 +                               .phy_id = 1,
33 +                               .name   = "Port 1",
34 +                       },
35 +                       [1] = {
36 +                               .used   = 1,
37 +                               .phy_id = 2,
38 +                               .name   = "Port 2",
39 +                       },
40 +                       [2] = {
41 +                               .used   = 1,
42 +                               .phy_id = 3,
43 +                               .name   = "Port 3",
44 +                       },
45 +                       [3] = {
46 +                               .used   = 1,
47 +                               .phy_id = 4,
48 +                               .name   = "Port 4",
49 +                       },
50 +               },
51 +       },
52 +
53 +       .leds = {
54 +               {
55 +                       .name           = "96318REF:red:post-failed",
56 +                       .gpio           = 11,
57 +                       .active_low     = 1,
58 +               },
59 +               {
60 +                       .name           = "96318REF:green:inet",
61 +                       .gpio           = 8,
62 +                       .active_low     = 1,
63 +               },
64 +               {
65 +                       .name           = "96318REF:red:inet-fail",
66 +                       .gpio           = 9,
67 +                       .active_low     = 1,
68 +               },
69 +       },
70 +
71 +       .buttons = {
72 +               {
73 +                       .desc                   = "wps",
74 +                       .gpio                   = 33,
75 +                       .active_low             = 1,
76 +                       .type                   = EV_KEY,
77 +                       .code                   = KEY_WPS_BUTTON,
78 +                       .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
79 +               },
80 +               {
81 +                       .desc                   = "reset",
82 +                       .gpio                   = 34,
83 +                       .active_low             = 1,
84 +                       .type                   = EV_KEY,
85 +                       .code                   = KEY_RESTART,
86 +                       .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
87 +               },
88 +       },
89 +};
90 +#endif
91 +
92 +/*
93   * known 6328 boards
94   */
95  #ifdef CONFIG_BCM63XX_CPU_6328
96 @@ -4041,6 +4127,9 @@ static const struct board_info __initcon
97  #ifdef CONFIG_BCM63XX_CPU_3368
98         &board_cvg834g,
99  #endif
100 +#ifdef CONFIG_BCM63XX_CPU_6318
101 +       &board_96318ref,
102 +#endif
103  #ifdef CONFIG_BCM63XX_CPU_6328
104         &board_96328avng,
105         &board_96328A_1241N,