mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 00:39:18 +08:00
dw_mmc: Add MMCBR_IVAR_TIMING
This commit is contained in:
parent
c30fa94277
commit
138bf250c2
@ -1039,6 +1039,9 @@ dw_mmc_read_ivar(device_t bus, device_t child, int which, uintptr_t *result)
|
|||||||
case MMCBR_IVAR_CAPS:
|
case MMCBR_IVAR_CAPS:
|
||||||
*(int *)result = sc->host.caps;
|
*(int *)result = sc->host.caps;
|
||||||
break;
|
break;
|
||||||
|
case MMCBR_IVAR_TIMING:
|
||||||
|
*result = sc->host.ios.timing;
|
||||||
|
break;
|
||||||
case MMCBR_IVAR_MAX_DATA:
|
case MMCBR_IVAR_MAX_DATA:
|
||||||
*(int *)result = 1;
|
*(int *)result = 1;
|
||||||
break;
|
break;
|
||||||
@ -1078,6 +1081,9 @@ dw_mmc_write_ivar(device_t bus, device_t child, int which, uintptr_t value)
|
|||||||
case MMCBR_IVAR_VDD:
|
case MMCBR_IVAR_VDD:
|
||||||
sc->host.ios.vdd = value;
|
sc->host.ios.vdd = value;
|
||||||
break;
|
break;
|
||||||
|
case MMCBR_IVAR_TIMING:
|
||||||
|
sc->host.ios.timing = value;
|
||||||
|
break;
|
||||||
/* These are read-only */
|
/* These are read-only */
|
||||||
case MMCBR_IVAR_CAPS:
|
case MMCBR_IVAR_CAPS:
|
||||||
case MMCBR_IVAR_HOST_OCR:
|
case MMCBR_IVAR_HOST_OCR:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user