brcm63xx: move MAGIC to dts
[15.05/openwrt.git] / target / linux / brcm63xx / patches-3.18 / 510-board_spw303v.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -976,6 +976,21 @@ static struct board_info __initdata boar
4                 .pci_dev                        = 1,
5         },
6  };
7 +
8 + /* T-Home Speedport W 303V Typ B */
9 +static struct board_info __initdata board_spw303v = {
10 +       .name                   = "96358-502V",
11 +       .expected_cpu_id        = 0x6358,
12 +
13 +       .has_uart0              = 1,
14 +       .has_enet0              = 1,
15 +       .has_pci                = 1,
16 +
17 +       .enet0 = {
18 +               .has_phy                = 1,
19 +               .use_internal_phy       = 1,
20 +       },
21 +};
22  #endif /* CONFIG_BCM63XX_CPU_6358 */
23  
24  /*
25 @@ -1023,6 +1038,7 @@ static const struct board_info __initcon
26         &board_nb4_ser_r0,
27         &board_nb4_fxc_r1,
28         &board_HW553,
29 +       &board_spw303v,
30  #endif
31  };
32  
33 @@ -1074,6 +1090,7 @@ static struct of_device_id const bcm963x
34         { .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },
35         { .compatible = "sfr,nb4-ser-r0", .data = &board_nb4_ser_r0, },
36         { .compatible = "sfr,nb4-fxc-r1", .data = &board_nb4_fxc_r1, },
37 +       { .compatible = "t-com,spw303v", .data = &board_spw303v, },
38         { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
39  #endif
40  #ifdef CONFIG_BCM63XX_CPU_6368