User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 1558
UG585 (v1.11) September 27, 2016
Appendix B: Register Details
SDCLK_Frequency_Sel
ect
15:8 rw 0x0 This register is used to select the frequency of the
SDCLK pin. The frequency is not programmed
directly; rather this register holds the divisor of
the Base Clock Frequency For SD clock in the
capabilities register. Only the following settings
are allowed.
80h - base clock divided by 256
40h - base clock divided by 128
20h - base clock divided by 64
10h - base clock divided by 32
08h - base clock divided by 16
04h - base clock divided by 8
02h - base clock divided by 4
01h - base clock divided by 2
00h - base clock(10MHz-63MHz)
Setting 00h specifies the highest frequency of the
SD Clock. When setting multiple bits, the most
significant bit is used as the divisor. But multiple
bits should not be set. The two default divider
values can be calculated by the frequency that is
defined by the Base Clock Frequency For SD
Clock in the Capabilities register.
1) 25 MHz divider value
2) 400 KHz divider value
The frequency of the SDCLK is set by the
following formula:
Clock Frequency = (Baseclock) / divisor.
Thus choose the smallest possible divisor which
results in a clock frequency that is less than or
equal to the target frequency.
Maximum Frequency for SD = 50Mhz (base clock)
Maximum Frequency for MMC = 52Mhz (base
clock)
Minimum Frequency = 195.3125Khz (50Mhz /
256), same calc for MMC also
reserved 7:3 ro 0x0 Reserved
SD_Clock_Enable 2 rw 0x0 The HC shall stop SDCLK when writing this bit to
0. SDCLK frequency Select can be changed when
this bit is 0. Then, the HC shall maintain the same
clock frequency until SDCLK is stopped (Stop at
SDCLK = 0). If the HC detects the No Card state,
this bit shall be cleared.
1 - Enable
0 - Disable
Field Name Bits Type Reset Value Description