Home
last modified time | relevance | path

Searched +full:ls1b +full:- +full:pwmtimer (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/Documentation/devicetree/bindings/timer/
Dloongson,ls1x-pwmtimer.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/timer/loongson,ls1x-pwmtimer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Loongson-1 PWM timer
10 - Keguang Zhang <keguang.zhang@gmail.com>
13 Loongson-1 PWM timer can be used for system clock source
18 const: loongson,ls1b-pwmtimer
30 - compatible
31 - reg
[all …]
/linux-6.12.1/drivers/clocksource/
Dtimer-loongson1-pwm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Clocksource driver for Loongson-1 SoC
11 #include "timer-of.h"
13 /* Loongson-1 PWM Timer Register Definitions */
84 clkevt->event_handler(clkevt); in ls1x_clockevent_isr()
137 .name = "ls1x-pwmtimer",
183 count = readl(ls1x_cs->reg_base + PWM_CNTR); in ls1x_clocksource_read()
203 return (u64)(jifs * ls1x_cs->ticks_per_jiffy) + count; in ls1x_clocksource_read()
208 .name = "ls1x-pwmtimer",
225 clockevents_config_and_register(&to->clkevt, timer_of_rate(to), in ls1x_pwm_clocksource_init()
[all …]