Home
last modified time | relevance | path

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

/linux-6.12.1/arch/arm/mach-spear/
Dtime.c63 static __iomem void *gpt_base; variable
75 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
81 writew(0xFFFF, gpt_base + LOAD(CLKSRC)); in spear_clocksource_init()
83 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init()
86 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
89 clocksource_mmio_init(gpt_base + COUNT(CLKSRC), "tmr1", tick_rate, in spear_clocksource_init()
95 u16 val = readw(gpt_base + CR(CLKEVT)); in spear_timer_shutdown()
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()
[all …]
/linux-6.12.1/arch/arm/mach-mediatek/
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()