2b90ee1b3902d6d4ecc85d63d4a5eaace9f369cc
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 566-board_A4001N.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -609,6 +609,96 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_A4001N = {
8 +       .name                           = "96328dg2x2",
9 +       .of_board_id                    = "adb,a4001n",
10 +       .expected_cpu_id                = 0x6328,
11 +
12 +       .has_uart0                      = 1,
13 +       .has_pci                        = 1,
14 +       .use_fallback_sprom             = 1,
15 +       .has_ohci0                      = 1,
16 +       .has_ehci0                      = 1,
17 +       .num_usbh_ports                 = 1,
18 +       .has_enetsw                     = 1,
19 +
20 +       .enetsw = {
21 +               .used_ports = {
22 +                       [0] = {
23 +                               .used   = 1,
24 +                               .phy_id = 1,
25 +                               .name   = "Port 1",
26 +                       },
27 +                       [1] = {
28 +                               .used   = 1,
29 +                               .phy_id = 2,
30 +                               .name   = "Port 2",
31 +                       },
32 +                       [2] = {
33 +                               .used   = 1,
34 +                               .phy_id = 3,
35 +                               .name   = "Port 3",
36 +                       },
37 +                       [3] = {
38 +                               .used   = 1,
39 +                               .phy_id = 4,
40 +                               .name   = "Port 4",
41 +                       },
42 +               },
43 +       },
44 +
45 +       .leds = {
46 +               {
47 +                       .name           = "A4001N:green:power",
48 +                       .gpio           = 8,
49 +                       .default_trigger = "default-on",
50 +               },
51 +               {
52 +                       .name           = "A4001N:red:power",
53 +                       .gpio           = 4,
54 +               },
55 +               {
56 +                       .name           = "A4001N:red:inet",
57 +                       .gpio           = 1,
58 +               },
59 +               {
60 +                       .name           = "A4001N:green:usb",
61 +                       .gpio           = 10,
62 +                       .active_low     = 1,
63 +               },
64 +               {
65 +                       .name           = "A4001N:green:dsl",
66 +                       .gpio           = 11,
67 +                       .active_low     = 1,
68 +               },
69 +       },
70 +
71 +       .buttons = {
72 +               {
73 +                       .desc           = "reset",
74 +                       .gpio           = 23,
75 +                       .active_low     = 1,
76 +                       .type           = EV_KEY,
77 +                       .code           = KEY_RESTART,
78 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
79 +               },
80 +               {
81 +                       .desc           = "wps",
82 +                       .gpio           = 24,
83 +                       .active_low     = 1,
84 +                       .type           = EV_KEY,
85 +                       .code           = KEY_WPS_BUTTON,
86 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
87 +               },
88 +       },
89 +
90 +       .fallback_sprom = {
91 +               .type                           = SPROM_BCM43225,
92 +               .pci_bus                        = 1,
93 +               .pci_dev                        = 0,
94 +       },
95 +};
96 +
97  static struct board_info __initdata board_A4001N1 = {
98         .name                                   = "963281T_TEF",
99         .of_board_id                    = "adb,a4001n1",
100 @@ -4960,6 +5050,7 @@ static const struct board_info __initcon
101         &board_AR5381u,
102         &board_AR5387un,
103         &board_963281TAN,
104 +       &board_A4001N,
105         &board_A4001N1,
106         &board_dsl_274xb_f1,
107         &board_FAST2704V2,