User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 366
UG585 (v1.11) September 27, 2016
Chapter 13: SD/SDIO Controller
13.2.6 Stream Write and Read
This functionality applies to both DMA and non-DMA modes.
WRITE_DAT_UNTIL_STOP(CMD20) writes a data stream from the host, starting at the given address,
until a STOP_TRANSMISSION follows.
READ_DAT_UNTIL_STOP(CMD11) reads a data stream from the card, starting at the given address,
until a STOP_TRANSMISSION follows.
The host controller switches to the second FIFO after writing/reading a block of data to/from the first
FIFO, but the stream transaction block size is not be programmed by the driver. So for both stream
write and stream read transactions, it is recommended that the host driver writes the maximum FIFO
size value to the Block Size register. Because the SDIO FIFO slice is set to 512 bytes, the host driver
must write 512 bytes to the Block Size register. Therefore FIFO switching occurs after writing/reading
the 512 bytes of data.
13.2.7 Clocks
The SDIO clock is derived from SDIO reference clock based on the Clock Control register value
programmed by the driver and is available when the SD clock enable is set by the driver. The
maximum frequency is 50 MHz.
The AHB system clock is used for the AHB interface.
The host controller supports both full speed and high speed cards. For the high speed card, the host
controller should clock out the data at the rising edge of the SDIO clock. For the full speed card, the
host controller should clock out the data at the falling edge of the SDIO clock.
Refer to Table 24-2, page 673 for the more details about power management. Refer to Chapter 25,
Clocks for details about the clocks. Layout and clock termination guidelines are presented in UG933
,
Zynq-7000 All programmable SoC PCB Design Guide.
13.2.8 Soft Resets
The host controller supports all soft resets mentioned in the SD2.0/SDIO2.0 Host Controller
Specification.
13.2.9 FIFO Overrun and Underrun Conditions
This functionality applies to both DMA and non-DMA modes.
Write
During the write transaction, the host controller transmits data to the card only when a block of data
is ready to transmit and the card is not busy. Therefore an under-run condition cannot occur in the
SD side.