[rtems-libbsd commit] at91_mci: Add timing to read_ivar.
Sebastian Huber
sebh at rtems.org
Fri Nov 10 13:22:23 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: a506ba970a1756bafe535e5d86e392bff33c270d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=a506ba970a1756bafe535e5d86e392bff33c270d
Author: Christian Mauderer <Christian.Mauderer at embedded-brains.de>
Date: Wed Nov 8 11:25:59 2017 +0100
at91_mci: Add timing to read_ivar.
---
freebsd/sys/arm/at91/at91_mci.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/freebsd/sys/arm/at91/at91_mci.c b/freebsd/sys/arm/at91/at91_mci.c
index f99f59c..e4988cb 100644
--- a/freebsd/sys/arm/at91/at91_mci.c
+++ b/freebsd/sys/arm/at91/at91_mci.c
@@ -1557,6 +1557,11 @@ at91_mci_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
}
*(int *)result = sc->host.caps;
break;
+#ifdef __rtems__
+ case MMCBR_IVAR_TIMING:
+ *result = sc->host.ios.timing;
+ break;
+#endif /* __rtems__ */
case MMCBR_IVAR_MAX_DATA:
/*
* Something is wrong with the 2x parts and multiblock, so
@@ -1604,6 +1609,11 @@ at91_mci_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
case MMCBR_IVAR_VDD:
sc->host.ios.vdd = value;
break;
+#ifdef __rtems__
+ case MMCBR_IVAR_TIMING:
+ sc->host.ios.timing = value;
+ break;
+#endif /* __rtems__ */
/* These are read-only */
case MMCBR_IVAR_CAPS:
case MMCBR_IVAR_HOST_OCR:
More information about the vc
mailing list