508-board_hw553.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -1578,6 +1578,81 @@ static struct board_info __initdata boar
  4. .spis = nb4_spi_devices,
  5. .num_spis = ARRAY_SIZE(nb4_spi_devices),
  6. };
  7. +
  8. +static struct board_info __initdata board_HW553 = {
  9. + .name = "HW553",
  10. + .expected_cpu_id = 0x6358,
  11. +
  12. + .has_uart0 = 1,
  13. +
  14. + .has_enet0 = 1,
  15. + .has_enet1 = 1,
  16. + .has_pci = 1,
  17. +
  18. + .enet0 = {
  19. + .has_phy = 1,
  20. + .use_internal_phy = 1,
  21. + },
  22. +
  23. + .enet1 = {
  24. + .force_speed_100 = 1,
  25. + .force_duplex_full = 1,
  26. + },
  27. +
  28. + .has_ohci0 = 1,
  29. + .has_ehci0 = 1,
  30. +
  31. + .leds = {
  32. + /*Each led on HW553 is bi-color (except wifi) */
  33. + {
  34. + .name = "lan:red",
  35. + .gpio = 34,
  36. + .active_low = 1,
  37. + },
  38. + {
  39. + .name = "lan:blue",
  40. + .gpio = 35,
  41. + .active_low = 1,
  42. + },
  43. + {
  44. + .name = "adsl:red",
  45. + .gpio = 22,
  46. + .active_low = 1,
  47. + },
  48. + {
  49. + .name = "adsl:blue",
  50. + .gpio = 23,
  51. + .active_low = 1,
  52. + },
  53. + {
  54. + .name = "power:red",
  55. + .gpio = 5,
  56. + .active_low = 1,
  57. + .default_trigger = "default-on",
  58. + },
  59. +
  60. + {
  61. + .name = "power:blue",
  62. + .gpio = 4,
  63. + .active_low = 1,
  64. + },
  65. + {
  66. + .name = "wifi:red",
  67. + .gpio = 25,
  68. + .active_low = 1,
  69. + },
  70. + {
  71. + .name = "internetkey:red",
  72. + .gpio = 12,
  73. + .active_low = 1,
  74. + },
  75. + {
  76. + .name = "internetkey:blue",
  77. + .gpio = 13,
  78. + .active_low = 1,
  79. + },
  80. + },
  81. +};
  82. #endif
  83. /*
  84. @@ -1620,6 +1695,7 @@ static const struct board_info __initdat
  85. &board_nb4_ser_r2,
  86. &board_nb4_fxc_r1,
  87. &board_nb4_fxc_r2,
  88. + &board_HW553,
  89. #endif
  90. };