ath79: ar7242: Update dts for current ag71xx driver
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.9 / 505-board_spw500v.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -340,6 +340,44 @@ 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 +       .has_dsp                        = 1,
30 +       .dsp = {
31 +               .gpio_rst               = 6,
32 +               .gpio_int               = 34,
33 +               .ext_irq                = 2,
34 +               .cs                     = 2,
35 +       },
36 +
37 +       .fallback_sprom = {
38 +               .type                   = SPROM_BCM4318,
39 +               .pci_bus                = 0,
40 +               .pci_dev                = 1,
41 +               .board_fixups           = spw500v_fixups,
42 +               .num_board_fixups       = ARRAY_SIZE(spw500v_fixups),
43 +       },
44 +};
45  #endif /* CONFIG_BCM63XX_CPU_6348 */
46  
47  /*
48 @@ -567,6 +605,7 @@ static const struct board_info __initcon
49         &board_96348gw_a,
50         &board_rta1025w_16,
51         &board_96348_D4PW,
52 +       &board_spw500v,
53  #endif
54  
55  #ifdef CONFIG_BCM63XX_CPU_6358
56 @@ -608,6 +647,7 @@ static struct of_device_id const bcm963x
57         { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
58         { .compatible = "netgear,dg834gtpn", .data = &board_96348gw_10, },
59         { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
60 +       { .compatible = "t-com,spw500v", .data = &board_spw500v, },
61         { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
62         { .compatible = "usr,9108", .data = &board_96348gw_a, },
63  #endif