Home
last modified time | relevance | path

Searched refs:TIMER_CTRL (Results 1 – 12 of 12) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/clocksource/
H A Dtimer-integrator-ap.c39 writel(ctrl, base + TIMER_CTRL); in integrator_clocksource_init()
72 u32 ctrl = readl(clkevt_base + TIMER_CTRL) & ~TIMER_CTRL_ENABLE; in clkevt_shutdown()
75 writel(ctrl, clkevt_base + TIMER_CTRL); in clkevt_shutdown()
81 u32 ctrl = readl(clkevt_base + TIMER_CTRL) & in clkevt_set_oneshot()
85 writel(ctrl, clkevt_base + TIMER_CTRL); in clkevt_set_oneshot()
91 u32 ctrl = readl(clkevt_base + TIMER_CTRL) & ~TIMER_CTRL_ENABLE; in clkevt_set_periodic()
94 writel(ctrl, clkevt_base + TIMER_CTRL); in clkevt_set_periodic()
99 writel(ctrl, clkevt_base + TIMER_CTRL); in clkevt_set_periodic()
105 unsigned long ctrl = readl(clkevt_base + TIMER_CTRL); in clkevt_set_next_event()
107 writel(ctrl & ~TIMER_CTRL_ENABLE, clkevt_base + TIMER_CTRL); in clkevt_set_next_event()
[all …]
H A Dmps2-timer.c23 #define TIMER_CTRL 0x0 macro
57 clockevent_mps2_writel(0, ce, TIMER_CTRL); in mps2_timer_shutdown()
65 clockevent_mps2_writel(TIMER_CTRL_IE | TIMER_CTRL_ENABLE, ce, TIMER_CTRL); in mps2_timer_set_next_event()
76 clockevent_mps2_writel(TIMER_CTRL_IE | TIMER_CTRL_ENABLE, ce, TIMER_CTRL); in mps2_timer_set_periodic()
158 writel_relaxed(0, base + TIMER_CTRL); in mps2_clockevent_init()
217 writel_relaxed(0, base + TIMER_CTRL); in mps2_clocksource_init()
223 writel_relaxed(TIMER_CTRL_ENABLE, base + TIMER_CTRL); in mps2_clocksource_init()
H A Dtimer-orion.c25 #define TIMER_CTRL 0x00 macro
73 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_next_event()
82 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_shutdown()
92 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_set_periodic()
155 atomic_io_modify(timer_base + TIMER_CTRL, in orion_timer_init()
H A Dtimer-sp.h19 #define TIMER_CTRL 0x08 /* ACVR rw */ macro
H A Dtimer-sp804.c41 .ctrl = TIMER_CTRL,
/OK3568_Linux_fs/u-boot/drivers/watchdog/
H A Dorion_wdt.c36 #define TIMER_CTRL 0x0000 macro
60 reg = readl(priv->reg + TIMER_CTRL); in orion_wdt_start()
62 writel(reg, priv->reg + TIMER_CTRL); in orion_wdt_start()
73 reg = readl(priv->reg + TIMER_CTRL); in orion_wdt_start()
75 writel(reg, priv->reg + TIMER_CTRL); in orion_wdt_start()
104 reg = readl(priv->reg + TIMER_CTRL); in orion_wdt_stop()
106 writel(reg, priv->reg + TIMER_CTRL); in orion_wdt_stop()
/OK3568_Linux_fs/kernel/drivers/watchdog/
H A Dorion_wdt.c37 #define TIMER_CTRL 0x0000 macro
114 atomic_io_modify(dev->reg + TIMER_CTRL, in armada370_wdt_clock_init()
135 atomic_io_modify(dev->reg + TIMER_CTRL, in armada375_wdt_clock_init()
154 atomic_io_modify(dev->reg + TIMER_CTRL, in armada375_wdt_clock_init()
179 atomic_io_modify(dev->reg + TIMER_CTRL, val, val); in armadaxp_wdt_clock_init()
217 atomic_io_modify(dev->reg + TIMER_CTRL, reg, reg); in armada375_start()
241 atomic_io_modify(dev->reg + TIMER_CTRL, dev->data->wdt_enable_bit, in armada370_start()
260 atomic_io_modify(dev->reg + TIMER_CTRL, dev->data->wdt_enable_bit, in orion_start()
286 atomic_io_modify(dev->reg + TIMER_CTRL, dev->data->wdt_enable_bit, 0); in orion_stop()
307 atomic_io_modify(dev->reg + TIMER_CTRL, mask, 0); in armada375_stop()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/
H A Drockchip_debugger.c33 writel(0, TIMER_BASE + TIMER_CTRL); in rockchip_debugger_init()
41 writel(TIMER_EN | TIMER_INT_EN, TIMER_BASE + TIMER_CTRL); in rockchip_debugger_init()
/OK3568_Linux_fs/u-boot/include/
H A Drk_timer_irq.h13 #define TIMER_CTRL 0x1c macro
15 #define TIMER_CTRL 0x10 macro
/OK3568_Linux_fs/u-boot/test/rockchip/
H A Dtest-misc.c43 writel(0, TIMER_BASE + TIMER_CTRL); in timer_interrupt_test()
49 writel(TIMER_EN | TIMER_INT_EN, TIMER_BASE + TIMER_CTRL); in timer_interrupt_test()
/OK3568_Linux_fs/u-boot/drivers/power/
H A Dcharge_animation.c385 writel(0, TIMER_BASE + TIMER_CTRL); in autowakeup_timer_init()
391 writel(TIMER_EN | TIMER_INT_EN, TIMER_BASE + TIMER_CTRL); in autowakeup_timer_init()
400 writel(0, TIMER_BASE + TIMER_CTRL); in autowakeup_timer_uninit()
/OK3568_Linux_fs/u-boot/drivers/power/power_delivery/
H A Dtcpm.c817 writel(0, TIMER_BASE + TIMER_CTRL); in tcpm_timer_init()
823 writel(TIMER_EN | TIMER_INT_EN, TIMER_BASE + TIMER_CTRL); in tcpm_timer_init()
833 writel(0, TIMER_BASE + TIMER_CTRL); in tcpm_timer_uninit()