From e2f8b5c028f3eb81ed0507ed1a3b05ec6013ce56 Mon Sep 17 00:00:00 2001 From: Greentime Hu Date: Wed, 25 Oct 2017 14:39:57 +0800 Subject: nds32: Generic timers support This patch adds support for timer. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij Acked-by: Arnd Bergmann --- arch/nds32/kernel/time.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 arch/nds32/kernel/time.c (limited to 'arch/nds32/kernel/time.c') diff --git a/arch/nds32/kernel/time.c b/arch/nds32/kernel/time.c new file mode 100644 index 000000000000..ac9d78ce3a81 --- /dev/null +++ b/arch/nds32/kernel/time.c @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (C) 2005-2017 Andes Technology Corporation + +#include +#include + +void __init time_init(void) +{ + of_clk_init(NULL); + timer_probe(); +} -- cgit v1.2.3