106-MIPS-BCM63XX-register-OHCI-controller-if-board-enabl.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 33ef960aed15f9a98a2c51d8d794cd72418e0be4 Mon Sep 17 00:00:00 2001
  2. From: Florian Fainelli <florian@openwrt.org>
  3. Date: Mon, 28 Jan 2013 20:06:25 +0100
  4. Subject: [PATCH 07/11] MIPS: BCM63XX: register OHCI controller if board
  5. enables it
  6. BCM63XX-based boards can control the registration of the OHCI controller
  7. by setting their has_ohci0 flag to 1. Handle this in the generic
  8. code dealing with board registration and call the actual helper to
  9. register the OHCI 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_ohci.h>
  21. #include <bcm63xx_dev_usb_usbd.h>
  22. #include <board_bcm963xx.h>
  23. @@ -898,6 +899,9 @@ int __init board_register_devices(void)
  24. if (board.has_usbd)
  25. bcm63xx_usbd_register(&board.usbd);
  26. + if (board.has_ohci0)
  27. + bcm63xx_ohci_register();
  28. +
  29. if (board.has_dsp)
  30. bcm63xx_dsp_register(&board.dsp);