Hello,
I am using IMX6UL. As per our requirement we want to wake up from sleep mode using RTC, GPIO and USB. We are successfully able to wake up using all three sources but problem is how can we identify whether the wake up occurs due to USB or RTC? Please guide.
Regards,
Lalabhai Desai
Hello igor,
I have tried as per your given above solution and read the GPC_ISR register from user space using memtool utility but i have got 0x00 value always so please give me the proper solution to get the cause for wake up due to USB or RTC from the user space.
Regards,
Lalabhai
Hi Lalabhai
seems low power driver clears this info and there is no way
to check it from user space.
Best regards
igor
Hello igor,
I don't know how to read GPC_ISR registers from the user space?Also didn't get the details about GPC_ISR registers from the reference manual like for USB wake up, which bit will be set? and for RTC wake up, which bit will be set? please help.
Regards,
Lalabhai
Hi Lalabhai
for reading one can try memtool in imx-test
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz
module interrupt number can be found in Table 3-1. ARM Cortex A7 domain
interrupt summary i.MX6UL Reference Manual
http://www.nxp.com/docs/en/reference-manual/IMX6ULRM.pdf
Best regards
igor
Hi Lalabhai
one can try to use GPC_ISR registers, Chapter 25
General Power Controller (GPC) i.MX6UL Reference Manual.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------