diff --git a/sys/dev/mmc/host/dwmmc.c b/sys/dev/mmc/host/dwmmc.c index d9e38071defe..29e6da8e58f0 100644 --- a/sys/dev/mmc/host/dwmmc.c +++ b/sys/dev/mmc/host/dwmmc.c @@ -1096,6 +1096,10 @@ dwmmc_read_ivar(device_t bus, device_t child, int which, uintptr_t *result) break; case MMCBR_IVAR_MAX_DATA: *(int *)result = sc->desc_count; + break; + case MMCBR_IVAR_TIMING: + *(int *)result = sc->host.ios.timing; + break; } return (0); } @@ -1134,6 +1138,14 @@ dwmmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value) case MMCBR_IVAR_VDD: sc->host.ios.vdd = value; break; + case MMCBR_IVAR_TIMING: + sc->host.ios.timing = value; + break; + + /* Not handled */ + case MMCBR_IVAR_VCCQ: + return (0); + break; /* These are read-only */ case MMCBR_IVAR_CAPS: case MMCBR_IVAR_HOST_OCR: