Lines Matching +full:- +full:clint
1 // SPDX-License-Identifier: GPL-2.0
5 * Most of the M-mode (i.e. NoMMU) RISC-V systems usually have a
6 * CLINT MMIO timer device.
9 #define pr_fmt(fmt) "clint: " fmt
18 #include <linux/io-64-nonatomic-lo-hi.h>
28 #include <asm/clint.h>
35 /* CLINT manages IPI and Timer for RISC-V M-mode */
133 ce->cpumask = cpumask_of(cpu); in clint_timer_starting_cpu()
149 * via generic IPI-Mux in clint_timer_dying_cpu()
159 evdev->event_handler(evdev); in clint_timer_interrupt()
172 * Ensure that CLINT device interrupts are either RV_IRQ_TIMER or in clint_timer_init_dt()
187 return -ENODEV; in clint_timer_init_dt()
203 /* If CLINT ipi or timer irq not found then fail */ in clint_timer_init_dt()
206 return -ENODEV; in clint_timer_init_dt()
212 return -ENODEV; in clint_timer_init_dt()
239 "clint-timer", &clint_clock_event); in clint_timer_init_dt()
249 rc = (rc < 0) ? rc : -ENODEV; in clint_timer_init_dt()
259 "clockevents/clint/timer:starting", in clint_timer_init_dt()