summaryrefslogtreecommitdiffstats
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.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index 6ccf7260..561f9aa3 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -115,6 +115,25 @@ RTEMS_BSD_DEFINE_NEXUS_DEVICE(dw_mmc, 0, 0, NULL);
SYSINIT_DRIVER_REFERENCE(mmc, dw_mmc);
SYSINIT_DRIVER_REFERENCE(mmcsd, mmc);
+static const rtems_bsd_device_resource dwcotg0_res[] = {
+ {
+ .type = RTEMS_BSD_RES_MEMORY,
+ .start_request = 0,
+ .start_actual = (unsigned long)ALT_USB1_ADDR
+ }, {
+ .type = RTEMS_BSD_RES_IRQ,
+ .start_request = 0,
+ .start_actual = ALT_INT_INTERRUPT_USB1_IRQ
+ }
+};
+
+RTEMS_BSD_DEFINE_NEXUS_DEVICE(dwcotg, 0, RTEMS_ARRAY_SIZE(dwcotg0_res),
+ &dwcotg0_res[0]);
+
+SYSINIT_REFERENCE(usb_quirk_init);
+SYSINIT_DRIVER_REFERENCE(uhub, usbus);
+SYSINIT_DRIVER_REFERENCE(umass, uhub);
+
#elif defined(LIBBSP_I386_PC386_BSP_H)
RTEMS_BSD_DEFINE_NEXUS_DEVICE(legacy, 0, 0, NULL);