brcm47xx: rename target to bcm47xx
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.19 / 505-board_spw500v.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -324,6 +324,36 @@ static struct board_info __initdata boar
4 .force_duplex_full = 1,
5 },
6 };
7 +
8 +static struct sprom_fixup __initdata spw500v_fixups[] = {
9 + { .offset = 46, .value = 0x3046 },
10 + { .offset = 47, .value = 0x15a7 },
11 + { .offset = 48, .value = 0xfa89 },
12 + { .offset = 49, .value = 0xfe79 },
13 + { .offset = 57, .value = 0x6a49 },
14 +};
15 +
16 +static struct board_info __initdata board_spw500v = {
17 + .name = "SPW500V",
18 + .expected_cpu_id = 0x6348,
19 +
20 + .has_enet0 = 1,
21 + .has_pci = 1,
22 + .use_fallback_sprom = 1,
23 +
24 + .enet0 = {
25 + .has_phy = 1,
26 + .use_internal_phy = 1,
27 + },
28 +
29 + .fallback_sprom = {
30 + .type = SPROM_BCM4318,
31 + .pci_bus = 0,
32 + .pci_dev = 1,
33 + .board_fixups = spw500v_fixups,
34 + .num_board_fixups = ARRAY_SIZE(spw500v_fixups),
35 + },
36 +};
37 #endif /* CONFIG_BCM63XX_CPU_6348 */
38
39 /*
40 @@ -551,6 +581,7 @@ static const struct board_info __initcon
41 &board_96348gw_a,
42 &board_rta1025w_16,
43 &board_96348_D4PW,
44 + &board_spw500v,
45 #endif
46
47 #ifdef CONFIG_BCM63XX_CPU_6358
48 @@ -592,6 +623,7 @@ static struct of_device_id const bcm963x
49 { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
50 { .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
51 { .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
52 + { .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
53 { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
54 { .compatible = "usrobotics,usr9108", .data = &board_96348gw_a, },
55 #endif