mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
sdhci: implement CMD/DAT[] fields in the Present State register
[based on a patch from Alistair Francis <alistair.francis@xilinx.com> from qemu/xilinx tag xilinx-v2015.2] Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Message-Id: <20180208164818.7961-23-f4bug@amsat.org>
This commit is contained in:
parent
0034ebe6ee
commit
da34692234
6 changed files with 62 additions and 0 deletions
|
@ -1003,6 +1003,10 @@ static uint64_t sdhci_read(void *opaque, hwaddr offset, unsigned size)
|
|||
break;
|
||||
case SDHC_PRNSTS:
|
||||
ret = s->prnsts;
|
||||
ret = FIELD_DP32(ret, SDHC_PRNSTS, DAT_LVL,
|
||||
sdbus_get_dat_lines(&s->sdbus));
|
||||
ret = FIELD_DP32(ret, SDHC_PRNSTS, CMD_LVL,
|
||||
sdbus_get_cmd_line(&s->sdbus));
|
||||
break;
|
||||
case SDHC_HOSTCTL:
|
||||
ret = s->hostctl1 | (s->pwrcon << 8) | (s->blkgap << 16) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue