Lines Matching refs:mtu_base
26 void __iomem *mtu_base; /* Assigned by machine code */ variable
40 return -readl(mtu_base + MTU_VAL(0)); in nmdk_read_timer()
62 if (unlikely(!mtu_base)) in sched_clock()
65 cyc = -readl(mtu_base + MTU_VAL(0)); in sched_clock()
71 u32 cyc = -readl(mtu_base + MTU_VAL(0)); in nomadik_update_sched_clock()
87 cr = readl(mtu_base + MTU_CR(1)); in nmdk_clkevt_mode()
88 writel(0, mtu_base + MTU_LR(1)); in nmdk_clkevt_mode()
89 writel(cr | MTU_CRn_ENA, mtu_base + MTU_CR(1)); in nmdk_clkevt_mode()
90 writel(1 << 1, mtu_base + MTU_IMSC); in nmdk_clkevt_mode()
95 writel(0, mtu_base + MTU_IMSC); in nmdk_clkevt_mode()
97 cr = readl(mtu_base + MTU_CR(1)); in nmdk_clkevt_mode()
99 writel(cr, mtu_base + MTU_CR(1)); in nmdk_clkevt_mode()
101 writel(0xffffffff, mtu_base + MTU_LR(1)); in nmdk_clkevt_mode()
111 writel(evt, mtu_base + MTU_LR(1)); in nmdk_clkevt_next()
130 writel(1 << 1, mtu_base + MTU_ICR); /* Interrupt clear reg */ in nmdk_timer_interrupt()
170 writel(cr, mtu_base + MTU_CR(0)); in nmdk_timer_init()
171 writel(0, mtu_base + MTU_LR(0)); in nmdk_timer_init()
172 writel(0, mtu_base + MTU_BGLR(0)); in nmdk_timer_init()
173 writel(cr | MTU_CRn_ENA, mtu_base + MTU_CR(0)); in nmdk_timer_init()
188 writel(cr | MTU_CRn_ONESHOT, mtu_base + MTU_CR(1)); /* off, currently */ in nmdk_timer_init()