Lines Matching refs:sirfsoc_timer_base
55 static void __iomem *sirfsoc_timer_base;
62 WARN_ON(!(readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_STATUS) &
66 writel_relaxed(BIT(0), sirfsoc_timer_base + SIRFSOC_TIMER_STATUS);
80 sirfsoc_timer_base + SIRFSOC_TIMER_LATCH);
81 cycles = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_HI);
83 readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO);
94 sirfsoc_timer_base + SIRFSOC_TIMER_LATCH);
95 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO);
97 writel_relaxed(next, sirfsoc_timer_base + SIRFSOC_TIMER_MATCH_0);
99 sirfsoc_timer_base + SIRFSOC_TIMER_LATCH);
100 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO);
107 u32 val = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_INT_EN);
110 sirfsoc_timer_base + SIRFSOC_TIMER_INT_EN);
116 u32 val = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_INT_EN);
118 writel_relaxed(val | BIT(0), sirfsoc_timer_base + SIRFSOC_TIMER_INT_EN);
127 sirfsoc_timer_base + SIRFSOC_TIMER_LATCH);
131 readl_relaxed(sirfsoc_timer_base +
141 sirfsoc_timer_base + sirfsoc_timer_reg_list[i]);
144 sirfsoc_timer_base + SIRFSOC_TIMER_COUNTER_LO);
146 sirfsoc_timer_base + SIRFSOC_TIMER_COUNTER_HI);
208 sirfsoc_timer_base = of_iomap(np, 0);
209 if (!sirfsoc_timer_base) {
217 sirfsoc_timer_base + SIRFSOC_TIMER_DIV);
218 writel_relaxed(0, sirfsoc_timer_base + SIRFSOC_TIMER_COUNTER_LO);
219 writel_relaxed(0, sirfsoc_timer_base + SIRFSOC_TIMER_COUNTER_HI);
220 writel_relaxed(BIT(0), sirfsoc_timer_base + SIRFSOC_TIMER_STATUS);