mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
sdhci: implement the Host Control 2 register (tuning sequence)
[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-20-f4bug@amsat.org>
This commit is contained in:
parent
06c5120b09
commit
ea55a221bf
3 changed files with 30 additions and 3 deletions
|
@ -188,6 +188,16 @@ FIELD(SDHC_ACMD12ERRSTS, TIMEOUT_ERR, 1, 1);
|
|||
FIELD(SDHC_ACMD12ERRSTS, CRC_ERR, 2, 1);
|
||||
FIELD(SDHC_ACMD12ERRSTS, INDEX_ERR, 4, 1);
|
||||
|
||||
/* Host Control Register 2 (since v3) */
|
||||
#define SDHC_HOSTCTL2 0x3E
|
||||
FIELD(SDHC_HOSTCTL2, UHS_MODE_SEL, 0, 3);
|
||||
FIELD(SDHC_HOSTCTL2, V18_ENA, 3, 1); /* UHS-I only */
|
||||
FIELD(SDHC_HOSTCTL2, DRIVER_STRENGTH, 4, 2); /* UHS-I only */
|
||||
FIELD(SDHC_HOSTCTL2, EXECUTE_TUNING, 6, 1); /* UHS-I only */
|
||||
FIELD(SDHC_HOSTCTL2, SAMPLING_CLKSEL, 7, 1); /* UHS-I only */
|
||||
FIELD(SDHC_HOSTCTL2, ASYNC_INT, 14, 1);
|
||||
FIELD(SDHC_HOSTCTL2, PRESET_ENA, 15, 1);
|
||||
|
||||
/* HWInit Capabilities Register 0x05E80080 */
|
||||
#define SDHC_CAPAB 0x40
|
||||
FIELD(SDHC_CAPAB, TOCLKFREQ, 0, 6);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue