Lines Matching +full:local +full:- +full:timer +full:- +full:stop
1 // SPDX-License-Identifier: GPL-2.0
37 * We use the peripheral timers for system tick, the cpu global timer for
65 * Read 64-bit free running counter in kona_timer_get_counter()
66 * 1. Read hi-word in kona_timer_get_counter()
67 * 2. Read low-word in kona_timer_get_counter()
68 * 3. Read hi-word again in kona_timer_get_counter()
70 * if new hi-word is not equal to previously read hi-word, then in kona_timer_get_counter()
73 * if new hi-word is equal to previously read hi-word then stop. in kona_timer_get_counter()
81 } while (--loop_limit); in kona_timer_get_counter()
84 pr_err(" Timer will be impacted\n"); in kona_timer_get_counter()
85 return -ETIMEDOUT; in kona_timer_get_counter()
95 * timer (0) is disabled by the timer interrupt already in kona_timer_set_next_event()
96 * so, here we reload the next event value and re-enable in kona_timer_set_next_event()
97 * the timer. in kona_timer_set_next_event()
100 * timer-interrupt->set_next_event. CPU local timers, when in kona_timer_set_next_event()
130 .name = "timer 1",
149 evt->event_handler(evt); in kona_timer_interrupt()
163 } else if (!of_property_read_u32(node, "clock-frequency", &freq)) { in kona_timer_init()
166 pr_err("Kona Timer v1 unable to determine clock-frequency\n"); in kona_timer_init()
167 return -EINVAL; in kona_timer_init()
180 "Kona Timer Tick", NULL)) in kona_timer_init()
181 pr_err("%s: request_irq() failed\n", "Kona Timer Tick"); in kona_timer_init()
187 TIMER_OF_DECLARE(brcm_kona, "brcm,kona-timer", kona_timer_init);
189 * bcm,kona-timer is deprecated by brcm,kona-timer
192 TIMER_OF_DECLARE(bcm_kona, "bcm,kona-timer", kona_timer_init);