bcm63xx: refactor board patches
[openwrt/staging/chunkeey.git] / target / linux / bcm63xx / patches-5.4 / 523-board_96348w3.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -556,6 +556,23 @@ static struct board_info __initdata boar
4 .has_ohci0 = 1,
5 };
6
7 +/* NetGear DG834G v4 */
8 +static struct board_info __initdata board_96348W3 = {
9 + .name = "96348W3",
10 + .expected_cpu_id = 0x6348,
11 +
12 + .has_pci = 1,
13 + .has_ohci0 = 1,
14 +
15 + .has_enet1 = 1,
16 + .enet1 = {
17 + .has_phy = 1,
18 + .phy_id = 0,
19 + .force_speed_100 = 1,
20 + .force_duplex_full = 1,
21 + },
22 +};
23 +
24 static struct board_info __initdata board_96348_D4PW = {
25 .name = "D-4P-W",
26 .expected_cpu_id = 0x6348,
27 @@ -999,6 +1016,7 @@ static const struct board_info __initcon
28 &board_ct536_ct5621,
29 &board_96348A_122,
30 &board_CPVA502plus,
31 + &board_96348W3,
32 #endif /* CONFIG_BCM63XX_CPU_6348 */
33 #ifdef CONFIG_BCM63XX_CPU_6358
34 &board_96358vw,
35 @@ -1052,6 +1070,7 @@ static struct of_device_id const bcm963x
36 { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
37 { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
38 { .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
39 + { .compatible = "netgear,dg834g-v4", .data = &board_96348W3, },
40 { .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
41 { .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
42 { .compatible = "tecom,gw6000", .data = &board_gw6000, },