Searched refs:v3020_set_reg (Results 1 – 1 of 1) sorted by relevance
/Linux-v5.4/drivers/rtc/ |
D | rtc-v3020.c | 164 static void v3020_set_reg(struct v3020 *chip, unsigned char address, in v3020_set_reg() function 214 v3020_set_reg(chip, V3020_CMD_CLOCK2RAM, 0); in v3020_read_time() 258 v3020_set_reg(chip, V3020_SECONDS, bin2bcd(dt->tm_sec)); in v3020_set_time() 259 v3020_set_reg(chip, V3020_MINUTES, bin2bcd(dt->tm_min)); in v3020_set_time() 260 v3020_set_reg(chip, V3020_HOURS, bin2bcd(dt->tm_hour)); in v3020_set_time() 261 v3020_set_reg(chip, V3020_MONTH_DAY, bin2bcd(dt->tm_mday)); in v3020_set_time() 262 v3020_set_reg(chip, V3020_MONTH, bin2bcd(dt->tm_mon + 1)); in v3020_set_time() 263 v3020_set_reg(chip, V3020_WEEK_DAY, bin2bcd(dt->tm_wday)); in v3020_set_time() 264 v3020_set_reg(chip, V3020_YEAR, bin2bcd(dt->tm_year % 100)); in v3020_set_time() 267 v3020_set_reg(chip, V3020_CMD_RAM2CLOCK, 0); in v3020_set_time() [all …]
|