I am using iMX6 to build a system based on Android Kit-Kat. On the system I have an external RTC chip which is powered by a separate battery. The external RTC chip does not have an interrupt line connected iMX.
The external RTC chip is registered under /sys/class/rtc/rtc0. I have also enabled CONFIG_RTC_DRV_MXC_V2 to build the rtc-mxc_v2.o.
My question is that how do I let Android know that it should use the iMX internal RTC (/proc/driver/rtc) as the alarm to wake up the system when it is in suspend state? Currently if I set an alarm and suspend the device, the alarm is not fired until I manually wake up the system.
Hi Igor,
These are not new questions, I just re-phrased the original questions to make them clearer. But anyway, I have started a new thread https://community.nxp.com/message/995499 .
Thank you.
Jeffrey
Hi Jeffrey
to wake up the system when it is in suspend state, it is necessary
to provide interrupt to processor. Usually it is done using gpio, also some
peripherals can wake, like uart. It is described in sect."UART Operation in System Stop Mode"
i.MX6DQ Reference Manual. Otherwise, there are no ways to wake processor.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
Thank you for the prompt response.
Do you mean that the SRTC on iMX cannot wake up the system when it is in suspend state?
Hi Jeffrey
your question was about external RTC.
SRTC on iMX can wake up.
Best regards
igor
My question may not be clear enough. Please let me put my questions here again.
Mainly two questions:
Thank you.
Hi Jeffrey
for new questions recommended to start new thread.
Best regards
igor