From ba446132d4e9efbc1ffd7f4dc4fbfde7f531b740 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Nov 2015 13:01:32 +0100 Subject: dwc_otg: Port to RTEMS --- rtemsbsd/include/bsp/nexus-devices.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'rtemsbsd/include/bsp/nexus-devices.h') 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); -- cgit v1.2.3