Home
last modified time | relevance | path

Searched refs:sirfsoc_timer_base (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/clocksource/
Dtimer-prima2.c56 static void __iomem *sirfsoc_timer_base; variable
63 WARN_ON(!(readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_STATUS) & in sirfsoc_timer_interrupt()
67 writel_relaxed(BIT(0), sirfsoc_timer_base + SIRFSOC_TIMER_STATUS); in sirfsoc_timer_interrupt()
81 sirfsoc_timer_base + SIRFSOC_TIMER_LATCH); in sirfsoc_timer_read()
82 cycles = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_HI); in sirfsoc_timer_read()
84 readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO); in sirfsoc_timer_read()
95 sirfsoc_timer_base + SIRFSOC_TIMER_LATCH); in sirfsoc_timer_set_next_event()
96 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO); in sirfsoc_timer_set_next_event()
98 writel_relaxed(next, sirfsoc_timer_base + SIRFSOC_TIMER_MATCH_0); in sirfsoc_timer_set_next_event()
100 sirfsoc_timer_base + SIRFSOC_TIMER_LATCH); in sirfsoc_timer_set_next_event()
[all …]
Dtimer-atlas7.c54 static void __iomem *sirfsoc_timer_base; variable
59 writel_relaxed(readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_32COUNTER_0_CTRL + 4 * idx) & ~0x7, in sirfsoc_timer_count_disable()
60 sirfsoc_timer_base + SIRFSOC_TIMER_32COUNTER_0_CTRL + 4 * idx); in sirfsoc_timer_count_disable()
66 writel_relaxed(readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_32COUNTER_0_CTRL + 4 * idx) | 0x3, in sirfsoc_timer_count_enable()
67 sirfsoc_timer_base + SIRFSOC_TIMER_32COUNTER_0_CTRL + 4 * idx); in sirfsoc_timer_count_enable()
77 writel_relaxed(BIT(cpu), sirfsoc_timer_base + SIRFSOC_TIMER_INTR_STATUS); in sirfsoc_timer_interrupt()
92 writel_relaxed((readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_64COUNTER_CTRL) | in sirfsoc_timer_read()
93 BIT(0)) & ~BIT(1), sirfsoc_timer_base + SIRFSOC_TIMER_64COUNTER_CTRL); in sirfsoc_timer_read()
95 cycles = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_64COUNTER_RLATCHED_HI); in sirfsoc_timer_read()
96 cycles = (cycles << 32) | readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_64COUNTER_RLATCHED_LO); in sirfsoc_timer_read()
[all …]