574-board_HG622.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1938,6 +1938,52 @@ static struct board_info __initdata boar
  4. },
  5. };
  6. +static struct board_info __initdata board_HG622 = {
  7. + .name = "96368MVWG_hg622",
  8. + .expected_cpu_id = 0x6368,
  9. +
  10. + .has_pci = 1,
  11. + .has_ohci0 = 1,
  12. + .has_ehci0 = 1,
  13. + .num_usbh_ports = 2,
  14. +
  15. + .has_caldata = 1,
  16. + .caldata = {
  17. + {
  18. + .vendor = PCI_VENDOR_ID_RALINK,
  19. + .caldata_offset = 0xfa0000,
  20. + .slot = 1,
  21. + .eeprom = "rt2x00.eeprom",
  22. + },
  23. + },
  24. +
  25. + .has_enetsw = 1,
  26. + .enetsw = {
  27. + .used_ports = {
  28. + [0] = {
  29. + .used = 1,
  30. + .phy_id = 1,
  31. + .name = "port1",
  32. + },
  33. + [1] = {
  34. + .used = 1,
  35. + .phy_id = 2,
  36. + .name = "port2",
  37. + },
  38. + [2] = {
  39. + .used = 1,
  40. + .phy_id = 3,
  41. + .name = "port3",
  42. + },
  43. + [3] = {
  44. + .used = 1,
  45. + .phy_id = 4,
  46. + .name = "port4",
  47. + },
  48. + },
  49. + },
  50. +};
  51. +
  52. static struct sprom_fixup __initdata vr3025u_fixups[] = {
  53. { .offset = 97, .value = 0xfeb3 },
  54. { .offset = 98, .value = 0x1618 },
  55. @@ -2416,6 +2462,7 @@ static const struct board_info __initcon
  56. &board_96368mvwg,
  57. &board_96368mvngr,
  58. &board_DGND3700v1_3800B,
  59. + &board_HG622,
  60. &board_HG655b,
  61. &board_P870HW51A_V2,
  62. &board_VR3025u,
  63. @@ -2524,6 +2571,7 @@ static struct of_device_id const bcm963x
  64. { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
  65. { .compatible = "comtrend,vr-3026e", .data = &board_VR3026e, },
  66. { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
  67. + { .compatible = "huawei,hg622", .data = &board_HG622, },
  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, },