bcm63xx: refactor board patches
[openwrt/staging/chunkeey.git] / target / linux / bcm63xx / patches-5.4 / 516-board_96348A-122.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -247,6 +247,29 @@ static struct board_info __initdata boar
4 },
5 };
6
7 +static struct board_info __initdata board_96348A_122 = {
8 + .name = "96348A-122",
9 + .expected_cpu_id = 0x6348,
10 +
11 + .has_pci = 1,
12 + .has_ohci0 = 1,
13 +
14 + .has_enet1 = 1,
15 + .enet1 = {
16 + .has_phy = 1,
17 + .phy_id = 0,
18 + .force_speed_100 = 1,
19 + .force_duplex_full = 1,
20 + },
21 +
22 + .use_fallback_sprom = 1,
23 + .fallback_sprom = {
24 + .type = SPROM_BCM4318,
25 + .pci_bus = 0,
26 + .pci_dev = 1,
27 + },
28 +};
29 +
30 static struct board_info __initdata board_96348gw = {
31 .name = "96348GW",
32 .expected_cpu_id = 0x6348,
33 @@ -760,6 +783,7 @@ static const struct board_info __initcon
34 &board_V2500V_BB,
35 &board_V2110,
36 &board_ct536_ct5621,
37 + &board_96348A_122,
38 #endif /* CONFIG_BCM63XX_CPU_6348 */
39 #ifdef CONFIG_BCM63XX_CPU_6358
40 &board_96358vw,
41 @@ -801,6 +825,7 @@ static struct of_device_id const bcm963x
42 { .compatible = "bt,voyager-2110", .data = &board_V2110, },
43 { .compatible = "bt,voyager-2500v-bb", .data = &board_V2500V_BB, },
44 { .compatible = "comtrend,ct-536plus", .data = &board_ct536_ct5621, },
45 + { .compatible = "comtrend,ct-5365", .data = &board_96348A_122, },
46 { .compatible = "comtrend,ct-5621", .data = &board_ct536_ct5621, },
47 { .compatible = "d-link,dsl-2640b-b", .data = &board_96348_D4PW, },
48 { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },