Lines Matching +full:semi +full:- +full:static

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Actions Semi Owl timer
5 * Copyright 2012 Actions Semi Inc.
6 * Author: Actions Semi, Inc.
30 static void __iomem *owl_timer_base;
31 static void __iomem *owl_clksrc_base;
32 static void __iomem *owl_clkevt_base;
34 static inline void owl_timer_reset(void __iomem *base) in owl_timer_reset()
41 static inline void owl_timer_set_enabled(void __iomem *base, bool enabled) in owl_timer_set_enabled()
56 static u64 notrace owl_timer_sched_read(void) in owl_timer_sched_read()
61 static int owl_timer_set_state_shutdown(struct clock_event_device *evt) in owl_timer_set_state_shutdown()
68 static int owl_timer_set_state_oneshot(struct clock_event_device *evt) in owl_timer_set_state_oneshot()
75 static int owl_timer_tick_resume(struct clock_event_device *evt) in owl_timer_tick_resume()
80 static int owl_timer_set_next_event(unsigned long evt, in owl_timer_set_next_event()
94 static struct clock_event_device owl_clockevent = {
105 static irqreturn_t owl_timer1_interrupt(int irq, void *dev_id) in owl_timer1_interrupt()
111 evt->event_handler(evt); in owl_timer1_interrupt()
116 static int __init owl_timer_init(struct device_node *node) in owl_timer_init()
122 owl_timer_base = of_io_request_and_map(node, 0, "owl-timer"); in owl_timer_init()
134 return -EINVAL; in owl_timer_init()
150 ret = clocksource_mmio_init(owl_clksrc_base + OWL_Tx_VAL, node->name, in owl_timer_init()
160 "owl-timer", &owl_clockevent); in owl_timer_init()
174 TIMER_OF_DECLARE(owl_s500, "actions,s500-timer", owl_timer_init);
175 TIMER_OF_DECLARE(owl_s700, "actions,s700-timer", owl_timer_init);
176 TIMER_OF_DECLARE(owl_s900, "actions,s900-timer", owl_timer_init);