| /rk3399_rockchip-uboot/drivers/rtc/ |
| H A D | ds1307.c | 128 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 139 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 152 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 167 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set() 196 tmp.tm_min = 0; in rtc_reset() 203 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset() 238 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_set() 248 buf[RTC_MIN_REG_ADDR] = bin2bcd(tm->tm_min); in ds1307_rtc_set() 303 tm->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F); in ds1307_rtc_get() 316 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_get() [all …]
|
| H A D | rs5c372.c | 122 dt->tm_min = bcd2bin(buf[2]); in rs5c372_convert_to_time() 148 printf("rs5c372_convert_to_time: min = %d\n", dt->tm_min); in rs5c372_convert_to_time() 201 printf("rtc_set: tm_min = %d\n", tmp->tm_min); in rtc_set() 215 buf[2] = bin2bcd(tmp->tm_min); in rtc_set() 269 tmp.tm_min = 0; in rtc_reset() 276 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
|
| H A D | rx8025.c | 120 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 135 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 147 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 157 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set() 186 tmp.tm_min = 0; in rtc_reset() 193 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
|
| H A D | max6900.c | 68 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 79 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 89 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 99 rtc_write (0x82, bin2bcd(tmp->tm_min )); in rtc_set()
|
| H A D | sandbox_rtc.c | 21 time->tm_min = dm_i2c_reg_read(dev, REG_MIN); in sandbox_rtc_get() 22 if (time->tm_min < 0) in sandbox_rtc_get() 23 return time->tm_min; in sandbox_rtc_get() 51 ret = dm_i2c_reg_write(dev, REG_MIN, time->tm_min); in sandbox_rtc_set()
|
| H A D | pcf8563.c | 55 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 66 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 77 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 87 rtc_write (0x03, bin2bcd(tmp->tm_min )); in rtc_set()
|
| H A D | davinci.c | 42 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get() 53 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 64 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 71 writel(bin2bcd(tmp->tm_min), &rtc->minutes); in rtc_set()
|
| H A D | m41t62.c | 68 tm->tm_min = bcd2bin(buf[M41T62_REG_MIN] & 0x7f); in rtc_get() 81 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 93 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set() 102 bin2bcd(tm->tm_min) | (buf[M41T62_REG_MIN] & ~0x7f); in rtc_set()
|
| H A D | pt7c4338.c | 90 tmp->tm_min = bcd2bin(min & 0x7F); in rtc_get() 100 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 110 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 117 rtc_write(RTC_MIN_REG_ADDR, bin2bcd(tmp->tm_min)); in rtc_set()
|
| H A D | m48t35ax.c | 56 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 67 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 79 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 94 rtc_write (0x02, bin2bcd(tmp->tm_min )); in rtc_set()
|
| H A D | x1205.c | 103 tm->tm_min = bcd2bin(buf[CCR_MIN]); in rtc_get() 114 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 127 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set() 130 buf[CCR_MIN] = bin2bcd(tm->tm_min); in rtc_set()
|
| H A D | ds1306.c | 84 tmp->tm_min = bcd2bin (soft_spi_read ()); /* Read minutes */ in rtc_get() 117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 153 soft_spi_send (bin2bcd (tmp->tm_min)); /* Send Minutes */ in rtc_set() 191 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 329 tmp->tm_min = bcd2bin (min & 0x7F); /* convert Minutes */ in rtc_get() 348 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 371 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 374 rtc_write (RTC_MINUTES, bin2bcd (tmp->tm_min)); in rtc_set()
|
| H A D | ds3231.c | 91 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 102 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 127 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
|
| H A D | isl1208.c | 87 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 98 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 110 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 121 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
|
| H A D | rv3029.c | 53 tmp->tm_min = bcd2bin( buf[RV3029C2_W_MINUTES] & 0x7f); in rtc_get() 73 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 85 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 92 buf[RV3029C2_W_MINUTES] = bin2bcd(tmp->tm_min); in rtc_set()
|
| H A D | m41t11.c | 87 tmp->tm_min = bcd2bin (data[RTC_MIN_ADDR] & 0x7F); in rtc_get() 117 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 128 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 131 data[RTC_MIN_ADDR] = bin2bcd(tmp->tm_min); in rtc_set()
|
| H A D | mcfrtc.c | 49 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 71 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 91 rtc->hourmin = (tmp->tm_hour << 8) | tmp->tm_min; in rtc_set()
|
| H A D | ds1337.c | 105 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 116 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 131 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 141 rtc_write (RTC_MIN_REG_ADDR, bin2bcd (tmp->tm_min)); in rtc_set()
|
| H A D | ds164x.c | 84 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get() 98 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 111 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 122 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
|
| H A D | ds1556.c | 85 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get() 100 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 111 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 122 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
|
| H A D | ds1374.c | 130 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_get() 145 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 196 tmp.tm_min = 0; in rtc_reset() 203 tmp.tm_hour, tmp.tm_min, tmp.tm_sec); in rtc_reset()
|
| H A D | ds174x.c | 82 tmp->tm_min = bcd2bin( min & 0x7F ); in rtc_get() 97 tmp->tm_hour, tmp->tm_min, tmp->tm_sec ); in rtc_get() 108 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 119 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
|
| H A D | pcf2127.c | 35 buf[i++] = bin2bcd(tm->tm_min); in pcf2127_rtc_set() 68 tm->tm_min = bcd2bin(buf[PCF2127_REG_MN] & 0x7F); in pcf2127_rtc_get() 81 tm->tm_hour, tm->tm_min, tm->tm_sec); in pcf2127_rtc_get()
|
| H A D | mk48t59.c | 109 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 124 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 137 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 150 rtc_write (RTC_MINUTES, bin2bcd(tmp->tm_min )); in rtc_set()
|
| H A D | m41t60.c | 157 tmp->tm_min = bcd2bin(data[RTC_MIN] & 0x7F); in rtc_get() 168 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_get() 182 tmp->tm_hour, tmp->tm_min, tmp->tm_sec); in rtc_set() 185 data[RTC_MIN] = (data[RTC_MIN] & 0X80) | (bin2bcd(tmp->tm_min) & 0X7F); in rtc_set()
|