clocksource/drivers/loongson1: Move PWM timer to clocksource framework
authorKeguang Zhang <keguang.zhang@gmail.com>
Fri, 12 May 2023 10:37:24 +0000 (18:37 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 19 Jun 2023 15:07:03 +0000 (17:07 +0200)
commite738521a11f13e40af89f66527e59306c4169782
tree7029c7cf4e587975eae19ca57a5b61727366b62f
parentb25efff2a63f0d573f409f22e82904db9cc7d577
clocksource/drivers/loongson1: Move PWM timer to clocksource framework

This patch moves most part of arch/mips/loongson32/common/time.c
into drivers/clocksource.

Adapt the driver to clocksource framework with devicetree support
and updates Kconfig/Makefile options.

Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230512103724.587760-4-keguang.zhang@gmail.com
drivers/clocksource/Kconfig
drivers/clocksource/Makefile
drivers/clocksource/timer-loongson1-pwm.c [new file with mode: 0644]