brcm63xx: move MAGIC to dts
[15.05/openwrt.git] / target / linux / brcm63xx / patches-3.14 / 564-board_P870HW-51a_v2.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1873,6 +1873,49 @@ static struct sprom_fixup __initdata vr3
4         { .offset = 115, .value = 0xfad9 },
5  };
6  
7 +static struct board_info __initdata board_P870HW51A_V2 = {
8 +       .name                           = "P870HW-51a_v2",
9 +       .expected_cpu_id                = 0x6368,
10 +
11 +       .has_uart0                      = 1,
12 +       .has_pci                        = 1,
13 +       .use_fallback_sprom             = 1,
14 +       .has_ohci0                      = 1,
15 +       .has_ehci0                      = 1,
16 +
17 +       .has_enetsw                     = 1,
18 +       .enetsw = {
19 +               .used_ports = {
20 +                       [0] = {
21 +                               .used   = 1,
22 +                               .phy_id = 1,
23 +                               .name   = "port1",
24 +                       },
25 +                       [1] = {
26 +                               .used   = 1,
27 +                               .phy_id = 2,
28 +                               .name   = "port2",
29 +                       },
30 +                       [2] = {
31 +                               .used   = 1,
32 +                               .phy_id = 3,
33 +                               .name   = "port3",
34 +                       },
35 +                       [3] = {
36 +                               .used   = 1,
37 +                               .phy_id = 4,
38 +                               .name   = "port4",
39 +                       },
40 +               },
41 +       },
42 +
43 +       .fallback_sprom = {
44 +               .type                           = SPROM_BCM4318,
45 +               .pci_bus                        = 0,
46 +               .pci_dev                        = 1,
47 +       },
48 +};
49 +
50  static struct board_info __initdata board_VR3025u = {
51         .name                                   = "96368M-1541N",
52         .expected_cpu_id                = 0x6368,
53 @@ -2344,6 +2387,7 @@ static const struct board_info __initcon
54  #ifdef CONFIG_BCM63XX_CPU_6368
55         &board_96368mvwg,
56         &board_96368mvngr,
57 +       &board_P870HW51A_V2,
58         &board_VR3025u,
59         &board_VR3025un,
60         &board_WAP5813n,
61 @@ -2435,6 +2479,7 @@ static struct of_device_id const bcm963x
62         { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
63         { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
64         { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
65 +       { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
66  #endif
67  #ifdef CONFIG_BCM63XX_CPU_63268
68         { .compatible = "brcm,bcm963268bu_p300", .data = &board_963268bu_p300, },