summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/bsp
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-31 10:20:04 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-27 06:33:05 +0100
commit6c83023331073cacc598f5ade315e4f6542d23aa (patch)
treef7ad55e523294b808cc57c479279b2ff2cc754ef /rtemsbsd/include/bsp
parentdwc_otg: Update host frame interval (diff)
downloadrtems-libbsd-6c83023331073cacc598f5ade315e4f6542d23aa.tar.bz2
dwc_otg: Add support for nexus bus
Update #3910.
Diffstat (limited to 'rtemsbsd/include/bsp')
-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;