bcm63xx: reorganize board patches
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 662-board_bcm6368-adb-av4202n.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1904,6 +1904,49 @@ 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_pci = 1,
12 + .has_ohci0 = 1,
13 + .has_ehci0 = 1,
14 + .num_usbh_ports = 2,
15 +
16 + .has_enetsw = 1,
17 + .enetsw = {
18 + .used_ports = {
19 + [0] = {
20 + .used = 1,
21 + .phy_id = 1,
22 + .name = "port1",
23 + },
24 + [1] = {
25 + .used = 1,
26 + .phy_id = 2,
27 + .name = "port2",
28 + },
29 + [2] = {
30 + .used = 1,
31 + .phy_id = 3,
32 + .name = "port3",
33 + },
34 + [3] = {
35 + .used = 1,
36 + .phy_id = 4,
37 + .name = "port4",
38 + },
39 + },
40 + },
41 +
42 + .use_fallback_sprom = 1,
43 + .fallback_sprom = {
44 + .type = SPROM_BCM4322,
45 + .pci_bus = 0,
46 + .pci_dev = 1,
47 + },
48 +};
49 +
50 static struct board_info __initdata board_96368mvwg = {
51 .name = "96368MVWG",
52 .expected_cpu_id = 0x6368,
53 @@ -2462,6 +2505,7 @@ static const struct board_info __initcon
54 &board_hg253s_v2,
55 #endif /* CONFIG_BCM63XX_CPU_6362 */
56 #ifdef CONFIG_BCM63XX_CPU_6368
57 + &board_AV4202N,
58 &board_96368mvwg,
59 &board_96368mvngr,
60 &board_DGND3700v1_3800B,
61 @@ -2570,6 +2614,7 @@ static struct of_device_id const bcm963x
62 { .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
63 #endif /* CONFIG_BCM63XX_CPU_6362 */
64 #ifdef CONFIG_BCM63XX_CPU_6368
65 + { .compatible = "adb,av4202n", .data = &board_AV4202N, },
66 { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
67 { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
68 { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },