Discussion:
[meta-freescale] Wake up on gpio
jorisoffouga
2018-09-07 13:25:05 UTC
Permalink
Hi All,

I'm using a ls1012ardb and i want to make an awakening vi to gpio.

I would like to know how to carry out this action.

Thanks

Joris

--
Zhenhua Luo
2018-09-12 09:23:50 UTC
Permalink
Hi Joris,

In order to use GPIO as wakeup source, you need to have a driver that actually setup and request the GPIO irq. The driver needs to use device_init_wakeup() API to setup as a wakeup device, and the wakeup irq needs to use irq_set_irq_wake() API to be enabled as wakeup irq during system suspend.


Best Regards,

Zhenhua

-----Original Message-----
From: meta-freescale-***@yoctoproject.org <meta-freescale-***@yoctoproject.org> On Behalf Of jorisoffouga
Sent: Friday, September 7, 2018 9:25 PM
To: meta-freescale Mailing List <meta-***@yoctoproject.org>
Subject: [meta-freescale] Wake up on gpio

Hi All,

I'm using a ls1012ardb and i want to make an awakening vi to gpio.

I would like to know how to carry out this action.

Thanks

Joris

--

Loading...