brcm63xx: add kernel 4.9 support
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.9 / 519_board_CPVA502plus.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -233,6 +233,33 @@ 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_enet0 = 1,
12 + .has_enet1 = 1,
13 + .has_pci = 1,
14 + .use_fallback_sprom = 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 + .fallback_sprom = {
29 + .type = SPROM_BCM4318,
30 + .pci_bus = 0,
31 + .pci_dev = 1,
32 + },
33 +};
34
35 static struct board_info __initdata board_ct536_ct5621 = {
36 .name = "CT536_CT5621",
37 @@ -849,6 +876,7 @@ static const struct board_info __initcon
38 &board_V2110,
39 &board_ct536_ct5621,
40 &board_96348A_122,
41 + &board_CPVA502plus,
42 #endif
43
44 #ifdef CONFIG_BCM63XX_CPU_6358
45 @@ -901,6 +929,7 @@ static struct of_device_id const bcm963x
46 { .compatible = "t-com,spw500v", .data = &board_spw500v, },
47 { .compatible = "tecom,gw6000", .data = &board_gw6000, },
48 { .compatible = "tecom,gw6200", .data = &board_gw6200, },
49 + { .compatible = "telsey,cpva502+", .data = &board_CPVA502plus, },
50 { .compatible = "telsey,magic", .data = &board_96348sv, },
51 { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
52 { .compatible = "usr,9108", .data = &board_96348gw_a, },