brcm63xx: Neufbox 6: fix switch by probing through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.4 / 565-board_hw520.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1357,6 +1357,37 @@ static struct board_info __initdata boar
4 },
5 };
6
7 +static struct board_info __initdata board_HW520 = {
8 + .name = "HW6358GW_B",
9 + .expected_cpu_id = 0x6358,
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_enet0 = 1,
18 + .enet0 = {
19 + .has_phy = 1,
20 + .use_internal_phy = 1,
21 + },
22 +
23 + .has_enet1 = 1,
24 + .enet1 = {
25 + .has_phy = 1,
26 + .phy_id = 0,
27 + .force_speed_100 = 1,
28 + .force_duplex_full = 1,
29 + },
30 +
31 + .fallback_sprom = {
32 + .type = SPROM_BCM4318,
33 + .pci_bus = 0,
34 + .pci_dev = 1,
35 + },
36 +};
37 +
38 static struct board_info __initdata board_HW553 = {
39 .name = "HW553",
40 .expected_cpu_id = 0x6358,
41 @@ -2106,6 +2137,7 @@ static const struct board_info __initcon
42 &board_nb4_ser_r0,
43 &board_nb4_fxc_r1,
44 &board_ct6373_1,
45 + &board_HW520,
46 &board_HW553,
47 &board_HW556_A,
48 &board_HW556_B,
49 @@ -2198,6 +2230,7 @@ static struct of_device_id const bcm963x
50 { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
51 { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
52 { .compatible = "d-link,dva-g3810bn/tl", .data = &board_DVAG3810BN, },
53 + { .compatible = "huawei,hg520v", .data = &board_HW520, },
54 { .compatible = "huawei,hg553", .data = &board_HW553, },
55 { .compatible = "huawei,hg556a-a", .data = &board_HW556_A, },
56 { .compatible = "huawei,hg556a-b", .data = &board_HW556_B, },