How to configure Android 4.4.2 to work with two RTCs in the system

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to configure Android 4.4.2 to work with two RTCs in the system

1,267 次查看
jeffreychang
Contributor I

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 the internal SRTC on iMX by enabling CONFIG_RTC_DRV_MXC_V2 to build the rtc-mxc_v2.o. The internal SRTC is under /proc/driver/rtc.

Two questions:

  1. When I have both an external RTC and SRTC on iMX enabled on the system, how do I synchronize the SRTC with the external RTC? The time will be kept on external RTC because it is powered by a separate battery so SRTC has to be synchronized with the external RTC.
  2. How do I configure Android so that when it needs to get time, it gets time from the external RTC; and when it needs to set an alarm to wake up the system in suspend, it sets the alarm using the SRTC on iMX not the external RTC?
标签 (2)
0 项奖励
回复
1 回复

1,085 次查看
diegoadrian
NXP Employee
NXP Employee

Hello 

Unfortunately, what you are willing to do is out of our scope. For that, I highly recommend you to go to professional service support, they can help you.

NXP Professional Services|NXP 

Best Regards,

Diego.

0 项奖励
回复