User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 388
UG585 (v1.11) September 27, 2016
Chapter 14: General Purpose I/O (GPIO)
14.3.5
GPIO as Wake-up Event
The GPIO can be configured as a wake-up device.
IMPORTANT: The GIC must be set up correctly.
1.
Enable the GPIO interrupt in the GIC.
2.
Enable the GPIO interrupt for the wanted pin(s) using the gpio.INT_EN_{0..3} register. Set 1 to
gpio.INT_EN_0[10] to enable the GPIO10 interrupt.
3.
Do not turn off any GPIO related clocks.
14.3.6 Register Overview
An overview of the GPIO registers is shown in Table 14-2 (also refer to section 14.2.1 GPIO Control
of Device Pins). Details of registers are provided in Appendix B, Register Details.
14.4
System Functions
The controller clocks and resets are described in this section. All of the interrupts generated in the
GPIO controller are routed to IRQ 52. The GPIO I/O signals are routed to either the MIO or EMIO.
Table 14-2: GPIO Register Overview
Function Register Name Overview Type
Data Reads and Data Writes
gpio.MASK_DATA_{3:0}_{MSW,LSW} Bit masked data output writes. Mixed
gpio.DATA_{3:0} 32-bit data output write R/W
gpio.DATA_{3:0}_RO 32-bit data read of inputs RO
I/O Buffer Control
gpio.DIRM_{3:0} Direction R/W
gpio.OEN_{3:0} Output Enable R/W
Interrupt Controls
gpio.INT_MASK_{3:0} Interrupt Mask RO
gpio.INT_EN_{3:0} Interrupt Enable WO
gpio.INT_DIS_{3:0} Interrupt Disable WO
gpio.INT_STAT_{3:0} Interrupt Status WTC
gpio.INT_TYPE_{3:0} Interrupt Type RW
gpio.INT_POLARITY_{3:0} Interrupt Polarity RW
gpio.INT_ANY_{3:0} Interrupt Any RW