2
0

565-board_hw520.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1312,6 +1312,36 @@ static struct board_info __initdata boar
  4. },
  5. };
  6. +static struct board_info __initdata board_HW520 = {
  7. + .name = "HW6358GW_B",
  8. + .expected_cpu_id = 0x6358,
  9. +
  10. + .has_pci = 1,
  11. + .use_fallback_sprom = 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. + .fallback_sprom = {
  30. + .type = SPROM_BCM4318,
  31. + .pci_bus = 0,
  32. + .pci_dev = 1,
  33. + },
  34. +};
  35. +
  36. static struct board_info __initdata board_HW553 = {
  37. .name = "HW553",
  38. .expected_cpu_id = 0x6358,
  39. @@ -2021,6 +2051,7 @@ static const struct board_info __initcon
  40. &board_nb4_ser_r0,
  41. &board_nb4_fxc_r1,
  42. &board_ct6373_1,
  43. + &board_HW520,
  44. &board_HW553,
  45. &board_HW556_A,
  46. &board_HW556_B,
  47. @@ -2113,6 +2144,7 @@ static struct of_device_id const bcm963x
  48. { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
  49. { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
  50. { .compatible = "d-link,dva-g3810bn/tl", .data = &board_DVAG3810BN, },
  51. + { .compatible = "huawei,hg520v", .data = &board_HW520, },
  52. { .compatible = "huawei,hg553", .data = &board_HW553, },
  53. { .compatible = "huawei,hg556a-a", .data = &board_HW556_A, },
  54. { .compatible = "huawei,hg556a-b", .data = &board_HW556_B, },