65f4c4ddb8b5cf569a2aca57aaf9c018ae210475
[openwrt/staging/rmilecki.git] / target / linux / bcm63xx / patches-5.4 / 546-board_hw520.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1234,6 +1234,36 @@ 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_pci = 1,
12 + .has_ohci0 = 1,
13 + .has_ehci0 = 1,
14 +
15 + .has_enet0 = 1,
16 + .enet0 = {
17 + .has_phy = 1,
18 + .use_internal_phy = 1,
19 + },
20 +
21 + .has_enet1 = 1,
22 + .enet1 = {
23 + .has_phy = 1,
24 + .phy_id = 0,
25 + .force_speed_100 = 1,
26 + .force_duplex_full = 1,
27 + },
28 +
29 + .use_fallback_sprom = 1,
30 + .fallback_sprom = {
31 + .type = SPROM_BCM4318,
32 + .pci_bus = 0,
33 + .pci_dev = 1,
34 + },
35 +};
36 +
37 static struct board_info __initdata board_HW553 = {
38 .name = "HW553",
39 .expected_cpu_id = 0x6358,
40 @@ -1917,6 +1947,7 @@ static const struct board_info __initcon
41 &board_nb4_ser_r0,
42 &board_nb4_fxc_r1,
43 &board_ct6373_1,
44 + &board_HW520,
45 &board_HW553,
46 &board_HW556_A,
47 &board_HW556_B,
48 @@ -2007,6 +2038,7 @@ static struct of_device_id const bcm963x
49 { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
50 { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
51 { .compatible = "d-link,dva-g3810bn-tl", .data = &board_DVAG3810BN, },
52 + { .compatible = "huawei,echolife-hg520v", .data = &board_HW520, },
53 { .compatible = "huawei,echolife-hg553", .data = &board_HW553, },
54 { .compatible = "huawei,echolife-hg556a-a", .data = &board_HW556_A, },
55 { .compatible = "huawei,echolife-hg556a-b", .data = &board_HW556_B, },