brcm63xx: move MAGIC to dts
[15.05/openwrt.git] / target / linux / brcm63xx / patches-3.14 / 519_board_CPVA502plus.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -425,6 +425,27 @@ static struct board_info __initdata boar
4         },
5  };
6  
7 +static struct board_info __initdata board_CPVA502plus = {
8 +       .name                           = "CPVA502+",
9 +       .expected_cpu_id                = 0x6348,
10 +
11 +       .has_uart0                      = 1,
12 +       .has_enet0                      = 1,
13 +       .has_enet1                      = 1,
14 +       .has_pci                        = 1,
15 +
16 +       .enet0 = {
17 +               .has_phy                = 1,
18 +               .use_internal_phy       = 1,
19 +       },
20 +       .enet1 = {
21 +               .has_phy                = 1,
22 +               .phy_id                 = 0,
23 +       },
24 +
25 +       .ephy_reset_gpio                = 4,
26 +       .ephy_reset_gpio_flags          = GPIO_ACTIVE_LOW,
27 +};
28  
29  static struct board_info __initdata board_ct536_ct5621 = {
30         .name                           = "CT536_CT5621",
31 @@ -1127,6 +1148,7 @@ static const struct board_info __initcon
32         &board_V2110,
33         &board_ct536_ct5621,
34         &board_96348A_122,
35 +       &board_CPVA502plus,
36  #endif
37  
38  #ifdef CONFIG_BCM63XX_CPU_6358
39 @@ -1178,6 +1200,7 @@ static struct of_device_id const bcm963x
40         { .compatible = "t-com,spw500v", .data = &board_spw500v, },
41         { .compatible = "tecom,gw6000", .data = &board_gw6000, },
42         { .compatible = "tecom,gw6200", .data = &board_gw6200, },
43 +       { .compatible = "telsey,cpva502+", .data = &board_CPVA502plus, },
44         { .compatible = "telsey,magic", .data = &board_96348sv, },
45         { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
46         { .compatible = "usr,9108", .data = &board_96348gw_a, },