Home
last modified time | relevance | path

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

/drivers/rtc/
Drtc-ds1305.c88 struct ds1305 { struct
145 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_alarm_irq_enable() local
150 buf[1] = ds1305->ctrl[0]; in ds1305_alarm_irq_enable()
153 if (ds1305->ctrl[0] & DS1305_AEI0) in ds1305_alarm_irq_enable()
161 err = spi_write_then_read(ds1305->spi, buf, sizeof buf, NULL, 0); in ds1305_alarm_irq_enable()
163 ds1305->ctrl[0] = buf[1]; in ds1305_alarm_irq_enable()
176 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_get_time() local
184 status = spi_write_then_read(ds1305->spi, &addr, sizeof addr, in ds1305_get_time()
214 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_set_time() local
229 *bp++ = hour2bcd(ds1305->hr12, time->tm_hour); in ds1305_set_time()
[all …]
DMakefile40 obj-$(CONFIG_RTC_DRV_DS1305) += rtc-ds1305.o
DKconfig523 will be called rtc-ds1305.