Lines Matching full:cpcap
3 * Motorola CPCAP PMIC RTC driver
5 * Based on cpcap-regulator.c from Motorola Linux kernel tree
26 #include <linux/mfd/motorola-cpcap.h>
51 static void cpcap2rtc_time(struct rtc_time *rtc, struct cpcap_time *cpcap) in cpcap2rtc_time() argument
56 tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); in cpcap2rtc_time()
57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); in cpcap2rtc_time()
62 static void rtc2cpcap_time(struct cpcap_time *cpcap, struct rtc_time *rtc) in rtc2cpcap_time() argument
68 cpcap->day = time / SECS_PER_DAY; in rtc2cpcap_time()
70 cpcap->tod2 = (time >> 8) & TOD2_MASK; in rtc2cpcap_time()
71 cpcap->tod1 = time & TOD1_MASK; in rtc2cpcap_time()
308 { .compatible = "motorola,cpcap-rtc", },
316 .name = "cpcap-rtc",
323 MODULE_ALIAS("platform:cpcap-rtc");
324 MODULE_DESCRIPTION("CPCAP RTC driver");