535-board_rta770w.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  2. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  3. @@ -892,6 +892,60 @@ static struct board_info __initdata boar
  4. },
  5. },
  6. };
  7. +
  8. +// Actually this board is the very same as the rta770bw,
  9. +// where the additional 'b' within the name just
  10. +// just indicates 'Annex B'. The ADSL Modem itself is able
  11. +// to handle both Annex A as well as Annex B -
  12. +// the loaded firmware makes the only difference
  13. +static struct board_info __initdata board_rta770w = {
  14. + .name = "RTA770W",
  15. + .expected_cpu_id = 0x6345,
  16. +
  17. + .has_uart0 = 1,
  18. +
  19. + .has_enet0 = 1,
  20. +
  21. + .enet0 = {
  22. + .has_phy = 1,
  23. + .phy_id = 0,
  24. + .force_speed_100 = 1,
  25. + .force_duplex_full = 1,
  26. + },
  27. +
  28. + .leds = {
  29. + {
  30. + .name = "RTA770W:green:usb",
  31. + .gpio = 7,
  32. + .active_low = 1,
  33. + },
  34. + {
  35. + .name = "RTA770W:green:adsl",
  36. + .gpio = 8,
  37. + },
  38. + {
  39. + .name = "RTA770W:green:diag",
  40. + .gpio = 10,
  41. + .active_low = 1,
  42. + },
  43. + {
  44. + .name = "RTA770W:green:wlan",
  45. + .gpio = 11,
  46. + .active_low = 1,
  47. + },
  48. + },
  49. +
  50. + .buttons = {
  51. + {
  52. + .desc = "reset",
  53. + .gpio = 13,
  54. + .type = EV_KEY,
  55. + .code = KEY_RESTART,
  56. + .active_low = 1,
  57. + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
  58. + },
  59. + },
  60. +};
  61. #endif /* CONFIG_BCM63XX_CPU_6345 */
  62. /*
  63. @@ -3895,6 +3949,7 @@ static const struct board_info __initcon
  64. #ifdef CONFIG_BCM63XX_CPU_6345
  65. &board_96345gw2,
  66. &board_rta770bw,
  67. + &board_rta770w,
  68. #endif
  69. #ifdef CONFIG_BCM63XX_CPU_6348
  70. &board_96348r,