Home
last modified time | relevance | path

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

/linux-4.4.14/arch/arm/mach-spear/
Dtime.c66 static __iomem void *gpt_base; variable
78 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
84 writew(0xFFFF, gpt_base + LOAD(CLKSRC)); in spear_clocksource_init()
86 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init()
89 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
92 clocksource_mmio_init(gpt_base + COUNT(CLKSRC), "tmr1", tick_rate, in spear_clocksource_init()
98 u16 val = readw(gpt_base + CR(CLKEVT)); in timer_shutdown()
102 writew(val, gpt_base + CR(CLKEVT)); in timer_shutdown()
119 val = readw(gpt_base + CR(CLKEVT)); in spear_set_oneshot()
121 writew(val, gpt_base + CR(CLKEVT)); in spear_set_oneshot()
[all …]
/linux-4.4.14/drivers/clocksource/
Dmtk_timer.c58 void __iomem *gpt_base; member
80 val = readl(evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_stop()
81 writel(val & ~TIMER_CTRL_ENABLE, evt->gpt_base + in mtk_clkevt_time_stop()
88 writel(delay, evt->gpt_base + TIMER_CMP_REG(timer)); in mtk_clkevt_time_setup()
97 writel(GPT_IRQ_ACK(timer), evt->gpt_base + GPT_IRQ_ACK_REG); in mtk_clkevt_time_start()
99 val = readl(evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_start()
110 evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_start()
146 writel(GPT_IRQ_ACK(GPT_CLK_EVT), evt->gpt_base + GPT_IRQ_ACK_REG); in mtk_timer_interrupt()
156 evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_timer_setup()
159 evt->gpt_base + TIMER_CLK_REG(timer)); in mtk_timer_setup()
[all …]
/linux-4.4.14/arch/arm/mach-mediatek/
Dmediatek.c29 void __iomem *gpt_base; in mediatek_timer_init() local
35 gpt_base = ioremap(GPT6_CON_MT65xx, 0x04); in mediatek_timer_init()
38 writel(GPT_ENABLE, gpt_base); in mediatek_timer_init()
39 iounmap(gpt_base); in mediatek_timer_init()