diff options
author | 2025-03-08 22:04:20 +0800 | |
---|---|---|
committer | 2025-03-08 22:04:20 +0800 | |
commit | a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a (patch) | |
tree | 84f21bd0bf7071bc5fc7dd989e77d7ceb5476682 /arch/mips/loongson64/time.c | |
download | ohosKernel-a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a.tar.gz ohosKernel-a07bb8fd1299070229f0e8f3dcb57ffd5ef9870a.zip |
Initial commit: OpenHarmony-v4.0-ReleaseOpenHarmony-v4.0-Release
Diffstat (limited to 'arch/mips/loongson64/time.c')
-rw-r--r-- | arch/mips/loongson64/time.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/mips/loongson64/time.c b/arch/mips/loongson64/time.c new file mode 100644 index 000000000..91e842b58 --- /dev/null +++ b/arch/mips/loongson64/time.c | |||
@@ -0,0 +1,23 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
2 | /* | ||
3 | * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology | ||
4 | * Author: Fuxin Zhang, zhangfx@lemote.com | ||
5 | * | ||
6 | * Copyright (C) 2009 Lemote Inc. | ||
7 | * Author: Wu Zhangjin, wuzhangjin@gmail.com | ||
8 | */ | ||
9 | |||
10 | #include <asm/time.h> | ||
11 | #include <asm/hpet.h> | ||
12 | |||
13 | #include <loongson.h> | ||
14 | |||
15 | void __init plat_time_init(void) | ||
16 | { | ||
17 | /* setup mips r4k timer */ | ||
18 | mips_hpt_frequency = cpu_clock_freq / 2; | ||
19 | |||
20 | #ifdef CONFIG_RS780_HPET | ||
21 | setup_hpet_timer(); | ||
22 | #endif | ||
23 | } | ||