Lines Matching +full:ls1b +full:- +full:pwmtimer
1 // 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()
226 0x1, GENMASK(CNTR_WIDTH - 1, 0)); in ls1x_pwm_clocksource_init()
235 TIMER_OF_DECLARE(ls1x_pwm_clocksource, "loongson,ls1b-pwmtimer",