reg_hostcontrol2 (SDIO) Register - UG1087

Zynq UltraScale+ Devices Register Reference (UG1087)

Document ID
UG1087
Release Date
2025-06-20
Revision
1.11

reg_hostcontrol2 (SDIO) Register Description

Register Namereg_hostcontrol2
Offset Address0x000000003E
Absolute Address 0x00FF16003E (SD0)
0x00FF17003E (SD1)
Width16
TypemixedMixed types. See bit-field details.
Reset Value0x00000000
DescriptionUHS Mode, I/O Drive, Tuning, Clocking, Intr, and Presets.

Program UHS Select Mode, Driver Strength Select, Execute Tuning, Sampling Clock Select, Asynchronous Interrupt Enable, and Preset value enable.

reg_hostcontrol2 (SDIO) Register Bit-Field Summary

Field NameBitsTypeReset ValueDescription
hostctrl2_presetvalueenable15rwNormal read/write0x0Host Controller Version 3.00 supports this bit. As the operating SDCLK frequency and I/O driver strength depend on the Host System implementation, it is difficult to determine these parameters in the Standard Host Driver. When Preset Value Enable is set to automatic. This bit enables the functions defined in the Preset Value registers.
0 SDCLK and Driver Strength are controlled by Host Driver.
1 Automatic Selection by Preset Value are Enabled.
If this bit is set to 0, SDCLK Frequency Select, Clock Generator Select in the Clock Control register and Driver Strength Select in Host Control 2 register are set by Host Driver.
If this bit is set to 1, SDCLK Frequency Select, Clock Generator Select in the Clock Control register and Driver Strength Select in Host Control 2 register are set by Host Controller as specified in the Preset Value registers.
hostctrl2_asynchintrenable14rwNormal read/write0x0This bit can be set to 1 if a card support asynchronous interrupt and Asynchronous Interrupt Support is set to 1 in the Capabilities register. Asynchronous interrupt is effective when DAT[1] interrupt is used in 4-bit SD mode (and zero is set to Interrupt Pin Select in the Shared Bus Control register). If this bit is set to 1, the Host Driver can stop the SDCLK during asynchronous interrupt period to save power. During this period, the Host Controller continues to deliver Card Interrupt to the host when it is asserted by the Card.
0 Disabled
1 Enabled
hostctrl2_samplingclkselect 7rwNormal read/write0x0This bit is set by tuning procedure when Execute Tuning is cleared. Writing 1 to this bit is meaningless and ignored. Setting 1 means that tuning is completed successfully and setting 0 means that tuning is failed. Host Controller uses this bit to select sampling clock to receive CMD and DAT. This bit is cleared by writing 0. Change of this bit is not allowed while the Host Controller is receiving response or a read data block.
0 Fixed clock is used to sample data
1 Tuned clock is used to sample data
hostctrl2_executetuning 6clronwrReadable, clears value on write0x0This bit is set to 1 to start tuning procedure and automatically cleared when tuning procedure is completed. The result of tuning is indicated to Sampling Clock Select. Tuning procedure is aborted by writing 0 for more detail about tuning procedure.
0 Not Tuned or Tuning Completed
1 Execute Tuning
hostctrl2_1p8vsignallingena 3rwNormal read/write0x0This bit controls voltage regulator for I/O cell. 3.3V is supplied to the card regardless of signaling voltage. Setting this bit from 0 to 1 starts changing signal voltage from 3.3V to 1.8V.
1.8V regulator output shall be stable within 5ms. Host Controller clears this bit if switching to 1.8V signaling fails.
Clearing this bit from 1 to 0 starts changing signal voltage from 1.8V to 3.3V.
3.3V regulator output shall be stable within 5ms. Host Driver can set this bit to 1 when Host Controller supports 1.8V signaling (One of support bits is set to 1: SDR50, SDR104 or DDR50 in the Capabilities register) and the card or device supports UHS-I.
0 3.3V Signalling, 1 1.8V Signalling
hostctrl2_uhsmodeselect 2:0rwNormal read/write0x0This field is used to select one of UHS-I modes and effective when 1.8V Signaling Enable is set to 1.If Preset Value Enable in the Host Control 2 register is set to 1, Host Controller sets SDCLK Frequency Select, Clock Generator Select in the Clock Control register and Driver Strength Select according to Preset Value registers. In this case, one of preset value registers is selected by this field. Host Driver needs to reset SD Clock Enable before changing this field to avoid generating clock glitch. After setting this field, Host Driver sets SD Clock Enable again.
000: SDR12
001: SDR25
010: SDR50
011: SDR104
100: DDR50
101 - 111: Reserved.
When SDR50, SDR104 or DDR50 is selected for SDIO card, interrupt detection at the block gap shall not be used. Read Wait timing is changed for these modes. Refer to the SDIO Specification Version 3.00 for more detail.