ipq806x: refresh patches
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.4 / 576-board_AV4202N.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1851,6 +1851,52 @@ static struct board_info __initdata boar
4   * known 6368 boards
5   */
6  #ifdef CONFIG_BCM63XX_CPU_6368
7 +static struct board_info __initdata board_AV4202N = {
8 +       .name                           = "96368_Swiss_S1",
9 +       .expected_cpu_id                = 0x6368,
10 +
11 +       .has_uart0                      = 1,
12 +       .has_pci                        = 1,
13 +       .has_ohci0                      = 1,
14 +       .has_ehci0                      = 1,
15 +       .num_usbh_ports                 = 2,
16 +
17 +       .has_enetsw                     = 1,
18 +       .enetsw = {
19 +               .used_ports = {
20 +                       [0] = {
21 +                               .used   = 1,
22 +                               .phy_id = 1,
23 +                               .name   = "port1",
24 +                       },
25 +
26 +                       [1] = {
27 +                               .used   = 1,
28 +                               .phy_id = 2,
29 +                               .name   = "port2",
30 +                       },
31 +
32 +                       [2] = {
33 +                               .used   = 1,
34 +                               .phy_id = 3,
35 +                               .name   = "port3",
36 +                       },
37 +
38 +                       [3] = {
39 +                               .used   = 1,
40 +                               .phy_id = 4,
41 +                               .name   = "port4",
42 +                       },
43 +               },
44 +       },
45 +       .use_fallback_sprom     = 1,
46 +       .fallback_sprom = {
47 +               .pci_bus                = 0,
48 +               .pci_dev                = 1,
49 +       },
50 +
51 +};
52 +
53  static struct board_info __initdata board_96368mvwg = {
54         .name                           = "96368MVWG",
55         .expected_cpu_id                = 0x6368,
56 @@ -2615,6 +2661,7 @@ static const struct board_info __initcon
57  #endif
58  
59  #ifdef CONFIG_BCM63XX_CPU_6368
60 +       &board_AV4202N,
61         &board_96368mvwg,
62         &board_96368mvngr,
63         &board_DGND3700v1_3800B,
64 @@ -2722,6 +2769,7 @@ static struct of_device_id const bcm963x
65         { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
66  #endif
67  #ifdef CONFIG_BCM63XX_CPU_6368
68 +       { .compatible = "adb,av4202n", .data = &board_AV4202N, },
69         { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
70         { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
71         { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },