brcm63xx: Add fallback sprom for CT5361_CT5621
[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 @@ -555,6 +555,88 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_A4001N = {
8 +       .name                           = "96328dg2x2",
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           = "A4001N:green:power",
46 +                       .gpio           = 8,
47 +                       .default_trigger = "default-on",
48 +               },
49 +               {
50 +                       .name           = "A4001N:red:power",
51 +                       .gpio           = 4,
52 +               },
53 +               {
54 +                       .name           = "A4001N:red:inet",
55 +                       .gpio           = 1,
56 +               },
57 +               {
58 +                       .name           = "A4001N:green:usb",
59 +                       .gpio           = 10,
60 +                       .active_low     = 1,
61 +               },
62 +               {
63 +                       .name           = "A4001N:green:dsl",
64 +                       .gpio           = 11,
65 +                       .active_low     = 1,
66 +               },
67 +       },
68 +
69 +       .buttons = {
70 +               {
71 +                       .desc           = "reset",
72 +                       .gpio           = 23,
73 +                       .active_low     = 1,
74 +                       .type           = EV_KEY,
75 +                       .code           = KEY_RESTART,
76 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
77 +               },
78 +               {
79 +                       .desc           = "wps",
80 +                       .gpio           = 24,
81 +                       .active_low     = 1,
82 +                       .type           = EV_KEY,
83 +                       .code           = KEY_WPS_BUTTON,
84 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
85 +               },
86 +       },
87 +};
88 +
89  static struct board_info __initdata board_A4001N1 = {
90         .name                                   = "963281T_TEF",
91         .expected_cpu_id                        = 0x6328,
92 @@ -5202,6 +5284,7 @@ static const struct board_info __initcon
93         &board_AR5381u,
94         &board_AR5387un,
95         &board_963281TAN,
96 +       &board_A4001N,
97         &board_A4001N1,
98         &board_dsl_274xb_f1,
99         &board_FAST2704V2,