534-board_hw556.patch 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -12,6 +12,7 @@
  4. #include <linux/init.h>
  5. #include <linux/kernel.h>
  6. #include <linux/string.h>
  7. +#include <linux/pci_ids.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/rtl8367.h>
  10. #include <asm/addrspace.h>
  11. @@ -1479,6 +1480,95 @@ static struct board_info __initdata boar
  12. },
  13. };
  14. +static struct board_info __initdata board_HW556_C = {
  15. + .name = "HW556_C",
  16. + .expected_cpu_id = 0x6358,
  17. +
  18. + .has_uart0 = 1,
  19. + .has_pci = 1,
  20. + .has_ohci0 = 1,
  21. + .has_ehci0 = 1,
  22. + .num_usbh_ports = 2,
  23. +
  24. + .has_caldata = 1,
  25. + .caldata = {
  26. + {
  27. + .vendor = PCI_VENDOR_ID_RALINK,
  28. + .caldata_offset = 0xeffe00,
  29. + .slot = 1,
  30. + .eeprom = "rt2x00.eeprom",
  31. + },
  32. + },
  33. +
  34. + .has_enet1 = 1,
  35. + .enet1 = {
  36. + .has_phy = 1,
  37. + .phy_id = 0,
  38. + .force_speed_100 = 1,
  39. + .force_duplex_full = 1,
  40. + },
  41. +};
  42. +static struct board_info __initdata board_HW556_A = {
  43. + .name = "HW556_A",
  44. + .expected_cpu_id = 0x6358,
  45. +
  46. + .has_uart0 = 1,
  47. + .has_pci = 1,
  48. + .has_ohci0 = 1,
  49. + .has_ehci0 = 1,
  50. + .num_usbh_ports = 2,
  51. +
  52. + .has_caldata = 1,
  53. + .caldata = {
  54. + {
  55. + .vendor = PCI_VENDOR_ID_ATHEROS,
  56. + .caldata_offset = 0xf7e000,
  57. + .slot = 1,
  58. + .endian_check = 1,
  59. + .led_pin = 2,
  60. + .led_active_high = 1,
  61. + },
  62. + },
  63. +
  64. + .has_enet1 = 1,
  65. + .enet1 = {
  66. + .has_phy = 1,
  67. + .phy_id = 0,
  68. + .force_speed_100 = 1,
  69. + .force_duplex_full = 1,
  70. + },
  71. +};
  72. +static struct board_info __initdata board_HW556_B = {
  73. + .name = "HW556_B",
  74. + .expected_cpu_id = 0x6358,
  75. +
  76. + .has_uart0 = 1,
  77. + .has_pci = 1,
  78. + .has_ohci0 = 1,
  79. + .has_ehci0 = 1,
  80. + .num_usbh_ports = 2,
  81. +
  82. + .has_caldata = 1,
  83. + .caldata = {
  84. + {
  85. + .vendor = PCI_VENDOR_ID_ATHEROS,
  86. + .caldata_offset = 0xefe000,
  87. + .slot = 1,
  88. + .endian_check = 1,
  89. + .led_pin = 2,
  90. + .led_active_high = 1,
  91. + },
  92. + },
  93. +
  94. + .has_enet1 = 1,
  95. + .enet1 = {
  96. + .has_phy = 1,
  97. + .phy_id = 0,
  98. + .force_speed_100 = 1,
  99. + .force_duplex_full = 1,
  100. + },
  101. +};
  102. +
  103. /* T-Home Speedport W 303V Typ B */
  104. static struct board_info __initdata board_spw303v = {
  105. .name = "96358-502V",
  106. @@ -1740,6 +1830,9 @@ static const struct board_info __initcon
  107. &board_nb4_fxc_r1,
  108. &board_ct6373_1,
  109. &board_HW553,
  110. + &board_HW556_A,
  111. + &board_HW556_B,
  112. + &board_HW556_C,
  113. &board_spw303v,
  114. &board_DVAG3810BN,
  115. #endif
  116. @@ -1812,6 +1905,9 @@ static struct of_device_id const bcm963x
  117. { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
  118. { .compatible = "d-link,dva-g3810bn/tl", .data = &board_DVAG3810BN, },
  119. { .compatible = "huawei,hg553", .data = &board_HW553, },
  120. + { .compatible = "huawei,hg556a-a", .data = &board_HW556_A, },
  121. + { .compatible = "huawei,hg556a-b", .data = &board_HW556_B, },
  122. + { .compatible = "huawei,hg556a-c", .data = &board_HW556_C, },
  123. { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
  124. { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
  125. { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },