575-board_EVG2000.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -2014,6 +2014,43 @@ static struct board_info __initdata boar
  4. .num_spis = ARRAY_SIZE(DGND3700v1_3800B_spi_devices),
  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_uart0 = 1,
  15. + .has_pci = 1,
  16. + .has_ohci0 = 1,
  17. + .has_ehci0 = 1,
  18. + .num_usbh_ports = 2,
  19. +
  20. + .has_enetsw = 1,
  21. + .enetsw = {
  22. + .used_ports = {
  23. + [5] = {
  24. + .used = 1,
  25. + .phy_id = 0xff,
  26. + .bypass_link = 1,
  27. + .force_speed = 1000,
  28. + .force_duplex_full = 1,
  29. + .name = "RGMII",
  30. + },
  31. + },
  32. + },
  33. + .use_fallback_sprom = 1,
  34. + .fallback_sprom = {
  35. + .type = SPROM_BCM4322,
  36. + .pci_bus = 0,
  37. + .pci_dev = 1,
  38. + .board_fixups = EVG2000_fixups,
  39. + .num_board_fixups = ARRAY_SIZE(EVG2000_fixups),
  40. + },
  41. +};
  42. +
  43. static struct board_info __initdata board_HG655b = {
  44. .name = "HW65x",
  45. .expected_cpu_id = 0x6368,
  46. @@ -2614,6 +2651,7 @@ static const struct board_info __initcon
  47. &board_96368mvwg,
  48. &board_96368mvngr,
  49. &board_DGND3700v1_3800B,
  50. + &board_EVG2000,
  51. &board_HG622,
  52. &board_HG655b,
  53. &board_P870HW51A_V2,
  54. @@ -2726,6 +2764,7 @@ static struct of_device_id const bcm963x
  55. { .compatible = "huawei,hg622", .data = &board_HG622, },
  56. { .compatible = "huawei,hg655b", .data = &board_HG655b, },
  57. { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
  58. + { .compatible = "netgear,evg2000", .data = &board_EVG2000, },
  59. { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
  60. #endif
  61. #ifdef CONFIG_BCM63XX_CPU_63268