mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 06:26:46 +08:00
at91_mci: Port to RTEMS and adapt for atsam.
This commit is contained in:

committed by
Sebastian Huber

parent
ea5880a3cc
commit
ec29b2a0c2
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user