Lines Matching refs:gpt_base
66 static __iomem void *gpt_base; variable
80 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
86 writew(0xFFFF, gpt_base + LOAD(CLKSRC)); in spear_clocksource_init()
88 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init()
91 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
94 clocksource_mmio_init(gpt_base + COUNT(CLKSRC), "tmr1", tick_rate, in spear_clocksource_init()
113 val = readw(gpt_base + CR(CLKEVT)); in clockevent_set_mode()
115 writew(val, gpt_base + CR(CLKEVT)); in clockevent_set_mode()
121 writew(period, gpt_base + LOAD(CLKEVT)); in clockevent_set_mode()
123 val = readw(gpt_base + CR(CLKEVT)); in clockevent_set_mode()
126 writew(val, gpt_base + CR(CLKEVT)); in clockevent_set_mode()
130 val = readw(gpt_base + CR(CLKEVT)); in clockevent_set_mode()
132 writew(val, gpt_base + CR(CLKEVT)); in clockevent_set_mode()
149 u16 val = readw(gpt_base + CR(CLKEVT)); in clockevent_next_event()
152 writew(val & ~CTRL_ENABLE, gpt_base + CR(CLKEVT)); in clockevent_next_event()
154 writew(cycles, gpt_base + LOAD(CLKEVT)); in clockevent_next_event()
157 writew(val, gpt_base + CR(CLKEVT)); in clockevent_next_event()
166 writew(INT_STATUS, gpt_base + IR(CLKEVT)); in spear_timer_interrupt()
184 writew(CTRL_PRESCALER16, gpt_base + CR(CLKEVT)); in spear_clockevent_init()
218 gpt_base = of_iomap(np, 0); in spear_setup_of_timer()
219 if (!gpt_base) { in spear_setup_of_timer()
244 iounmap(gpt_base); in spear_setup_of_timer()