Home
last modified time | relevance | path

Searched refs:ds1305 (Results 1 – 3 of 3) sorted by relevance

/drivers/rtc/
Drtc-ds1305.c84 struct ds1305 { struct
141 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_alarm_irq_enable() local
146 buf[1] = ds1305->ctrl[0]; in ds1305_alarm_irq_enable()
149 if (ds1305->ctrl[0] & DS1305_AEI0) in ds1305_alarm_irq_enable()
157 err = spi_write_then_read(ds1305->spi, buf, sizeof(buf), NULL, 0); in ds1305_alarm_irq_enable()
159 ds1305->ctrl[0] = buf[1]; in ds1305_alarm_irq_enable()
172 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_get_time() local
180 status = spi_write_then_read(ds1305->spi, &addr, sizeof(addr), in ds1305_get_time()
207 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_set_time() local
222 *bp++ = hour2bcd(ds1305->hr12, time->tm_hour); in ds1305_set_time()
[all …]
DMakefile54 obj-$(CONFIG_RTC_DRV_DS1305) += rtc-ds1305.o
DKconfig755 will be called rtc-ds1305.