565-board_hw520.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -3225,6 +3225,56 @@ static struct board_info __initdata boar
  4. .num_spis = ARRAY_SIZE(ct6373_spi_devices),
  5. };
  6. +static struct board_info __initdata board_HW520 = {
  7. + .name = "HW6358GW_B",
  8. + .expected_cpu_id = 0x6358,
  9. +
  10. + .has_uart0 = 1,
  11. + .has_pci = 1,
  12. + .use_fallback_sprom = 1,
  13. + .has_ohci0 = 1,
  14. + .has_ehci0 = 1,
  15. +
  16. + .has_enet0 = 1,
  17. + .enet0 = {
  18. + .has_phy = 1,
  19. + .use_internal_phy = 1,
  20. + },
  21. +
  22. + .has_enet1 = 1,
  23. + .enet1 = {
  24. + .has_phy = 1,
  25. + .phy_id = 0,
  26. + .force_speed_100 = 1,
  27. + .force_duplex_full = 1,
  28. + },
  29. +
  30. + .leds = {
  31. + {
  32. + .name = "HW520:green:net",
  33. + .gpio = 32,
  34. + .active_low = 1,
  35. + },
  36. + },
  37. +
  38. + .buttons = {
  39. + {
  40. + .desc = "reset",
  41. + .gpio = 37,
  42. + .active_low = 1,
  43. + .type = EV_KEY,
  44. + .code = KEY_RESTART,
  45. + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
  46. + },
  47. + },
  48. +
  49. + .fallback_sprom = {
  50. + .type = SPROM_BCM4318,
  51. + .pci_bus = 0,
  52. + .pci_dev = 1,
  53. + },
  54. +};
  55. +
  56. static struct board_info __initdata board_HW553 = {
  57. .name = "HW553",
  58. .expected_cpu_id = 0x6358,
  59. @@ -4952,6 +5002,7 @@ static const struct board_info __initcon
  60. &board_nb4_ser_r0,
  61. &board_nb4_fxc_r1,
  62. &board_ct6373_1,
  63. + &board_HW520,
  64. &board_HW553,
  65. &board_HW556_A,
  66. &board_HW556_B,