The required kernel configuration options are:
-
Device Drivers
-
[*] GPIO Support
- [*] /sys/class/gpio/... (sysfs interface)
-
Memory mapped GPIO drivers
- [*] Xilinx GPIO support
- [*] Xilinx Zynq GPIO support
-
[*] GPIO Support
To wake up the APU on the GPIO pin:
$ echo enabled > /sys/devices/platform/gpio-keys/power/wakeup