534-board_hw556.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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/string.h>
  5. #include <linux/gpio_keys.h>
  6. #include <linux/input.h>
  7. +#include <linux/pci_ids.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/rtl8367.h>
  10. #include <asm/addrspace.h>
  11. @@ -1482,6 +1483,93 @@ 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. + },
  61. + },
  62. +
  63. + .has_enet1 = 1,
  64. + .enet1 = {
  65. + .has_phy = 1,
  66. + .phy_id = 0,
  67. + .force_speed_100 = 1,
  68. + .force_duplex_full = 1,
  69. + },
  70. +};
  71. +static struct board_info __initdata board_HW556_B = {
  72. + .name = "HW556_B",
  73. + .expected_cpu_id = 0x6358,
  74. +
  75. + .has_uart0 = 1,
  76. + .has_pci = 1,
  77. + .has_ohci0 = 1,
  78. + .has_ehci0 = 1,
  79. + .num_usbh_ports = 2,
  80. +
  81. + .has_caldata = 1,
  82. + .caldata = {
  83. + {
  84. + .vendor = PCI_VENDOR_ID_ATHEROS,
  85. + .caldata_offset = 0xefe000,
  86. + .slot = 1,
  87. + .endian_check = 1,
  88. + .led_pin = 2,
  89. + },
  90. + },
  91. +
  92. + .has_enet1 = 1,
  93. + .enet1 = {
  94. + .has_phy = 1,
  95. + .phy_id = 0,
  96. + .force_speed_100 = 1,
  97. + .force_duplex_full = 1,
  98. + },
  99. +};
  100. +
  101. /* T-Home Speedport W 303V Typ B */
  102. static struct board_info __initdata board_spw303v = {
  103. .name = "96358-502V",
  104. @@ -1743,6 +1831,9 @@ static const struct board_info __initcon
  105. &board_nb4_fxc_r1,
  106. &board_ct6373_1,
  107. &board_HW553,
  108. + &board_HW556_A,
  109. + &board_HW556_B,
  110. + &board_HW556_C,
  111. &board_spw303v,
  112. &board_DVAG3810BN,
  113. #endif
  114. @@ -1815,6 +1906,9 @@ static struct of_device_id const bcm963x
  115. { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
  116. { .compatible = "d-link,dva-g3810bn/tl", .data = &board_DVAG3810BN, },
  117. { .compatible = "huawei,hg553", .data = &board_HW553, },
  118. + { .compatible = "huawei,hg556a-a", .data = &board_HW556_A, },
  119. + { .compatible = "huawei,hg556a-b", .data = &board_HW556_B, },
  120. + { .compatible = "huawei,hg556a-c", .data = &board_HW556_C, },
  121. { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
  122. { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
  123. { .compatible = "pirelli,a226m-fwb", .data = &board_DWVS0, },