/u-boot/drivers/timer/ |
A D | rockchip_timer.c | 29 struct rk_timer *timer; member 37 timebase_l = readl(&timer->timer_curr_value0); in rockchip_timer_get_curr_value() 38 timebase_h = readl(&timer->timer_curr_value1); in rockchip_timer_get_curr_value() 56 rate = timer_get_rate(gd->timer); in timer_get_boot_us() 57 timer_get_count(gd->timer, &ticks); in timer_get_boot_us() 62 struct rk_timer *timer = NULL; in timer_get_boot_us() local 74 timer = (struct rk_timer *)ofnode_get_addr(node); in timer_get_boot_us() 106 priv->timer = dev_read_addr_ptr(dev); in rockchip_clk_of_to_plat() 107 if (!priv->timer) in rockchip_clk_of_to_plat() 128 writel(0, &priv->timer->timer_ctrl_reg); in rockchip_timer_start() [all …]
|
A D | Kconfig | 40 use an early timer. These functions must be supported by your timer 44 bool "AG101P timer support" 50 bool "Altera timer support" 61 associated with timer tick. 64 bool "ARC timer support" 128 int "x86 TSC timer frequency in MHz when used as the early timer" 147 bool "Omap timer support" 153 bool "RISC-V timer support" 174 bool "STi timer support" 181 bool "STM32 timer support" [all …]
|
A D | Makefile | 5 obj-y += timer-uclass.o 14 obj-$(CONFIG_DESIGNWARE_APB_TIMER) += dw-apb-timer.o 16 obj-$(CONFIG_NOMADIK_MTU_TIMER) += nomadik-mtu-timer.o 17 obj-$(CONFIG_OMAP_TIMER) += omap-timer.o 23 obj-$(CONFIG_STI_TIMER) += sti-timer.o 27 obj-$(CONFIG_MCHP_PIT64B_TIMER) += mchp-pit64b-timer.o
|
A D | mpc83xx_timer.c | 102 struct udevice *timer; in interrupt_init() local 107 ret = uclass_first_device_err(UCLASS_TIMER, &timer); in interrupt_init() 114 timer_priv = dev_get_priv(timer); in interrupt_init() 155 struct udevice *timer = gd->timer; in timer_interrupt() local 163 if (!timer) in timer_interrupt() 166 priv = dev_get_priv(timer); in timer_interrupt()
|
A D | nomadik-mtu-timer.c | 54 struct nomadik_mtu_timer_regs *timer; member 62 return timer_conv_64(~readl(&priv->timer->cv)); in nomadik_mtu_get_count() 78 priv->timer = mtu->timers; /* Use first timer */ in nomadik_mtu_probe() 92 writel(MTU_CR_ENABLE | prescale | MTU_CR_32BITS, &priv->timer->cr); in nomadik_mtu_probe()
|
/u-boot/arch/arm/cpu/arm920t/ep93xx/ |
A D | timer.c | 33 } timer; variable 48 if (now >= timer.last_read) in read_timer() 49 timer.ticks += now - timer.last_read; in read_timer() 52 timer.ticks += TIMER_MAX_VAL - timer.last_read + now; in read_timer() 54 timer.last_read = now; in read_timer() 66 sys_ticks = timer.ticks * CONFIG_SYS_HZ; in get_ticks() 83 target = timer.ticks + usecs_to_ticks(usec); in __udelay() 85 while (timer.ticks < target) in __udelay() 105 timer.ticks = 0; in timer_init()
|
/u-boot/arch/arm/mach-lpc32xx/ |
A D | timer.c | 27 static void lpc32xx_timer_reset(struct timer_regs *timer, u32 freq) in lpc32xx_timer_reset() argument 29 writel(TIMER_TCR_COUNTER_RESET, &timer->tcr); in lpc32xx_timer_reset() 30 writel(TIMER_TCR_COUNTER_DISABLE, &timer->tcr); in lpc32xx_timer_reset() 31 writel(0, &timer->tc); in lpc32xx_timer_reset() 32 writel(0, &timer->pr); in lpc32xx_timer_reset() 35 writel(TIMER_CTCR_MODE_TIMER, &timer->ctcr); in lpc32xx_timer_reset() 38 writel((get_periph_clk_rate() / freq) - 1, &timer->pr); in lpc32xx_timer_reset() 41 writel(0, &timer->mcr); in lpc32xx_timer_reset() 44 static void lpc32xx_timer_count(struct timer_regs *timer, int enable) in lpc32xx_timer_count() argument 47 writel(TIMER_TCR_COUNTER_ENABLE, &timer->tcr); in lpc32xx_timer_count() [all …]
|
/u-boot/doc/device-tree-bindings/timer/ |
A D | arc_timer.txt | 5 - compatible : should be "snps,arc-timer". 6 - reg : Specifies timer ID, could be either 0 or 1. 11 timer@0 { 12 compatible = "snps,arc-timer"; 17 timer@1 { 18 compatible = "snps,arc-timer"; 24 as each timer is driven by the same core clock.
|
A D | atcpit100_timer.txt | 1 Andestech ATCPIT100 timer 6 This timer is a set of compact multi-function timers, which can be 10 multi-function timer and provide the following usage scenarios: 11 One 32-bit timer 15 One 16-bit timer and one 8-bit PWM 16 Two 8-bit timer and one 8-bit PWM 21 - interrupts : Reference to the timer interrupt 22 - clock-frequency : The rate in HZ in input of the Andestech ATCPIT100 timer 26 timer0: timer@f0400000 {
|
A D | altera_timer.txt | 5 - compatible : should be "altr,timer-1.0" 8 - interrupts : Should contain the timer interrupt number 13 timer { 14 compatible = "altr,timer-1.0";
|
A D | sandbox_timer.txt | 1 Sandbox timer 3 The sandbox timer device is an emulated device which gets time from 7 compatible: "sandbox,timer"
|
A D | fsl,mpc83xx-timer.txt | 1 MPC83xx timer devices 7 - compatible: must be "fsl,mpc83xx-timer" 18 timer { 19 compatible = "fsl,mpc83xx-timer";
|
/u-boot/arch/arm/mach-rmobile/ |
A D | timer.c | 23 u64 timer; in get_cpu_global_timer() local 35 timer = high; in get_cpu_global_timer() 36 return (u64)((timer << 32) | low); in get_cpu_global_timer() 41 u64 timer = get_cpu_global_timer(); in get_time_us() local 43 timer = ((timer << 2) + (CLK2MHZ(CONFIG_SYS_CPU_CLK) >> 1)); in get_time_us() 44 do_div(timer, CLK2MHZ(CONFIG_SYS_CPU_CLK)); in get_time_us() 45 return timer; in get_time_us()
|
/u-boot/drivers/watchdog/ |
A D | Kconfig | 51 bool "Designware watchdog timer support" 99 bool "AT91 watchdog timer support" 106 bool "BCM6345 watchdog timer support" 115 bool "Cadence watchdog timer support" 131 bool "MPC8xx watchdog timer support" 152 bool "MediaTek watchdog timer support" 170 bool "TI OMAP watchdog timer support" 178 bool "Orion watchdog timer support" 201 bool "SBSA watchdog timer support" 210 bool "SP805 watchdog timer support" [all …]
|
/u-boot/arch/arm/mach-davinci/ |
A D | timer.c | 34 static struct davinci_timer * const timer = variable 44 writel(0x0, &timer->tcr); in timer_init() 45 writel(0x0, &timer->tgcr); in timer_init() 46 writel(0x06 | ((TIM_CLK_DIV - 1) << 8), &timer->tgcr); in timer_init() 47 writel(0x0, &timer->tim34); in timer_init() 48 writel(TIMER_LOAD_VAL, &timer->prd34); in timer_init() 49 writel(2 << 22, &timer->tcr); in timer_init() 61 unsigned long now = readl(&timer->tim34); in get_ticks()
|
/u-boot/arch/arm/cpu/armv7/sunxi/ |
A D | timer.c | 39 struct sunxi_timer *timer = &timers->timer[TIMER_NUM]; in read_timer() local 45 return ~readl(&timer->val); in read_timer() 53 struct sunxi_timer *timer = &timers->timer[TIMER_NUM]; in timer_init() local 54 writel(TIMER_LOAD_VAL, &timer->inter); in timer_init() 56 &timer->ctl); in timer_init()
|
/u-boot/arch/arm/cpu/armv7/s5p-common/ |
A D | timer.c | 44 struct s5p_timer *const timer = s5p_get_base_timer(); in timer_get_us_down() local 46 return readl(&timer->tcnto4); in timer_get_us_down() 93 struct s5p_timer *const timer = in timer_get_us() local 95 unsigned long now_downward_us = readl(&timer->tcnto4); in timer_get_us() 116 struct s5p_timer *const timer = s5p_get_base_timer(); in reset_timer_masked() local 119 gd->arch.lastinc = readl(&timer->tcnto4); in reset_timer_masked()
|
/u-boot/cmd/ |
A D | clone.c | 22 unsigned long timer; in do_clone() local 77 timer = get_timer(0); in do_clone() 113 timer = get_timer(timer); in do_clone() 114 timer = 1000 * timer / CONFIG_SYS_HZ; in do_clone() 117 printf("%ldms, %ldkB/s\n", timer, wrcnt / timer); in do_clone()
|
/u-boot/arch/arm/dts/ |
A D | stm32f746.dtsi | 42 timer2: timer@40000000 { 65 timer@1 { 95 timer@2 { 125 timer@3 { 154 timer@4 { 178 timer@5 { 202 timer@6 { 224 timer@11 { 395 timer@0 { 417 timer@7 { [all …]
|
A D | stm32f429.dtsi | 55 timer2: timer@40000000 { 78 timer@1 { 108 timer@2 { 138 timer@3 { 167 timer@4 { 191 timer@5 { 215 timer@6 { 237 timer@11 { 431 timer@0 { 453 timer@7 { [all …]
|
A D | omap3.dtsi | 596 ti,timer-alwon; 625 ti,timer-dsp; 633 ti,timer-dsp; 641 ti,timer-dsp; 649 ti,timer-pwm; 650 ti,timer-dsp; 658 ti,timer-pwm; 666 ti,timer-pwm; 674 ti,timer-pwm; 682 ti,timer-alwon; [all …]
|
A D | am4372.dtsi | 217 compatible = "ti,am4372-timer-1ms","ti,am335x-timer-1ms"; 225 compatible = "ti,am4372-timer","ti,am335x-timer"; 232 compatible = "ti,am4372-timer","ti,am335x-timer"; 240 compatible = "ti,am4372-timer","ti,am335x-timer"; 249 compatible = "ti,am4372-timer","ti,am335x-timer"; 258 compatible = "ti,am4372-timer","ti,am335x-timer"; 267 compatible = "ti,am4372-timer","ti,am335x-timer"; 276 compatible = "ti,am4372-timer","ti,am335x-timer"; 284 compatible = "ti,am4372-timer","ti,am335x-timer"; 292 compatible = "ti,am4372-timer","ti,am335x-timer"; [all …]
|
A D | omap5-l4-abe.dtsi | 297 timer5: timer@0 { 304 ti,timer-dsp; 305 ti,timer-pwm; 328 timer6: timer@0 { 335 ti,timer-dsp; 336 ti,timer-pwm; 359 timer7: timer@0 { 366 ti,timer-dsp; 389 timer8: timer@0 { 396 ti,timer-dsp; [all …]
|
/u-boot/arch/x86/dts/ |
A D | tsc_timer.dtsi | 2 tsc-timer { 3 compatible = "x86,tsc-timer";
|
/u-boot/arch/powerpc/dts/ |
A D | qoriq-mpic.dtsi | 18 timer@41100 { 19 compatible = "fsl,mpic-global-timer"; 72 timer@42100 { 73 compatible = "fsl,mpic-global-timer";
|