summaryrefslogtreecommitdiff
path: root/rtemsbsd/include/bsp/nexus-devices.h
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsbsd/include/bsp/nexus-devices.h')
-rw-r--r--rtemsbsd/include/bsp/nexus-devices.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index 9e4037ef..095dfea6 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -161,9 +161,27 @@ RTEMS_BSD_DRIVER_USB_MASS;
#elif defined(LIBBSP_ARM_STM32H7_BSP_H)
+#include <stm32h7xx.h>
+
RTEMS_BSD_DEFINE_NEXUS_DEVICE(stmac, 0, 0, NULL);
SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
+static const rtems_bsd_device_resource dwcotg_res[] = {
+ {
+ .type = RTEMS_BSD_RES_MEMORY,
+ .start_request = 0,
+ .start_actual = USB2_OTG_FS_PERIPH_BASE
+ }, {
+ .type = RTEMS_BSD_RES_IRQ,
+ .start_request = 0,
+ .start_actual = OTG_FS_IRQn
+ }
+};
+RTEMS_BSD_DEFINE_NEXUS_DEVICE(dwcotg, 0, RTEMS_ARRAY_SIZE(dwcotg_res),
+ dwcotg_res);
+RTEMS_BSD_DRIVER_USB;
+RTEMS_BSD_DRIVER_USB_MASS;
+
#elif defined(LIBBSP_I386_PC386_BSP_H)
RTEMS_BSD_DRIVER_PC_LEGACY;