| /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() 86 memset(&time, '\0', sizeof(time)); in dm_test_rtc_set_get() 87 time.tm_mday = 3; in dm_test_rtc_set_get() 88 time.tm_mon = 6; in dm_test_rtc_set_get() 90 time.tm_sec = 0; in dm_test_rtc_set_get() 91 time.tm_min = 18; in dm_test_rtc_set_get() 99 memset(&time, '\0', sizeof(time)); in dm_test_rtc_set_get() 101 time.tm_mon = 8; in dm_test_rtc_set_get() 103 time.tm_sec = 0; in dm_test_rtc_set_get() [all …]
|
| /u-boot/drivers/rtc/ |
| 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 | 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 | i2c_rtc_emul.c | 109 struct rtc_time time; in sandbox_i2c_rtc_prepare_read() local 116 plat->reg[REG_SEC] = time.tm_sec; in sandbox_i2c_rtc_prepare_read() 117 plat->reg[REG_MIN] = time.tm_min; in sandbox_i2c_rtc_prepare_read() 118 plat->reg[REG_HOUR] = time.tm_hour; in sandbox_i2c_rtc_prepare_read() 119 plat->reg[REG_MDAY] = time.tm_mday; in sandbox_i2c_rtc_prepare_read() 120 plat->reg[REG_MON] = time.tm_mon; in sandbox_i2c_rtc_prepare_read() 122 plat->reg[REG_WDAY] = time.tm_wday; in sandbox_i2c_rtc_prepare_read() 130 struct rtc_time time; in sandbox_i2c_rtc_complete_write() local 133 time.tm_sec = plat->reg[REG_SEC]; in sandbox_i2c_rtc_complete_write() 134 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 | armada38x.c | 104 u32 time; in armada38x_rtc_get() local 106 time = armada38x_rtc_read(rtc, RTC_TIME); in armada38x_rtc_get() 108 rtc_to_tm(time, tm); in armada38x_rtc_get() 133 unsigned long time; in armada38x_rtc_set() local 135 time = rtc_mktime(tm); in armada38x_rtc_set() 137 if (time > U32_MAX) in armada38x_rtc_set() 141 armada38x_rtc_write(time, rtc, RTC_TIME); in armada38x_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()
|
| /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 230 u64 time = 0; in efi_set_variable_int() local 284 time = var->time; in efi_set_variable_int() 313 &time); in efi_set_variable_int() 341 time); in efi_set_variable_int() 344 data_size, data, 0, NULL, time); in efi_set_variable_int()
|
| /u-boot/lib/ |
| A D | date.c | 100 struct rtc_time time; in mktime64() local 102 time.tm_year = year; in mktime64() 103 time.tm_mon = mon; in mktime64() 104 time.tm_mday = day; in mktime64() 105 time.tm_hour = hour; in mktime64() 106 time.tm_min = min; in mktime64() 107 time.tm_sec = sec; in mktime64() 109 return 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.
|
| /u-boot/test/py/tests/ |
| A D | test_sleep.py | 5 import time 36 tstart = time.time() 38 tend = time.time()
|
| A D | test_mmc_rd.py | 9 import time 265 tstart = time.time() 267 tend = time.time()
|
| /u-boot/include/ |
| A D | rtc.h | 34 int (*get)(struct udevice *dev, struct rtc_time *time); 45 int (*set)(struct udevice *dev, const struct rtc_time *time); 113 int dm_rtc_get(struct udevice *dev, struct rtc_time *time); 122 int dm_rtc_set(struct udevice *dev, struct rtc_time *time); 224 static inline int dm_rtc_get(struct udevice *dev, struct rtc_time *time) in dm_rtc_get() argument 229 static inline int dm_rtc_set(struct udevice *dev, struct rtc_time *time) in dm_rtc_set() argument 316 int rtc_calc_weekday(struct rtc_time *time); 329 void rtc_to_tm(u64 time_t, struct rtc_time *time); 342 time64_t rtc_mktime(const struct rtc_time *time);
|
| /u-boot/doc/device-tree-bindings/memory/ |
| A D | ti,gpmc-child.yaml | 30 description: Assertion time 34 description: Read deassertion time 38 description: Write deassertion time 43 description: Assertion time 47 description: Read deassertion time 68 description: Assertion time 72 description: Deassertion time 77 description: Assertion time 81 description: Deassertion time 92 # Access time and cycle time timings (in nanoseconds) corresponding to [all …]
|
| /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/drivers/ram/ |
| A D | imxrt_sdram.c | 273 | time->act2rw << SEMC_SDRAMCR1_ACT2RW_SHIFT in imxrt_sdram_init() 274 | time->rfrc << SEMC_SDRAMCR1_RFRC_SHIFT in imxrt_sdram_init() 275 | time->wrc << SEMC_SDRAMCR1_WRC_SHIFT in imxrt_sdram_init() 276 | time->ckeoff << SEMC_SDRAMCR1_CKEOFF_SHIFT in imxrt_sdram_init() 280 writel(time->srrc << SEMC_SDRAMCR2_SRRC_SHIFT in imxrt_sdram_init() 281 | time->ref2ref << SEMC_SDRAMCR2_REF2REF_SHIFT in imxrt_sdram_init() 282 | time->act2act << SEMC_SDRAMCR2_ACT2ACT_SHIFT in imxrt_sdram_init() 283 | time->ito << SEMC_SDRAMCR2_ITO_SHIFT, in imxrt_sdram_init() 286 writel(time->rebl << SEMC_SDRAMCR3_REBL_SHIFT in imxrt_sdram_init() 288 | time->rt << SEMC_SDRAMCR3_RT_SHIFT in imxrt_sdram_init() [all …]
|
| /u-boot/arch/riscv/dts/ |
| A D | jh7110-starfive-visionfive-2.dtsi | 95 i2c-sda-hold-time-ns = <300>; 96 i2c-sda-falling-time-ns = <510>; 97 i2c-scl-falling-time-ns = <510>; 105 i2c-sda-hold-time-ns = <300>; 106 i2c-sda-falling-time-ns = <510>; 107 i2c-scl-falling-time-ns = <510>; 115 i2c-sda-hold-time-ns = <300>; 116 i2c-sda-falling-time-ns = <510>; 117 i2c-scl-falling-time-ns = <510>; 125 i2c-sda-hold-time-ns = <300>; [all …]
|
| /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/doc/usage/cmd/ |
| A D | cyclic.rst | 24 cpu-time 25 Total time spent in this cyclic function. 40 function: cyclic_demo, cpu-time: 52906 us, frequency: 99.20 times/s
|
| /u-boot/doc/develop/ |
| A D | system_configuration.rst | 8 the world can be configured at run time and others must be done at build time. 9 In general run time configuration is preferred over build time configuration. 13 important consideration. Finally, run time configuration has additional overhead 14 both in terms of resource requirements and wall clock time. All of this means 22 #. Hardware based run time configuration. Examples of this include reading 30 the prefix ``CONFIG``. This is the primary method of build time 37 run time how to configure a feature that we have enabled via Kconfig. For 48 Dynamic run time configuration methods. 54 Details of how to use run time configuration based on :doc:`driver model 57 Static build time configuration methods [all …]
|
| /u-boot/test/py/ |
| A D | u_boot_spawn.py | 13 import time 161 tstart_s = time.time() 183 tnow_s = time.time() 233 time.sleep(0.1)
|