565-board_hw520.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1360,6 +1360,37 @@ 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_uart0 = 1,
  11. + .has_pci = 1,
  12. + .use_fallback_sprom = 1,
  13. + .has_ohci0 = 1,
  14. + .has_ehci0 = 1,
  15. +
  16. + .has_enet0 = 1,
  17. + .enet0 = {
  18. + .has_phy = 1,
  19. + .use_internal_phy = 1,
  20. + },
  21. +
  22. + .has_enet1 = 1,
  23. + .enet1 = {
  24. + .has_phy = 1,
  25. + .phy_id = 0,
  26. + .force_speed_100 = 1,
  27. + .force_duplex_full = 1,
  28. + },
  29. +
  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. @@ -2142,6 +2173,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. @@ -2234,6 +2266,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,hg520v", .data = &board_HW520, },
  53. { .compatible = "huawei,hg553", .data = &board_HW553, },
  54. { .compatible = "huawei,hg556a-a", .data = &board_HW556_A, },
  55. { .compatible = "huawei,hg556a-b", .data = &board_HW556_B, },