Home
last modified time | relevance | path

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

/openbmc/linux/drivers/rtc/
H A Drtc-ds1307.c67 #define DS1307_REG_WDAY 0x03 /* 01-07 */ macro
299 t->tm_wday = fls(regs[DS1307_REG_WDAY] & 0x7f); in ds1307_get_time()
301 t->tm_wday = bcd2bin(regs[DS1307_REG_WDAY] & 0x07) - 1; in ds1307_get_time()
350 regs[DS1307_REG_WDAY] = 1 << t->tm_wday; in ds1307_set_time()
352 regs[DS1307_REG_WDAY] = bin2bcd(t->tm_wday + 1); in ds1307_set_time()
386 regs[DS1307_REG_WDAY] |= MCP794XX_BIT_VBATEN; in ds1307_set_time()
1909 !(regs[DS1307_REG_WDAY] & MCP794XX_BIT_VBATEN)) { in ds1307_probe()
1910 regmap_write(ds1307->regmap, DS1307_REG_WDAY, in ds1307_probe()
1911 regs[DS1307_REG_WDAY] | in ds1307_probe()