brcm63xx: move MAGIC to dts
[15.05/openwrt.git] / target / linux / brcm63xx / patches-3.18 / 530-board_A4001N1.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -178,6 +178,50 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_A4001N1 = {
8 +       .name                                   = "963281T_TEF",
9 +       .expected_cpu_id                        = 0x6328,
10 +
11 +       .has_uart0                              = 1,
12 +       .has_pci                                = 1,
13 +       .use_fallback_sprom             = 1,
14 +       .has_ohci0                              = 1,
15 +       .has_ehci0                              = 1,
16 +       .num_usbh_ports                         = 1,
17 +       .has_enetsw                             = 1,
18 +
19 +       .enetsw = {
20 +               .used_ports = {
21 +                       [0] = {
22 +                               .used           = 1,
23 +                               .phy_id         = 1,
24 +                               .name           = "Port 1",
25 +                       },
26 +                       [1] = {
27 +                               .used           = 1,
28 +                               .phy_id         = 2,
29 +                               .name           = "Port 2",
30 +                       },
31 +                       [2] = {
32 +                               .used           = 1,
33 +                               .phy_id         = 3,
34 +                               .name           = "Port 3",
35 +                       },
36 +                       [3] = {
37 +                               .used           = 1,
38 +                               .phy_id         = 4,
39 +                               .name           = "Port 4",
40 +                       },
41 +               },
42 +       },
43 +
44 +       .fallback_sprom = {
45 +               .type                           = SPROM_BCM43225,
46 +               .pci_bus                        = 1,
47 +               .pci_dev                        = 0,
48 +       },
49 +};
50 +
51  static struct board_info __initdata board_dsl_274xb_f1 = {
52         .name                           = "AW4339U",
53         .expected_cpu_id                = 0x6328,
54 @@ -1480,6 +1524,7 @@ static const struct board_info __initcon
55  #ifdef CONFIG_BCM63XX_CPU_6328
56         &board_96328avng,
57         &board_963281TAN,
58 +       &board_A4001N1,
59         &board_dsl_274xb_f1,
60  #endif
61  #ifdef CONFIG_BCM63XX_CPU_6338
62 @@ -1545,6 +1590,7 @@ static struct of_device_id const bcm963x
63         { .compatible = "netgear,cvg834g", .data = &board_cvg834g, },
64  #endif
65  #ifdef CONFIG_BCM63XX_CPU_6328
66 +       { .compatible = "adb,a4001n1", .data = &board_A4001N1, },
67         { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
68         { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
69         { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },