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.