diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2017-11-08 11:25:59 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-10 14:13:19 +0100 |
commit | a506ba970a1756bafe535e5d86e392bff33c270d (patch) | |
tree | 82bd5ba5f993e47aa4551df38360e78e1e480655 | |
parent | freebsd/bus: Check return value of bus_accessor. (diff) | |
download | rtems-libbsd-a506ba970a1756bafe535e5d86e392bff33c270d.tar.bz2 |
at91_mci: Add timing to read_ivar.
-rw-r--r-- | freebsd/sys/arm/at91/at91_mci.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/freebsd/sys/arm/at91/at91_mci.c b/freebsd/sys/arm/at91/at91_mci.c index f99f59cd..e4988cb9 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: |