How to identify the wake up cause in imx6UL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to identify the wake up cause in imx6UL

1,562 Views
lalabhaidesai
Contributor I

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

Labels (1)
0 Kudos
Reply
5 Replies

1,262 Views
lalabhaidesai
Contributor I

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

0 Kudos
Reply

1,262 Views
igorpadykov
NXP Employee
NXP Employee

Hi Lalabhai

 

seems low power driver clears this info and there is no way

to check it from user space.

 

Best regards
igor

0 Kudos
Reply

1,262 Views
lalabhaidesai
Contributor I

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

0 Kudos
Reply

1,262 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos
Reply

1,262 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply