]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
nds32: Generic timers support
authorGreentime Hu <greentime@andestech.com>
Wed, 25 Oct 2017 06:39:57 +0000 (14:39 +0800)
committerGreentime Hu <greentime@andestech.com>
Thu, 22 Feb 2018 02:44:34 +0000 (10:44 +0800)
This patch adds support for timer.

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/nds32/kernel/time.c [new file with mode: 0644]

diff --git a/arch/nds32/kernel/time.c b/arch/nds32/kernel/time.c
new file mode 100644 (file)
index 0000000..ac9d78c
--- /dev/null
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (C) 2005-2017 Andes Technology Corporation
+
+#include <linux/clocksource.h>
+#include <linux/clk-provider.h>
+
+void __init time_init(void)
+{
+       of_clk_init(NULL);
+       timer_probe();
+}