AnsweredAssumed Answered

How to tell Android to use iMX6 RTC as the alarm?

Question asked by Jeffrey Chang on Mar 13, 2018
Latest reply on Mar 14, 2018 by Jeffrey Chang

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.

Outcomes