On 2026-10-16T06:54:41, Yao Zi <[email protected]> wrote: > timer: Add loongarch_timer driver > > Implement a timer driver for LoongArch architecture timer. It's synced > in hardware for every core in a system, and frequency information can be > gathered from CPUCFG instruction. > > It is not described in fdt, thus a DRVINFO is declared for it. During > probing, stability of the timer frequency is checked through CPUCFG, and > the probing would fail if it isn't constant. > > Signed-off-by: Jiaxun Yang <[email protected]> > Signed-off-by: Yao Zi <[email protected]> > > drivers/timer/Kconfig | 8 +++ > drivers/timer/Makefile | 1 + > drivers/timer/loongarch_timer.c | 132 > ++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 141 insertions(+)
Reviewed-by: Simon Glass <[email protected]>
