diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-11-12 13:01:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-11-12 13:01:32 +0100 |
commit | ba446132d4e9efbc1ffd7f4dc4fbfde7f531b740 (patch) | |
tree | e6b8319d92535a226144130d0ec37abe3f3c5613 /rtemsbsd/include/bsp/nexus-devices.h | |
parent | dwc_otg: Import from FreeBSD trunk 2015-11-10 (diff) | |
download | rtems-libbsd-ba446132d4e9efbc1ffd7f4dc4fbfde7f531b740.tar.bz2 |
dwc_otg: Port to RTEMS
Diffstat (limited to 'rtemsbsd/include/bsp/nexus-devices.h')
-rw-r--r-- | rtemsbsd/include/bsp/nexus-devices.h | 19 |
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); |