aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clocksource/Kconfig
diff options
context:
space:
mode:
authorKeguang Zhang <keguang.zhang@gmail.com>2023-05-12 18:37:24 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2023-06-19 17:07:03 +0200
commite738521a11f13e40af89f66527e59306c4169782 (patch)
tree7029c7cf4e587975eae19ca57a5b61727366b62f /drivers/clocksource/Kconfig
parentdt-bindings: timer: Add Loongson-1 clocksource (diff)
downloadwireguard-linux-e738521a11f13e40af89f66527e59306c4169782.tar.xz
wireguard-linux-e738521a11f13e40af89f66527e59306c4169782.zip
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
Diffstat (limited to 'drivers/clocksource/Kconfig')
-rw-r--r--drivers/clocksource/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 526382dc7482..c4d671a5a13d 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -612,6 +612,15 @@ config TIMER_IMX_SYS_CTR
Enable this option to use i.MX system counter timer as a
clockevent.
+config CLKSRC_LOONGSON1_PWM
+ bool "Clocksource using Loongson1 PWM"
+ depends on MACH_LOONGSON32 || COMPILE_TEST
+ select MIPS_EXTERNAL_TIMER
+ select TIMER_OF
+ help
+ Enable this option to use Loongson1 PWM timer as clocksource
+ instead of the performance counter.
+
config CLKSRC_ST_LPC
bool "Low power clocksource found in the LPC" if COMPILE_TEST
select TIMER_OF if OF