575-board_EVG2000.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1892,6 +1892,42 @@ static struct board_info __initdata boar
  4. },
  5. };
  6. +static struct sprom_fixup __initdata EVG2000_fixups[] = {
  7. + { .offset = 219, .value = 0xec08 },
  8. +};
  9. +
  10. +static struct board_info __initdata board_EVG2000 = {
  11. + .name = "96369PVG",
  12. + .expected_cpu_id = 0x6368,
  13. +
  14. + .has_pci = 1,
  15. + .has_ohci0 = 1,
  16. + .has_ehci0 = 1,
  17. + .num_usbh_ports = 2,
  18. +
  19. + .has_enetsw = 1,
  20. + .enetsw = {
  21. + .used_ports = {
  22. + [5] = {
  23. + .used = 1,
  24. + .phy_id = 0xff,
  25. + .bypass_link = 1,
  26. + .force_speed = 1000,
  27. + .force_duplex_full = 1,
  28. + .name = "RGMII",
  29. + },
  30. + },
  31. + },
  32. + .use_fallback_sprom = 1,
  33. + .fallback_sprom = {
  34. + .type = SPROM_BCM4322,
  35. + .pci_bus = 0,
  36. + .pci_dev = 1,
  37. + .board_fixups = EVG2000_fixups,
  38. + .num_board_fixups = ARRAY_SIZE(EVG2000_fixups),
  39. + },
  40. +};
  41. +
  42. static struct board_info __initdata board_HG655b = {
  43. .name = "HW65x",
  44. .expected_cpu_id = 0x6368,
  45. @@ -2462,6 +2498,7 @@ static const struct board_info __initcon
  46. &board_96368mvwg,
  47. &board_96368mvngr,
  48. &board_DGND3700v1_3800B,
  49. + &board_EVG2000,
  50. &board_HG622,
  51. &board_HG655b,
  52. &board_P870HW51A_V2,
  53. @@ -2574,6 +2611,7 @@ static struct of_device_id const bcm963x
  54. { .compatible = "huawei,hg622", .data = &board_HG622, },
  55. { .compatible = "huawei,hg655b", .data = &board_HG655b, },
  56. { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
  57. + { .compatible = "netgear,evg2000", .data = &board_EVG2000, },
  58. { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
  59. #endif
  60. #ifdef CONFIG_BCM63XX_CPU_63268