Home
last modified time | relevance | path

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

/linux/drivers/rtc/
H A Drtc-ds1307.c67 #define DS1307_REG_WDAY 0x03 /* 01-07 */ macro
247 !(regs[DS1307_REG_WDAY] & MCP794XX_BIT_OSCRUN)) { in ds1307_get_time()
304 t->tm_wday = fls(regs[DS1307_REG_WDAY] & 0x7f); in ds1307_get_time()
306 t->tm_wday = bcd2bin(regs[DS1307_REG_WDAY] & 0x07) - 1; in ds1307_get_time()
355 regs[DS1307_REG_WDAY] = 1 << t->tm_wday; in ds1307_set_time()
357 regs[DS1307_REG_WDAY] = bin2bcd(t->tm_wday + 1); in ds1307_set_time()
391 regs[DS1307_REG_WDAY] |= MCP794XX_BIT_VBATEN; in ds1307_set_time()
1914 !(regs[DS1307_REG_WDAY] & MCP794XX_BIT_VBATEN)) { in ds1307_probe()
1915 regmap_write(ds1307->regmap, DS1307_REG_WDAY, in ds1307_probe()
1916 regs[DS1307_REG_WDAY] | in ds1307_probe()