| /rk3399_rockchip-uboot/drivers/rtc/ |
| H A D | sandbox_rtc.c | 16 static int sandbox_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_rtc_get() argument 18 time->tm_sec = dm_i2c_reg_read(dev, REG_SEC); in sandbox_rtc_get() 19 if (time->tm_sec < 0) in sandbox_rtc_get() 20 return time->tm_sec; in sandbox_rtc_get() 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() 24 time->tm_hour = dm_i2c_reg_read(dev, REG_HOUR); in sandbox_rtc_get() 25 if (time->tm_hour < 0) in sandbox_rtc_get() 26 return time->tm_hour; in sandbox_rtc_get() [all …]
|
| H A D | mvrtc.c | 23 u32 time; in rtc_get() local 30 time = readl(&mvrtc_regs->time); in rtc_get() 36 if (time & MVRTC_HRFMT_MSK) { in rtc_get() 42 t->tm_sec = bcd2bin((time >> MVRTC_SEC_SFT) & MVRTC_SEC_MSK); in rtc_get() 43 t->tm_min = bcd2bin((time >> MVRTC_MIN_SFT) & MVRTC_MIN_MSK); in rtc_get() 44 t->tm_hour = bcd2bin((time >> MVRTC_HOUR_SFT) & MVRTC_HOUR_MSK); in rtc_get() 45 t->tm_wday = bcd2bin((time >> MVRTC_DAY_SFT) & MVRTC_DAY_MSK); in rtc_get() 63 u32 time = 0; /* sets hour format bit to zero, 24hr format. */ in rtc_set() local 74 time |= (bin2bcd(t->tm_sec) & MVRTC_SEC_MSK) << MVRTC_SEC_SFT; in rtc_set() 75 time |= (bin2bcd(t->tm_min) & MVRTC_MIN_MSK) << MVRTC_MIN_SFT; in rtc_set() [all …]
|
| H A D | i2c_rtc_emul.c | 89 static int sandbox_i2c_rtc_get(struct udevice *dev, struct rtc_time *time) in sandbox_i2c_rtc_get() argument 102 return rtc_to_tm(now + plat->offset, time); in sandbox_i2c_rtc_get() 105 static int sandbox_i2c_rtc_set(struct udevice *dev, const struct rtc_time *time) in sandbox_i2c_rtc_set() argument 117 plat->offset = rtc_mktime(time) - now; in sandbox_i2c_rtc_set() 126 struct rtc_time time; in sandbox_i2c_rtc_prepare_read() local 129 ret = sandbox_i2c_rtc_get(emul, &time); in sandbox_i2c_rtc_prepare_read() 133 plat->reg[REG_SEC] = time.tm_sec; in sandbox_i2c_rtc_prepare_read() 134 plat->reg[REG_MIN] = time.tm_min; in sandbox_i2c_rtc_prepare_read() 135 plat->reg[REG_HOUR] = time.tm_hour; in sandbox_i2c_rtc_prepare_read() 136 plat->reg[REG_MDAY] = time.tm_mday; in sandbox_i2c_rtc_prepare_read() [all …]
|
| H A D | mc13xxx-rtc.c | 15 u32 day1, day2, time; in rtc_get() local 27 ret = pmic_reg_read(p, REG_RTC_TIME, &time); in rtc_get() 37 tim = day1 * 86400 + time; in rtc_get() 49 u32 time, day; in rtc_set() local 54 time = rtc_mktime(rtc); in rtc_set() 55 day = time / 86400; in rtc_set() 56 time %= 86400; in rtc_set() 59 pmic_reg_write(p, REG_RTC_TIME, time); in rtc_set()
|
| H A D | mxsrtc.c | 40 int rtc_get(struct rtc_time *time) in rtc_get() argument 46 rtc_to_tm(secs, time); in rtc_get() 51 int rtc_set(struct rtc_time *time) in rtc_set() argument 55 secs = rtc_mktime(time); in rtc_set()
|
| H A D | ds1374.c | 140 unsigned long time; in rtc_set() local 150 time = rtc_mktime(tmp); in rtc_set() 152 DEBUGR ("Set RTC s since 1.1.1970: %ld (0x%02lx)\n", time, time); in rtc_set() 156 rtc_write_raw(RtcTodAddr[i], (unsigned char)(time & 0xff)); in rtc_set() 157 time = time >> 8; in rtc_set()
|
| H A D | mx27rtc.c | 19 int rtc_get(struct rtc_time *time) in rtc_get() argument 33 rtc_to_tm(sec, time); in rtc_get() 38 int rtc_set(struct rtc_time *time) in rtc_set() argument 43 sec = rtc_mktime(time); in rtc_set()
|
| H A D | rtc-uclass.c | 13 int dm_rtc_get(struct udevice *dev, struct rtc_time *time) in dm_rtc_get() argument 20 return ops->get(dev, time); in dm_rtc_get() 23 int dm_rtc_set(struct udevice *dev, struct rtc_time *time) in dm_rtc_set() argument 30 return ops->set(dev, time); in dm_rtc_set()
|
| /rk3399_rockchip-uboot/test/dm/ |
| H A D | rtc.c | 29 static void show_time(const char *msg, struct rtc_time *time) in show_time() argument 32 time->tm_mday, time->tm_mon, time->tm_year, in show_time() 33 time->tm_hour, time->tm_min, time->tm_sec); in show_time() 36 static int cmp_times(struct rtc_time *expect, struct rtc_time *time, bool show) in cmp_times() argument 40 same = expect->tm_sec == time->tm_sec; in cmp_times() 41 same &= expect->tm_min == time->tm_min; in cmp_times() 42 same &= expect->tm_hour == time->tm_hour; in cmp_times() 43 same &= expect->tm_mday == time->tm_mday; in cmp_times() 44 same &= expect->tm_mon == time->tm_mon; in cmp_times() 45 same &= expect->tm_year == time->tm_year; in cmp_times() [all …]
|
| /rk3399_rockchip-uboot/doc/ |
| H A D | README.SNTP | 4 The "sntp" command gets network time from NTP time server and 7 "ntpserverip". The network time is sent as UTC. So if you want to 8 set local time to RTC, set the offset in second from UTC to the 9 environment variable "time offset". 11 If the DHCP server provides time server's IP or time offset, you 15 1. The roundtrip time is ignored.
|
| H A D | README.440-DDR-performance | 21 the *best* time for each is used. 33 Function Rate (MB/s) RMS time Min time Max time 62 the *best* time for each is used. 74 Function Rate (MB/s) RMS time Min time Max time
|
| H A D | README.i2c | 6 Clock-stretching and the arbitrary time that an I2C transaction can take 38 2. Waits a little bit for the other side to notice (slew time) 41 4. Otherwise, wait for a few milliseconds (retry time) and see if EC_CLAIM is 44 (retry time again) 45 6. Go back to 1 if things don't look wedged (wait time has expired) 53 - slew time 10 us 54 - retry time 3 ms 55 - wait time - 50ms
|
| /rk3399_rockchip-uboot/test/py/tests/ |
| H A D | test_sleep.py | 6 import time 16 tstart = time.time() 18 tend = time.time()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | rtc.h | 32 int (*get)(struct udevice *dev, struct rtc_time *time); 43 int (*set)(struct udevice *dev, const struct rtc_time *time); 94 int dm_rtc_get(struct udevice *dev, struct rtc_time *time); 103 int dm_rtc_set(struct udevice *dev, struct rtc_time *time); 237 int rtc_calc_weekday(struct rtc_time *time); 251 int rtc_to_tm(int time_t, struct rtc_time *time); 264 unsigned long rtc_mktime(const struct rtc_time *time);
|
| /rk3399_rockchip-uboot/arch/arm/cpu/arm926ejs/mx27/ |
| H A D | timer.c | 48 static inline unsigned long long time_to_tick(unsigned long long time) in time_to_tick() argument 50 time *= CONFIG_MX27_CLK32; in time_to_tick() 51 do_div(time, CONFIG_SYS_HZ); in time_to_tick() 52 return time; in time_to_tick() 73 static inline unsigned long long time_to_tick(unsigned long long time) in time_to_tick() argument 75 return time * TICK_PER_TIME; in time_to_tick()
|
| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | sh_mmcif.c | 180 long time; in sh_mmcif_single_read() local 193 time = mmcif_wait_interrupt_flag(host); in sh_mmcif_single_read() 194 if (time == 0 || host->sd_error != 0) in sh_mmcif_single_read() 205 time = mmcif_wait_interrupt_flag(host); in sh_mmcif_single_read() 206 if (time == 0 || host->sd_error != 0) in sh_mmcif_single_read() 216 long time; in sh_mmcif_multi_read() local 229 time = mmcif_wait_interrupt_flag(host); in sh_mmcif_multi_read() 230 if (time == 0 || host->sd_error != 0) in sh_mmcif_multi_read() 245 long time; in sh_mmcif_single_write() local 257 time = mmcif_wait_interrupt_flag(host); in sh_mmcif_single_write() [all …]
|
| H A D | sh_sdhi.c | 272 long time; in sh_sdhi_single_read() local 290 time = sh_sdhi_wait_interrupt_flag(host); in sh_sdhi_single_read() 291 if (time == 0 || host->sd_error != 0) in sh_sdhi_single_read() 303 time = sh_sdhi_wait_interrupt_flag(host); in sh_sdhi_single_read() 304 if (time == 0 || host->sd_error != 0) in sh_sdhi_single_read() 313 long time; in sh_sdhi_multi_read() local 333 time = sh_sdhi_wait_interrupt_flag(host); in sh_sdhi_multi_read() 334 if (time == 0 || host->sd_error != 0) in sh_sdhi_multi_read() 353 long time; in sh_sdhi_single_write() local 375 time = sh_sdhi_wait_interrupt_flag(host); in sh_sdhi_single_write() [all …]
|
| /rk3399_rockchip-uboot/lib/efi_loader/ |
| H A D | efi_runtime.c | 94 struct efi_time *time, in efi_get_time_boottime() argument 102 EFI_ENTRY("%p %p", time, capabilities); in efi_get_time_boottime() 112 memset(time, 0, sizeof(*time)); in efi_get_time_boottime() 113 time->year = tm.tm_year; in efi_get_time_boottime() 114 time->month = tm.tm_mon; in efi_get_time_boottime() 115 time->day = tm.tm_mday; in efi_get_time_boottime() 116 time->hour = tm.tm_hour; in efi_get_time_boottime() 117 time->minute = tm.tm_min; in efi_get_time_boottime() 118 time->daylight = tm.tm_isdst; in efi_get_time_boottime() 142 struct efi_time *time, in efi_get_time() argument
|
| /rk3399_rockchip-uboot/doc/device-tree-bindings/video/ |
| H A D | intel-gma.txt | 15 - intel,panel-power-cycle-delay : T4 time sequence (6 = 500ms) 18 - intel,panel-power-up-delay : T1+T2 time sequence 19 - intel,panel-power-down-delay : T3 time sequence 20 - intel,panel-power-backlight-on-delay : T5 time sequence 21 - intel,panel-power-backlight-off-delay : Tx time sequence
|
| H A D | atmel-hlcdc.txt | 13 - atmel,guard-time: lcd guard time (Delay in frame periods). 24 atmel,guard-time = <1>;
|
| /rk3399_rockchip-uboot/test/py/ |
| H A D | u_boot_spawn.py | 12 import time 142 tstart_s = time.time() 164 tnow_s = time.time() 205 time.sleep(0.1)
|
| /rk3399_rockchip-uboot/fs/ |
| H A D | fs.c | 520 unsigned long time; in do_load() local 560 time = get_timer(0); in do_load() 562 time = get_timer(time); in do_load() 566 printf("%llu bytes read in %lu ms", len_read, time); in do_load() 567 if (time > 0) { in do_load() 569 print_size(div_u64(len_read, time) * 1000, "/s"); in do_load() 615 unsigned long time; in do_save() local 631 time = get_timer(0); in do_save() 633 time = get_timer(time); in do_save() 637 printf("%llu bytes written in %lu ms", len, time); in do_save() [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | imagetool.c | 128 time_t time = (time_t) strtol(source_date_epoch, NULL, 10); in imagetool_get_source_date() local 130 if (gmtime(&time) == NULL) { in imagetool_get_source_date() 133 time = 0; in imagetool_get_source_date() 136 return time; in imagetool_get_source_date()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | fb_common.c | 34 ulong time = get_timer(*start); in timed_send_info() local 36 if (time >= 30000) { in timed_send_info()
|
| /rk3399_rockchip-uboot/drivers/spi/ |
| H A D | ath79_spi.c | 141 u64 time; in ath79_spi_set_speed() local 153 time = get_tbclk(); in ath79_spi_set_speed() 154 do_div(time, speed / 2); in ath79_spi_set_speed() 157 if (time > val) in ath79_spi_set_speed() 158 priv->rrw_delay = time - val + 1; in ath79_spi_set_speed()
|