Home
last modified time | relevance | path

Searched refs:sctr (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/arch/arm/mach-imx/
H A Dsyscounter.c61 struct sctr_regs *sctr = (struct sctr_regs *)SCTR_BASE_ADDR; in timer_init() local
67 writel(freq, &sctr->cntfid0); in timer_init()
70 val = readl(&sctr->cntcr); in timer_init()
73 writel(val, &sctr->cntcr); in timer_init()
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dtimer.c57 struct sctr_regs *sctr = (struct sctr_regs *)SCTR_BASE_ADDR; in timer_init() local
62 writel(SYS_COUNTER_CTRL_ENABLE, &sctr->cntcr); in timer_init()
/openbmc/u-boot/arch/arm/mach-imx/imx8m/
H A Dsoc.c34 struct sctr_regs *sctr = (struct sctr_regs *)SYSCNT_CTRL_BASE_ADDR; in timer_init() local
35 unsigned long freq = readl(&sctr->cntfid0); in timer_init()
40 clrsetbits_le32(&sctr->cntcr, SC_CNTCR_FREQ0 | SC_CNTCR_FREQ1, in timer_init()