Sebastian Reichel

Motorola Droid 4 - RTC driver

With Debian up & running I had a look at what needs to be done in the mainline kernel. Tony is working on the ADC parts, which are required for the battery/charger work and mentioned he will have a look at USB. He also mentioned, that somebody with spare cycles could take care of CPCAP’s rtc & watchdog. I had a look at Motorola’s vendor kernel and as far as I can see CPCAP does not come with a watchdog (unlike twl4030/twl6040). Missing RTC is annoying, though, so I had a look at that. It turned out to be quite easy to port with Tony’s previous work on the CPCAP, so that I could rewrite the driver for mainline usage in a single night:

Linux CPCAP RTC driver

The driver currently supports to set & get the system time and setting/getting an alarm time. For now it does not set wakeup capabilities.

Update 2017-02-21 07:18: Turns out wakeup support was easy to implement, PATCHv2 has been sent with wakeup support!