[PATCH v2 3/6] Added USB roothub support for Raspberry Pi.

Deval Shah deval.maker at gmail.com
Fri Aug 19 17:13:24 UTC 2016


---
 rtemsbsd/include/bsp/nexus-devices.h | 9 +++++++++
 testsuite/usb01/usb-sysinit.h        | 2 ++
 2 files changed, 11 insertions(+)

diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index 45beb30..ce9d45c 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -82,6 +82,15 @@ RTEMS_BSD_DRIVER_PCI_EM;
 RTEMS_BSD_DRIVER_PCI_RE;
 RTEMS_BSD_DRIVER_REPHY;
 
+#elif defined(LIBBSP_ARM_RASPBERRYPI_BSP_H)
+
+#include <bsp/irq.h>
+
+RTEMS_BSD_DRIVER_BCM283X_DWCOTG(BCM2835_USB_BASE, 
+			BCM2835_IRQ_ID_USB);
+RTEMS_BSD_DRIVER_USB;
+RTEMS_BSD_DRIVER_USB_MASS;
+
 #elif defined(LIBBSP_POWERPC_QORIQ_BSP_H)
 
 #if !QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
diff --git a/testsuite/usb01/usb-sysinit.h b/testsuite/usb01/usb-sysinit.h
index c22bcf2..a26dc53 100644
--- a/testsuite/usb01/usb-sysinit.h
+++ b/testsuite/usb01/usb-sysinit.h
@@ -30,6 +30,8 @@
 	#define NEED_USB_OHCI
 #elif defined(__GEN83xx_BSP_h) || defined(LIBBSP_POWERPC_QORIQ_BSP_H)
 	#define NEED_USB_EHCI
+#elif defined(LIBBSP_ARM_RASPBERRYPI_BSP_H)
+	#define NEED_USB_OTG
 #endif
 
 SYSINIT_NEED_USB_CORE;
-- 
2.7.4



More information about the devel mailing list