User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 690
UG585 (v1.11) September 27, 2016
Chapter 25: Clocks
interface. They are also used to provide a stable reference clock to the Ethernet receive paths when
internal loopback mode is selected.
These clocks can also be sourced from the EMIO. In this case, the associated RGMII interface is
disabled and the MAC connects to the PL through an MII or GMII interface. In this case, the Ethernet
reference clock must be provided by the PL. This is regardless of MII or GMII, where normally tx_clk
is an input in MII and an output in GMII.
When operating in MII or GMII mode, its reference clock is provided by the PL through the
eth*_emio_tx_clk. The EMIO source multiplexer is not glitch free because the EMIO source clock
cannot be relied upon to be present. It is anticipated that this source selection is a static
configuration or that the generated clock be gated before changing to the EMIO source. To support
loopback mode, gem0_rx_clk and gem1_rx_clk are supplied with gem0_ref_clk and gem1_ref_clk.
25.6.3 SDIO, SMC, SPI, Quad-SPI and UART Clocks
The SDIO, SMC, Quad SPI, and UART peripheral clocks all have the same programming model (see
Figure 25-8. The PLL source and divider values are shared for each I/O peripheral controller. The
clocks for each SDIO, SPI and the UART controller can be individually enabled/disabled. There is a
single clock, each, for the SMC and Quad SPI controllers.
The Quad-SPI clock is divided down by at least two using the Quad-SPI baud rate divider, see section
12.4.1 Clocks. In master mode, the SPI clock is divided down by at least four using the SPI baud rate
divider, see section 17.4.2 Clocks.
X-Ref Target - Figure 25-8
Figure 25-8: SDIO, SMC, SPI, Quad SPI and UART Reference Clocks
UG585_c25_08_0725712
I/O PLL
ARM PLL
DDR PLL
Clock
Gate
I/O Peripheral
Reference
Clocks
Glitch-Free
6-bit
Programmable
Divider
Glitch-Free
Divider Ctrl FieldMux Ctrl FieldMux Ctrl FieldControl RegisterI/O Peripheral Clock Enable Field
DevC
SMC
DIVISOR, 13:8SRCSEL, 5SRCSEL, 4SDIO_CLK_CTRL
DIVISOR, 13:8SRCSEL, 5SRCSEL, 4SMC_CLK_CTRL
SDIO 0
SDIO 1
CLKACT0, 0
CLKACT1, 1
DIVISOR, 13:8SRCSEL, 5SRCSEL, 4SPI_CLK_CTRL
SPI 0
SPI 1
CLKACT0, 0
CLKACT1, 1
CLKACT, 0
Quad-SPI
DIVISOR, 13:8SRCSEL, 5SRCSEL, 4LQSPI_CLK_CTRL
DIVISOR, 13:8SRCSEL, 5SRCSEL, 4UART_CLK_CTRL
UART 0
UART 1
CLKACT0, 0
CLKACT1, 1
CLKACT, 0
SDIO0_REF_CLK
SDIO
SMC
SPI
Quad SPI
UART
Glitch-
Free
0
1
SDIO1_REF_CLK
SMC_REF_CLK
SPI0_REF_CLK
SPI1_REF_CLK
QSPI_REF_CLK
UART0_REF_CLK
UART1_REF_CLK
Glitch-
Free
0
1