brcm63xx: add kernel 4.14 support
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 508-board_hw553.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -666,6 +666,32 @@ static struct board_info __initdata boar
4         .has_ehci0 = 1,
5         .num_usbh_ports                 = 2,
6  };
7 +
8 +static struct board_info __initdata board_HW553 = {
9 +       .name                           = "HW553",
10 +       .expected_cpu_id                = 0x6358,
11 +
12 +       .has_enet1                      = 1,
13 +       .has_pci                        = 1,
14 +       .use_fallback_sprom             = 1,
15 +
16 +       .enet1 = {
17 +               .has_phy                = 1,
18 +               .phy_id                 = 0,
19 +               .force_speed_100        = 1,
20 +               .force_duplex_full      = 1,
21 +       },
22 +
23 +       .has_ohci0 = 1,
24 +       .has_ehci0 = 1,
25 +       .num_usbh_ports                 = 2,
26 +
27 +       .fallback_sprom = {
28 +               .type                           = SPROM_BCM4318,
29 +               .pci_bus                        = 0,
30 +               .pci_dev                        = 1,
31 +       },
32 +};
33  #endif /* CONFIG_BCM63XX_CPU_6358 */
34  
35  /*
36 @@ -711,6 +737,7 @@ static const struct board_info __initcon
37         &board_dsl_274xb_rev_c,
38         &board_nb4_ser_r0,
39         &board_nb4_fxc_r1,
40 +       &board_HW553,
41  #endif
42  };
43  
44 @@ -754,6 +781,7 @@ static struct of_device_id const bcm963x
45         { .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
46         { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
47         { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
48 +       { .compatible = "huawei,hg553", .data = &board_HW553, },
49         { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
50         { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
51         { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },