at91_mci: Port to RTEMS and adapt for atsam.

This commit is contained in:
Christian Mauderer
2017-11-07 16:17:55 +01:00
committed by Sebastian Huber
parent ea5880a3cc
commit ec29b2a0c2
6 changed files with 308 additions and 2 deletions

View File

@@ -230,6 +230,27 @@ extern "C" {
RTEMS_BSD_DEFINE_NEXUS_DEVICE(dw_mmc, 0, 0, NULL)
#endif /* RTEMS_BSD_DRIVER_DWC_MMC */
/*
* Atmel Media Card Interface (MCI).
*/
#if !defined(RTEMS_BSD_DRIVER_AT91_MCI0)
#define RTEMS_BSD_DRIVER_AT91_MCI0(_base, _irq) \
static const rtems_bsd_device_resource at91_mci0_res[] = { \
{ \
.type = RTEMS_BSD_RES_MEMORY, \
.start_request = 0, \
.start_actual = (_base) \
}, { \
.type = RTEMS_BSD_RES_IRQ, \
.start_request = 0, \
.start_actual = (_irq) \
} \
}; \
RTEMS_BSD_DEFINE_NEXUS_DEVICE(at91_mci, 0, \
RTEMS_ARRAY_SIZE(at91_mci0_res), \
&at91_mci0_res[0])
#endif /* RTEMS_BSD_DRIVER_DWC0 */
/*
* MMC Driver.
*/