8d366153af842c6c81f679b5b2a5522c20fb174d
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.18 / 505-board_spw500v.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -574,6 +574,45 @@ 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_uart0 = 1,
21 + .has_enet0 = 1,
22 + .has_pci = 1,
23 + .use_fallback_sprom = 1,
24 +
25 + .enet0 = {
26 + .has_phy = 1,
27 + .use_internal_phy = 1,
28 + },
29 +
30 + .has_dsp = 1,
31 + .dsp = {
32 + .gpio_rst = 6,
33 + .gpio_int = 34,
34 + .ext_irq = 2,
35 + .cs = 2,
36 + },
37 +
38 + .fallback_sprom = {
39 + .type = SPROM_BCM4318,
40 + .pci_bus = 0,
41 + .pci_dev = 1,
42 + .board_fixups = spw500v_fixups,
43 + .num_board_fixups = ARRAY_SIZE(spw500v_fixups),
44 + },
45 +};
46 #endif /* CONFIG_BCM63XX_CPU_6348 */
47
48 /*
49 @@ -850,6 +889,7 @@ static const struct board_info __initcon
50 &board_96348gw_a,
51 &board_rta1025w_16,
52 &board_96348_D4PW,
53 + &board_spw500v,
54 #endif
55
56 #ifdef CONFIG_BCM63XX_CPU_6358
57 @@ -890,6 +930,7 @@ static struct of_device_id const bcm963x
58 { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
59 { .compatible = "netgear,dg834gtpn", .data = &board_96348gw_10, },
60 { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
61 + { .compatible = "t-com,spw500v", .data = &board_spw500v, },
62 { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
63 { .compatible = "usr,9108", .data = &board_96348gw_a, },
64 #endif