Home
last modified time | relevance | path

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

/openbmc/linux/arch/arm/mach-spear/
H A Dtime.c63 static __iomem void *gpt_base; variable
83 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init()
86 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
99 writew(val, gpt_base + CR(CLKEVT)); in spear_timer_shutdown()
116 val = readw(gpt_base + CR(CLKEVT)); in spear_set_oneshot()
118 writew(val, gpt_base + CR(CLKEVT)); in spear_set_oneshot()
135 val = readw(gpt_base + CR(CLKEVT)); in spear_set_periodic()
138 writew(val, gpt_base + CR(CLKEVT)); in spear_set_periodic()
221 gpt_base = of_iomap(np, 0); in spear_setup_of_timer()
222 if (!gpt_base) { in spear_setup_of_timer()
[all …]
/openbmc/linux/arch/arm/mach-mediatek/
H A Dmediatek.c21 void __iomem *gpt_base; in mediatek_timer_init() local
28 gpt_base = ioremap(GPT6_CON_MT65xx, 0x04); in mediatek_timer_init()
31 writel(GPT_ENABLE, gpt_base); in mediatek_timer_init()
32 iounmap(gpt_base); in mediatek_timer_init()