[PATCH rtems-libbsd v2 3/5] nexus-devices: Include CDC Ethernet for Beagle

Husni Faiz ahamedhusni73 at gmail.com
Wed Jul 28 11:56:33 UTC 2021


Configure bus for CDC Ethernet
Include CDC Ethernet in Beagle BSP

Signed-off-by: Husni Faiz <ahamedhusni73 at gmail.com>
---
 rtemsbsd/include/bsp/nexus-devices.h          |  5 +++++
 .../include/machine/rtems-bsd-nexus-bus.h     | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index e6487470..6a35632e 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -83,6 +83,11 @@ SYSINIT_REFERENCE(rtwn_rtl8188eufw);
 RTEMS_BSD_DRIVER_USB;
 RTEMS_BSD_DRIVER_USB_MASS;
 
+#ifdef RTEMS_BSD_MODULE_DEV_USB_TEMPLATE
+RTEMS_BSD_DRIVER_USB_TEMPLATE;
+RTEMS_BSD_DRIVER_CDCE;
+#endif
+
 #elif defined(LIBBSP_ARM_LPC32XX_BSP_H)
 
 #include <bsp/irq.h>
diff --git a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
index 50a43873..0fc3ef37 100644
--- a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
+++ b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
@@ -50,6 +50,8 @@
  *   RTEMS_BSD_DRIVER_MMC
  *   RTEMS_BSD_DRIVER_USB
  *   RTEMS_BSD_DRIVER_USB_MASS
+ *   RTEMS_BSD_DRIVER_USB_TEMPLATE
+ *   RTEMS_BSD_DRIVER_CDCE
  *
  *  Networking:
  *   RTEMS_BSD_DRIVER_SMC0
@@ -282,6 +284,15 @@ extern "C" {
     SYSINIT_DRIVER_REFERENCE(umass, uhub)
 #endif /* RTEMS_BSD_DRIVER_USB_MASS */
 
+/*
+ * USB Template base driver.
+ */
+#if !defined(RTEMS_BSD_DRIVER_USB_TEMPLATE)
+  #define RTEMS_BSD_DRIVER_USB_TEMPLATE           \
+    SYSINIT_REFERENCE(usb_temp_init);             \
+    SYSINIT_DRIVER_REFERENCE(usb_template, usb)
+#endif /* RTEMS_BSD_DRIVER_USB_TEMPLATE */
+
 /*
  * USB SAF1761 host controller driver.
  */
@@ -490,6 +501,14 @@ extern "C" {
     SYSINIT_DRIVER_REFERENCE(re, pci);
 #endif /* RTEMS_BSD_DRIVER_PCI_RE */
 
+/*
+ * CDC Ethernet Driver.
+ */
+#if !defined(RTEMS_BSD_DRIVER_CDCE)
+  #define RTEMS_BSD_DRIVER_CDCE                   \
+    SYSINIT_DRIVER_REFERENCE(cdce, uhub);
+#endif /* RTEMS_BSD_DRIVER_CDCE */
+
 /**
  ** MMI Physical Layer Support.
  **/
-- 
2.25.1



More information about the devel mailing list