570-board_HG655b.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1929,6 +1929,53 @@ static struct board_info __initdata boar
  4. .num_spis = ARRAY_SIZE(DGND3700v1_3800B_spi_devices),
  5. };
  6. +static struct board_info __initdata board_HG655b = {
  7. + .name = "HW65x",
  8. + .expected_cpu_id = 0x6368,
  9. +
  10. + .has_uart0 = 1,
  11. + .has_pci = 1,
  12. + .has_ohci0 = 1,
  13. + .has_ehci0 = 1,
  14. + .num_usbh_ports = 2,
  15. +
  16. + .has_caldata = 1,
  17. + .caldata = {
  18. + {
  19. + .vendor = PCI_VENDOR_ID_RALINK,
  20. + .caldata_offset = 0x7c0000,
  21. + .slot = 1,
  22. + .eeprom = "rt2x00.eeprom",
  23. + },
  24. + },
  25. +
  26. + .has_enetsw = 1,
  27. + .enetsw = {
  28. + .used_ports = {
  29. + [0] = {
  30. + .used = 1,
  31. + .phy_id = 1,
  32. + .name = "port1",
  33. + },
  34. + [1] = {
  35. + .used = 1,
  36. + .phy_id = 2,
  37. + .name = "port2",
  38. + },
  39. + [2] = {
  40. + .used = 1,
  41. + .phy_id = 3,
  42. + .name = "port3",
  43. + },
  44. + [3] = {
  45. + .used = 1,
  46. + .phy_id = 4,
  47. + .name = "port4",
  48. + },
  49. + },
  50. + },
  51. +};
  52. +
  53. static struct sprom_fixup __initdata vr3025u_fixups[] = {
  54. { .offset = 97, .value = 0xfeb3 },
  55. { .offset = 98, .value = 0x1618 },
  56. @@ -2379,6 +2426,7 @@ static const struct board_info __initcon
  57. &board_96368mvwg,
  58. &board_96368mvngr,
  59. &board_DGND3700v1_3800B,
  60. + &board_HG655b,
  61. &board_P870HW51A_V2,
  62. &board_VR3025u,
  63. &board_VR3025un,
  64. @@ -2482,6 +2530,7 @@ static struct of_device_id const bcm963x
  65. { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
  66. { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
  67. { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
  68. + { .compatible = "huawei,hg655b", .data = &board_HG655b, },
  69. { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
  70. { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
  71. #endif