Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/rtc/
Drtc-v3020.c168 static void v3020_set_reg(struct v3020 *chip, unsigned char address, in v3020_set_reg() function
218 v3020_set_reg(chip, V3020_CMD_CLOCK2RAM, 0); in v3020_read_time()
262 v3020_set_reg(chip, V3020_SECONDS, bin2bcd(dt->tm_sec)); in v3020_set_time()
263 v3020_set_reg(chip, V3020_MINUTES, bin2bcd(dt->tm_min)); in v3020_set_time()
264 v3020_set_reg(chip, V3020_HOURS, bin2bcd(dt->tm_hour)); in v3020_set_time()
265 v3020_set_reg(chip, V3020_MONTH_DAY, bin2bcd(dt->tm_mday)); in v3020_set_time()
266 v3020_set_reg(chip, V3020_MONTH, bin2bcd(dt->tm_mon + 1)); in v3020_set_time()
267 v3020_set_reg(chip, V3020_WEEK_DAY, bin2bcd(dt->tm_wday)); in v3020_set_time()
268 v3020_set_reg(chip, V3020_YEAR, bin2bcd(dt->tm_year % 100)); in v3020_set_time()
271 v3020_set_reg(chip, V3020_CMD_RAM2CLOCK, 0); in v3020_set_time()
[all …]