/u-boot/test/dm/ |
A D | rtc.c | 36 time->tm_mday, time->tm_mon, time->tm_year, in show_time() 37 time->tm_hour, time->tm_min, time->tm_sec); in show_time() 75 memset(&time, '\0', sizeof(time)); in dm_test_rtc_set_get() 76 time.tm_mday = 3; in dm_test_rtc_set_get() 77 time.tm_mon = 6; in dm_test_rtc_set_get() 79 time.tm_sec = 0; in dm_test_rtc_set_get() 80 time.tm_min = 18; in dm_test_rtc_set_get() 88 memset(&time, '\0', sizeof(time)); in dm_test_rtc_set_get() 90 time.tm_mon = 8; in dm_test_rtc_set_get() 92 time.tm_sec = 0; in dm_test_rtc_set_get() [all …]
|
/u-boot/drivers/rtc/ |
A D | sandbox_rtc.c | 25 time->tm_sec = buf[REG_SEC - REG_SEC]; in sandbox_rtc_get() 26 time->tm_min = buf[REG_MIN - REG_SEC]; in sandbox_rtc_get() 27 time->tm_hour = buf[REG_HOUR - REG_SEC]; in sandbox_rtc_get() 28 time->tm_mday = buf[REG_MDAY - REG_SEC]; in sandbox_rtc_get() 29 time->tm_mon = buf[REG_MON - REG_SEC]; in sandbox_rtc_get() 31 time->tm_wday = buf[REG_WDAY - REG_SEC]; in sandbox_rtc_get() 41 buf[REG_SEC - REG_SEC] = time->tm_sec; in sandbox_rtc_set() 42 buf[REG_MIN - REG_SEC] = time->tm_min; in sandbox_rtc_set() 43 buf[REG_HOUR - REG_SEC] = time->tm_hour; in sandbox_rtc_set() 44 buf[REG_MDAY - REG_SEC] = time->tm_mday; in sandbox_rtc_set() [all …]
|
A D | mvrtc.c | 24 u32 time; in __mv_rtc_get() local 28 time = readl(®s->time); in __mv_rtc_get() 34 if (time & MVRTC_HRFMT_MSK) { in __mv_rtc_get() 40 t->tm_sec = bcd2bin((time >> MVRTC_SEC_SFT) & MVRTC_SEC_MSK); in __mv_rtc_get() 41 t->tm_min = bcd2bin((time >> MVRTC_MIN_SFT) & MVRTC_MIN_MSK); in __mv_rtc_get() 43 t->tm_wday = bcd2bin((time >> MVRTC_DAY_SFT) & MVRTC_DAY_MSK); in __mv_rtc_get() 90 writel(time, ®s->time); in __mv_rtc_set() 110 u32 time; in __mv_rtc_reset() local 114 time = readl(®s->time); in __mv_rtc_reset() 115 sec = bcd2bin((time >> MVRTC_SEC_SFT) & MVRTC_SEC_MSK); in __mv_rtc_reset() [all …]
|
A D | i2c_rtc_emul.c | 128 struct rtc_time time; in sandbox_i2c_rtc_prepare_read() local 135 plat->reg[REG_SEC] = time.tm_sec; in sandbox_i2c_rtc_prepare_read() 136 plat->reg[REG_MIN] = time.tm_min; in sandbox_i2c_rtc_prepare_read() 137 plat->reg[REG_HOUR] = time.tm_hour; in sandbox_i2c_rtc_prepare_read() 138 plat->reg[REG_MDAY] = time.tm_mday; in sandbox_i2c_rtc_prepare_read() 139 plat->reg[REG_MON] = time.tm_mon; in sandbox_i2c_rtc_prepare_read() 141 plat->reg[REG_WDAY] = time.tm_wday; in sandbox_i2c_rtc_prepare_read() 149 struct rtc_time time; in sandbox_i2c_rtc_complete_write() local 152 time.tm_sec = plat->reg[REG_SEC]; in sandbox_i2c_rtc_complete_write() 153 time.tm_min = plat->reg[REG_MIN]; in sandbox_i2c_rtc_complete_write() [all …]
|
A D | mc13xxx-rtc.c | 14 u32 day1, day2, time; in rtc_get() local 26 ret = pmic_reg_read(p, REG_RTC_TIME, &time); in rtc_get() 36 tim = day1 * 86400 + time; in rtc_get() 48 u32 time, day; in rtc_set() local 53 time = rtc_mktime(rtc); in rtc_set() 54 day = time / 86400; in rtc_set() 55 time %= 86400; in rtc_set() 58 pmic_reg_write(p, REG_RTC_TIME, time); in rtc_set()
|
A D | emul_rtc.c | 29 static int emul_rtc_get(struct udevice *dev, struct rtc_time *time) in emul_rtc_get() argument 36 rtc_to_tm(now, time); in emul_rtc_get() 37 time->tm_isdst = priv->isdst; in emul_rtc_get() 42 static int emul_rtc_set(struct udevice *dev, const struct rtc_time *time) in emul_rtc_set() argument 46 if (time->tm_year < 1970) in emul_rtc_set() 49 priv->offset_us = rtc_mktime(time) * 1000000ULL - timer_get_us(); in emul_rtc_set() 51 if (time->tm_isdst > 0) in emul_rtc_set() 53 else if (time->tm_isdst < 0) in emul_rtc_set()
|
A D | mxsrtc.c | 39 int rtc_get(struct rtc_time *time) in rtc_get() argument 45 rtc_to_tm(secs, time); in rtc_get() 50 int rtc_set(struct rtc_time *time) in rtc_set() argument 54 secs = rtc_mktime(time); in rtc_set()
|
A D | mx27rtc.c | 18 int rtc_get(struct rtc_time *time) in rtc_get() argument 32 rtc_to_tm(sec, time); in rtc_get() 37 int rtc_set(struct rtc_time *time) in rtc_set() argument 42 sec = rtc_mktime(time); in rtc_set()
|
A D | ds1374.c | 137 unsigned long time; in rtc_set() local 147 time = rtc_mktime(tmp); in rtc_set() 149 DEBUGR ("Set RTC s since 1.1.1970: %ld (0x%02lx)\n", time, time); in rtc_set() 153 rtc_write_raw(RtcTodAddr[i], (unsigned char)(time & 0xff)); in rtc_set() 154 time = time >> 8; in rtc_set()
|
A D | Kconfig | 12 Enable drver model for real-time-clock drivers. The RTC uclass 21 Enable drver model for real-time-clock drivers. The RTC uclass 30 Enable drver model for real-time-clock drivers. The RTC uclass 71 used. The initial time may be provided via the environment variable 73 1970-01-01. If the environment variable is missing, the build time is 74 used to initialize the RTC. The time can be adjusted manually via the 76 with the time from a network time server. See CONFIG_CMD_SNTP and 77 CONFIG_BOOTP_NTPSERVER. The RTC time is advanced according to CPU 152 This is a widely used real-time clock chip originally by Motorola 153 and now available from NXP. It includes a battery-backed real-time [all …]
|
/u-boot/lib/efi_loader/ |
A D | efi_runtime.c | 249 if (!time) { in efi_get_time_boottime() 263 memset(time, 0, sizeof(*time)); in efi_get_time_boottime() 271 time->daylight = in efi_get_time_boottime() 276 time->daylight = 0; in efi_get_time_boottime() 303 return (!time || in efi_validate_time() 304 time->year < 1900 || time->year > 9999 || in efi_validate_time() 305 !time->month || time->month > 12 || !time->day || in efi_validate_time() 306 time->day > rtc_month_days(time->month - 1, time->year) || in efi_validate_time() 307 time->hour > 23 || time->minute > 59 || time->second > 59 || in efi_validate_time() 309 time->daylight & in efi_validate_time() [all …]
|
A D | efi_variable.c | 52 u32 *env_attr, u64 *time) in efi_variable_authenticate() argument 104 *time = new_time; in efi_variable_authenticate() 108 if (new_time <= *time) in efi_variable_authenticate() 184 *time = new_time; in efi_variable_authenticate() 201 u32 *env_attr, u64 *time) in efi_variable_authenticate() argument 229 u64 time = 0; in efi_set_variable_int() local 261 time = var->time; in efi_set_variable_int() 292 &time); in efi_set_variable_int() 321 time); in efi_set_variable_int() 324 data_size, data, 0, NULL, time); in efi_set_variable_int()
|
/u-boot/lib/ |
A D | date.c | 108 struct rtc_time time; in mktime64() local 110 time.tm_year = year; in mktime64() 111 time.tm_mon = mon; in mktime64() 112 time.tm_mday = day; in mktime64() 113 time.tm_hour = hour; in mktime64() 114 time.tm_min = min; in mktime64() 115 time.tm_sec = sec; in mktime64() 117 return (time64_t)rtc_mktime((const struct rtc_time *)&time); in mktime64()
|
/u-boot/doc/ |
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.
|
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
|
/u-boot/test/py/tests/ |
A D | test_sleep.py | 5 import time 36 tstart = time.time() 38 tend = time.time()
|
/u-boot/include/ |
A D | rtc.h | 33 int (*get)(struct udevice *dev, struct rtc_time *time); 44 int (*set)(struct udevice *dev, const struct rtc_time *time); 112 int dm_rtc_get(struct udevice *dev, struct rtc_time *time); 121 int dm_rtc_set(struct udevice *dev, struct rtc_time *time); 288 int rtc_calc_weekday(struct rtc_time *time); 301 void rtc_to_tm(u64 time_t, struct rtc_time *time); 314 unsigned long rtc_mktime(const struct rtc_time *time);
|
/u-boot/doc/device-tree-bindings/i2c/ |
A D | i2c-designware.txt | 25 time, named ICPU_CFG:TWI_DELAY in the datasheet. 27 - i2c-sda-hold-time-ns : should contain the SDA hold time in nanoseconds. 31 - i2c-scl-falling-time-ns : should contain the SCL falling time in nanoseconds. 34 - i2c-sda-falling-time-ns : should contain the SDA falling time in nanoseconds. 56 i2c-sda-hold-time-ns = <300>; 57 i2c-sda-falling-time-ns = <300>; 58 i2c-scl-falling-time-ns = <300>;
|
/u-boot/arch/arm/cpu/arm926ejs/mx27/ |
A D | timer.c | 52 static inline unsigned long long time_to_tick(unsigned long long time) in time_to_tick() argument 54 time *= CONFIG_MX27_CLK32; in time_to_tick() 55 do_div(time, CONFIG_SYS_HZ); in time_to_tick() 56 return time; in time_to_tick() 77 static inline unsigned long long time_to_tick(unsigned long long time) in time_to_tick() argument 79 return time * TICK_PER_TIME; in time_to_tick()
|
/u-boot/drivers/ram/ |
A D | imxrt_sdram.c | 264 | time->act2rw << SEMC_SDRAMCR1_ACT2RW_SHIFT in imxrt_sdram_init() 265 | time->rfrc << SEMC_SDRAMCR1_RFRC_SHIFT in imxrt_sdram_init() 266 | time->wrc << SEMC_SDRAMCR1_WRC_SHIFT in imxrt_sdram_init() 267 | time->ckeoff << SEMC_SDRAMCR1_CKEOFF_SHIFT in imxrt_sdram_init() 271 writel(time->srrc << SEMC_SDRAMCR2_SRRC_SHIFT in imxrt_sdram_init() 272 | time->ref2ref << SEMC_SDRAMCR2_REF2REF_SHIFT in imxrt_sdram_init() 273 | time->act2act << SEMC_SDRAMCR2_ACT2ACT_SHIFT in imxrt_sdram_init() 274 | time->ito << SEMC_SDRAMCR2_ITO_SHIFT, in imxrt_sdram_init() 277 writel(time->rebl << SEMC_SDRAMCR3_REBL_SHIFT in imxrt_sdram_init() 279 | time->rt << SEMC_SDRAMCR3_RT_SHIFT in imxrt_sdram_init() [all …]
|
/u-boot/tools/concurrencytest/ |
A D | README.md | 27 import time 37 time.sleep(0.5) 40 time.sleep(0.5) 43 time.sleep(0.5) 46 time.sleep(0.5)
|
A D | concurrencytest.py | 117 import time 123 time.sleep(0.5) 126 time.sleep(0.5) 129 time.sleep(0.5) 132 time.sleep(0.5)
|
/u-boot/doc/device-tree-bindings/video/ |
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
|
/u-boot/drivers/mmc/ |
A D | sh_mmcif.c | 188 long time; in sh_mmcif_single_read() local 202 if (time == 0 || host->sd_error != 0) in sh_mmcif_single_read() 214 if (time == 0 || host->sd_error != 0) in sh_mmcif_single_read() 224 long time; in sh_mmcif_multi_read() local 238 if (time == 0 || host->sd_error != 0) in sh_mmcif_multi_read() 253 long time; in sh_mmcif_single_write() local 266 if (time == 0 || host->sd_error != 0) in sh_mmcif_single_write() 279 if (time == 0 || host->sd_error != 0) in sh_mmcif_single_write() 289 long time; in sh_mmcif_multi_write() local 439 long time; in sh_mmcif_start_cmd() local [all …]
|
/u-boot/test/py/ |
A D | u_boot_spawn.py | 11 import time 138 tstart_s = time.time() 160 tnow_s = time.time() 201 time.sleep(0.1)
|