109-MIPS-BCM63XX-register-EHCI-controller-if-board-enabl.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 709ef2034f5ba06da35f89856ad7baf2b7a41287 Mon Sep 17 00:00:00 2001
  2. From: Florian Fainelli <florian@openwrt.org>
  3. Date: Mon, 28 Jan 2013 20:06:28 +0100
  4. Subject: [PATCH 10/11] MIPS: BCM63XX: register EHCI controller if board
  5. enables it
  6. BCM63XX-based board can control the registration of the EHCI controller
  7. by setting their has_ehci0 flag to 1. Handle this in the generic
  8. code dealing with board registration and call the actual helper to register
  9. the EHCI controller.
  10. Signed-off-by: Florian Fainelli <florian@openwrt.org>
  11. ---
  12. arch/mips/bcm63xx/boards/board_bcm963xx.c | 4 ++++
  13. 1 file changed, 4 insertions(+)
  14. --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
  15. +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
  16. @@ -26,6 +26,7 @@
  17. #include <bcm63xx_dev_hsspi.h>
  18. #include <bcm63xx_dev_pcmcia.h>
  19. #include <bcm63xx_dev_spi.h>
  20. +#include <bcm63xx_dev_usb_ehci.h>
  21. #include <bcm63xx_dev_usb_ohci.h>
  22. #include <bcm63xx_dev_usb_usbd.h>
  23. #include <board_bcm963xx.h>
  24. @@ -899,6 +900,9 @@ int __init board_register_devices(void)
  25. if (board.has_usbd)
  26. bcm63xx_usbd_register(&board.usbd);
  27. + if (board.has_ehci0)
  28. + bcm63xx_ehci_register();
  29. +
  30. if (board.has_ohci0)
  31. bcm63xx_ohci_register();