564-board_P870HW-51a_v2.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1686,6 +1686,49 @@ static struct sprom_fixup __initdata vr3
  4. { .offset = 115, .value = 0xfad9 },
  5. };
  6. +static struct board_info __initdata board_P870HW51A_V2 = {
  7. + .name = "P870HW-51a_v2",
  8. + .expected_cpu_id = 0x6368,
  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_enetsw = 1,
  17. + .enetsw = {
  18. + .used_ports = {
  19. + [0] = {
  20. + .used = 1,
  21. + .phy_id = 1,
  22. + .name = "port1",
  23. + },
  24. + [1] = {
  25. + .used = 1,
  26. + .phy_id = 2,
  27. + .name = "port2",
  28. + },
  29. + [2] = {
  30. + .used = 1,
  31. + .phy_id = 3,
  32. + .name = "port3",
  33. + },
  34. + [3] = {
  35. + .used = 1,
  36. + .phy_id = 4,
  37. + .name = "port4",
  38. + },
  39. + },
  40. + },
  41. +
  42. + .fallback_sprom = {
  43. + .type = SPROM_BCM4318,
  44. + .pci_bus = 0,
  45. + .pci_dev = 1,
  46. + },
  47. +};
  48. +
  49. static struct board_info __initdata board_VR3025u = {
  50. .name = "96368M-1541N",
  51. .expected_cpu_id = 0x6368,
  52. @@ -2079,6 +2122,7 @@ static const struct board_info __initcon
  53. #ifdef CONFIG_BCM63XX_CPU_6368
  54. &board_96368mvwg,
  55. &board_96368mvngr,
  56. + &board_P870HW51A_V2,
  57. &board_VR3025u,
  58. &board_VR3025un,
  59. &board_WAP5813n,
  60. @@ -2177,6 +2221,7 @@ static struct of_device_id const bcm963x
  61. { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
  62. { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
  63. { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
  64. + { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
  65. #endif
  66. #ifdef CONFIG_BCM63XX_CPU_63268
  67. { .compatible = "brcm,bcm963268bu_p300", .data = &board_963268bu_p300, },