summaryrefslogtreecommitdiffstats
path: root/rtemsbsd
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2017-11-07 16:17:55 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-10 14:13:15 +0100
commitec29b2a0c25c1c5fc3f213c0da1b6156a4dd4cdc (patch)
tree3240b51e878157e276f4517f562ed01dc6e29d9e /rtemsbsd
parentat91_mci: Import from FreeBSD (diff)
downloadrtems-libbsd-ec29b2a0c25c1c5fc3f213c0da1b6156a4dd4cdc.tar.bz2
at91_mci: Port to RTEMS and adapt for atsam.
Diffstat (limited to 'rtemsbsd')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-nexus-bus.h21
-rw-r--r--rtemsbsd/include/rtems/bsd/local/opt_at91.h0
2 files changed, 21 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
index 251309ae..c650918d 100644
--- a/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
+++ b/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
@@ -231,6 +231,27 @@ extern "C" {
#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.
*/
#if !defined(RTEMS_BSD_DRIVER_MMC)
diff --git a/rtemsbsd/include/rtems/bsd/local/opt_at91.h b/rtemsbsd/include/rtems/bsd/local/opt_at91.h
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/rtemsbsd/include/rtems/bsd/local/opt_at91.h