Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/rtc/
Drtc-v3020.c187 static void v3020_set_reg(struct v3020 *chip, unsigned char address, in v3020_set_reg() function
237 v3020_set_reg(chip, V3020_CMD_CLOCK2RAM, 0); in v3020_read_time()
281 v3020_set_reg(chip, V3020_SECONDS, bin2bcd(dt->tm_sec)); in v3020_set_time()
282 v3020_set_reg(chip, V3020_MINUTES, bin2bcd(dt->tm_min)); in v3020_set_time()
283 v3020_set_reg(chip, V3020_HOURS, bin2bcd(dt->tm_hour)); in v3020_set_time()
284 v3020_set_reg(chip, V3020_MONTH_DAY, bin2bcd(dt->tm_mday)); in v3020_set_time()
285 v3020_set_reg(chip, V3020_MONTH, bin2bcd(dt->tm_mon + 1)); in v3020_set_time()
286 v3020_set_reg(chip, V3020_WEEK_DAY, bin2bcd(dt->tm_wday)); in v3020_set_time()
287 v3020_set_reg(chip, V3020_YEAR, bin2bcd(dt->tm_year % 100)); in v3020_set_time()
290 v3020_set_reg(chip, V3020_CMD_RAM2CLOCK, 0); in v3020_set_time()
[all …]