564-board_P870HW-51a_v2.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -4592,6 +4592,96 @@ 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. + .leds = {
  43. + {
  44. + .name = "P870HW-51a:green:power",
  45. + .gpio = 0,
  46. + .default_trigger = "default-on",
  47. + },
  48. + {
  49. + .name = "P870HW-51a:green:dsl",
  50. + .gpio = 2,
  51. + .active_low = 1,
  52. + },
  53. + {
  54. + .name = "P870HW-51a:green:inet",
  55. + .gpio = 22,
  56. + .active_low = 1,
  57. + },
  58. + {
  59. + .name = "P870HW-51a:orange:wps",
  60. + .gpio = 24,
  61. + .active_low = 1,
  62. + },
  63. + {
  64. + .name = "P870HW-51a:red:inet",
  65. + .gpio = 33,
  66. + .active_low = 1,
  67. + },
  68. + },
  69. +
  70. + .buttons = {
  71. + {
  72. + .desc = "reset",
  73. + .gpio = 34,
  74. + .type = EV_KEY,
  75. + .code = KEY_RESTART,
  76. + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
  77. + .active_low = 1,
  78. + },
  79. + {
  80. + .desc = "wps",
  81. + .gpio = 35,
  82. + .type = EV_KEY,
  83. + .code = KEY_WPS_BUTTON,
  84. + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
  85. + .active_low = 1,
  86. + },
  87. + },
  88. +
  89. + .fallback_sprom = {
  90. + .type = SPROM_BCM4318,
  91. + .pci_bus = 0,
  92. + .pci_dev = 1,
  93. + },
  94. +};
  95. +
  96. static struct board_info __initdata board_VR3025u = {
  97. .name = "96368M-1541N",
  98. .expected_cpu_id = 0x6368,
  99. @@ -5296,6 +5386,7 @@ static const struct board_info __initcon
  100. #ifdef CONFIG_BCM63XX_CPU_6368
  101. &board_96368mvwg,
  102. &board_96368mvngr,
  103. + &board_P870HW51A_V2,
  104. &board_VR3025u,
  105. &board_VR3025un,
  106. &board_WAP5813n,