按照 AM335x Power Management Standby User's Guide
mkdir -p /debugfs
mount -t debugfs debugfs /debugfs
cd /debugfs/omap_mux/board/
echo gpmc_ad12.gpio1_12=0x27,rising > standby_gpio_pad_conf
echo gpmc_ad8.gpio0_22=0x27,falling>standby_gpio_pad_conf
echo standby > /sys/power/state
通过GPIO无法唤醒系统,通过串口0在控制台中输入任意东西可以唤醒,求解啊。是不是需要配置内核呢?具体应该怎么配置?
Yaoming Qin:
请问您用的是哪个GPIO,请查看下面的说明,需要是GPIO0.
Wakeup sources
In the default configuration wakeup from suspend using the following interfaces are supported:
UART0 (console)
GPIO0
Touchscreen:
Bo Ye1:
回复 Yaoming Qin:
感谢您的回复,我用的是GPIO0_22,需要在内核文件中添加吗?
Bo Ye1:
还没有解决,按着手册搞不定啊,求专家高手指点一下
Bo Ye1:
终于搞定了, 还需要设置 echo falling > /sys/class/gpio/gpio22/edge
在GPIO22下降沿的时候唤醒,实验可行,不需要改内核驱动
Jian Zhou:
回复 Bo Ye1:
印象里,GPIO接一个按键,就可以触发睡眠唤醒。