dwc_otg: Add support for nexus bus

Update #3910.
This commit is contained in:
Sebastian Huber
2020-03-31 10:20:04 +02:00
parent 8c4c7807f5
commit 0e7108f940
5 changed files with 276 additions and 0 deletions

View File

@@ -152,9 +152,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;