brcm63xx: 3.10: backport multi-board support
[openwrt.git] / target / linux / brcm63xx / patches-3.10 / 531-board_96328A-1441N1.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -150,6 +150,79 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_96328A_1441N1 = {
8 +       .name                                   = "96328A-1441N1",
9 +       .expected_cpu_id                        = 0x6328,
10 +
11 +       .has_uart0                              = 1,
12 +       .has_pci                                = 1,
13 +       .has_ohci0                              = 1,
14 +       .has_ehci0                              = 1,
15 +       .num_usbh_ports                         = 1,
16 +       .has_enetsw                             = 1,
17 +
18 +       .enetsw = {
19 +               .used_ports = {
20 +                       [0] = {
21 +                               .used           = 1,
22 +                               .phy_id         = 1,
23 +                               .name           = "Port 1",
24 +                       },
25 +                       [1] = {
26 +                               .used           = 1,
27 +                               .phy_id         = 2,
28 +                               .name           = "Port 2",
29 +                       },
30 +                       [2] = {
31 +                               .used           = 1,
32 +                               .phy_id         = 3,
33 +                               .name           = "Port 3",
34 +                       },
35 +                       [3] = {
36 +                               .used           = 1,
37 +                               .phy_id         = 4,
38 +                               .name           = "Port 4",
39 +                       },
40 +               },
41 +       },
42 +
43 +       .leds = {
44 +               {
45 +                       .name                   = "96328A-1441N1:green:power",
46 +                       .gpio                   = 8,
47 +                       .default_trigger        = "default-on",
48 +               },
49 +               {
50 +                       .name                   = "96328A-1441N1:red:power",
51 +                       .gpio                   = 4,
52 +               },
53 +               {
54 +                       .name                   = "96328A-1441N1:green:inet",
55 +                       .gpio                   = 7,
56 +               },
57 +               {
58 +                       .name                   = "96328A-1441N1:red:inet",
59 +                       .gpio                   = 1,
60 +               },
61 +               {
62 +                       .name                   = "96328A-1441N1:green:dsl",
63 +                       .gpio                   = 11,
64 +                       .active_low             = 1,
65 +               },
66 +       },
67 +
68 +       .buttons = {
69 +               {
70 +                       .desc                   = "reset",
71 +                       .gpio                   = 23,
72 +                       .active_low             = 1,
73 +                       .type                   = EV_KEY,
74 +                       .code                   = KEY_RESTART,
75 +                       .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
76 +               },
77 +       },
78 +};
79 +
80  static struct board_info __initdata board_963281TAN = {
81         .name                           = "963281TAN",
82         .expected_cpu_id                = 0x6328,
83 @@ -3090,6 +3163,7 @@ static const struct board_info __initcon
84  #endif
85  #ifdef CONFIG_BCM63XX_CPU_6328
86         &board_96328avng,
87 +       &board_96328A_1441N1,
88         &board_963281TAN,
89         &board_963281T_TEF,
90         &board_dsl_274xb_f1,