Home
last modified time | relevance | path

Searched refs:rtc_write (Results 1 – 2 of 2) sorted by relevance

/drivers/rtc/
Drtc-ds1511.c102 rtc_write(uint8_t val, uint32_t reg) in rtc_write() function
110 rtc_write((val | 0x80), reg); in rtc_write_alarm()
122 rtc_write((rtc_read(RTC_CMD) & ~RTC_TE), RTC_CMD); in rtc_disable_update()
128 rtc_write((rtc_read(RTC_CMD) | RTC_TE), RTC_CMD); in rtc_enable_update()
152 rtc_write(bin2bcd(deciseconds % 100), DS1511_WD_MSEC); in ds1511_wdog_set()
153 rtc_write(bin2bcd(deciseconds / 100), DS1511_WD_SEC); in ds1511_wdog_set()
157 rtc_write(rtc_read(RTC_CMD) | DS1511_WDE | DS1511_WDS, RTC_CMD); in ds1511_wdog_set()
166 rtc_write(rtc_read(RTC_CMD) & ~(DS1511_WDE | DS1511_WDS), RTC_CMD); in ds1511_wdog_disable()
170 rtc_write(0, DS1511_WD_MSEC); in ds1511_wdog_disable()
171 rtc_write(0, DS1511_WD_SEC); in ds1511_wdog_disable()
[all …]
Drtc-omap.c165 static inline void rtc_write(struct omap_rtc *rtc, unsigned int reg, u8 val) in rtc_write() function
226 rtc_write(rtc, OMAP_RTC_STATUS_REG, OMAP_RTC_STATUS_ALARM); in rtc_irq()
260 rtc_write(rtc, OMAP_RTC_INTERRUPTS_REG, reg); in omap_rtc_alarm_irq_enable()
262 rtc_write(rtc, OMAP_RTC_IRQWAKEEN, irqwake_reg); in omap_rtc_alarm_irq_enable()
327 rtc_write(rtc, OMAP_RTC_YEARS_REG, tm->tm_year); in omap_rtc_set_time()
328 rtc_write(rtc, OMAP_RTC_MONTHS_REG, tm->tm_mon); in omap_rtc_set_time()
329 rtc_write(rtc, OMAP_RTC_DAYS_REG, tm->tm_mday); in omap_rtc_set_time()
330 rtc_write(rtc, OMAP_RTC_HOURS_REG, tm->tm_hour); in omap_rtc_set_time()
331 rtc_write(rtc, OMAP_RTC_MINUTES_REG, tm->tm_min); in omap_rtc_set_time()
332 rtc_write(rtc, OMAP_RTC_SECONDS_REG, tm->tm_sec); in omap_rtc_set_time()
[all …]