brcm63xx: Add fallback sprom for A4001N
[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,95 @@ 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 +       .use_fallback_sprom             = 1,
14 +       .has_ohci0                      = 1,
15 +       .has_ehci0                      = 1,
16 +       .num_usbh_ports                 = 1,
17 +       .has_enetsw                     = 1,
18 +
19 +       .enetsw = {
20 +               .used_ports = {
21 +                       [0] = {
22 +                               .used   = 1,
23 +                               .phy_id = 1,
24 +                               .name   = "Port 1",
25 +                       },
26 +                       [1] = {
27 +                               .used   = 1,
28 +                               .phy_id = 2,
29 +                               .name   = "Port 2",
30 +                       },
31 +                       [2] = {
32 +                               .used   = 1,
33 +                               .phy_id = 3,
34 +                               .name   = "Port 3",
35 +                       },
36 +                       [3] = {
37 +                               .used   = 1,
38 +                               .phy_id = 4,
39 +                               .name   = "Port 4",
40 +                       },
41 +               },
42 +       },
43 +
44 +       .leds = {
45 +               {
46 +                       .name           = "A4001N:green:power",
47 +                       .gpio           = 8,
48 +                       .default_trigger = "default-on",
49 +               },
50 +               {
51 +                       .name           = "A4001N:red:power",
52 +                       .gpio           = 4,
53 +               },
54 +               {
55 +                       .name           = "A4001N:red:inet",
56 +                       .gpio           = 1,
57 +               },
58 +               {
59 +                       .name           = "A4001N:green:usb",
60 +                       .gpio           = 10,
61 +                       .active_low     = 1,
62 +               },
63 +               {
64 +                       .name           = "A4001N:green:dsl",
65 +                       .gpio           = 11,
66 +                       .active_low     = 1,
67 +               },
68 +       },
69 +
70 +       .buttons = {
71 +               {
72 +                       .desc           = "reset",
73 +                       .gpio           = 23,
74 +                       .active_low     = 1,
75 +                       .type           = EV_KEY,
76 +                       .code           = KEY_RESTART,
77 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
78 +               },
79 +               {
80 +                       .desc           = "wps",
81 +                       .gpio           = 24,
82 +                       .active_low     = 1,
83 +                       .type           = EV_KEY,
84 +                       .code           = KEY_WPS_BUTTON,
85 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
86 +               },
87 +       },
88 +
89 +       .fallback_sprom = {
90 +               .type                           = SPROM_BCM43225,
91 +               .pci_bus                        = 1,
92 +               .pci_dev                        = 0,
93 +       },
94 +};
95 +
96  static struct board_info __initdata board_A4001N1 = {
97         .name                                   = "963281T_TEF",
98         .expected_cpu_id                        = 0x6328,
99 @@ -5345,6 +5434,7 @@ static const struct board_info __initcon
100         &board_AR5381u,
101         &board_AR5387un,
102         &board_963281TAN,
103 +       &board_A4001N,
104         &board_A4001N1,
105         &board_dsl_274xb_f1,
106         &board_FAST2704V2,