]> Git Repo - J-linux.git/blob - arch/mips/loongson2ef/common/time.c
Merge tag 'kbuild-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
[J-linux.git] / arch / mips / loongson2ef / common / time.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
4  * Author: Fuxin Zhang, [email protected]
5  *
6  * Copyright (C) 2009 Lemote Inc.
7  * Author: Wu Zhangjin, [email protected]
8  */
9 #include <asm/mc146818-time.h>
10 #include <asm/time.h>
11 #include <asm/hpet.h>
12
13 #include <loongson.h>
14 #include <cs5536/cs5536_mfgpt.h>
15
16 void __init plat_time_init(void)
17 {
18         /* setup mips r4k timer */
19         mips_hpt_frequency = cpu_clock_freq / 2;
20
21         setup_mfgpt0_timer();
22 }
23
24 void read_persistent_clock64(struct timespec64 *ts)
25 {
26         ts->tv_sec = mc146818_get_cmos_time();
27         ts->tv_nsec = 0;
28 }
This page took 0.02975 seconds and 4 git commands to generate.