summaryrefslogtreecommitdiff
path: root/arch/mips/cpu/time.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2015-01-30 13:56:15 -0500
committerTom Rini <trini@ti.com>2015-01-30 13:56:15 -0500
commita0573d19885236ba03d412f7788104f75f0dea64 (patch)
tree95432f4b7dba3fb9fd4a7d8a4fc61330c7d8c734 /arch/mips/cpu/time.c
parent8e3da9dd113699eed2fa05fcde3c55a2ff410913 (diff)
parenteef88dfb3e16e4631e078f42714dbcef3216e3e1 (diff)
downloadu-boot-imx-a0573d19885236ba03d412f7788104f75f0dea64.zip
u-boot-imx-a0573d19885236ba03d412f7788104f75f0dea64.tar.gz
u-boot-imx-a0573d19885236ba03d412f7788104f75f0dea64.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'arch/mips/cpu/time.c')
-rw-r--r--arch/mips/cpu/time.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/mips/cpu/time.c b/arch/mips/cpu/time.c
new file mode 100644
index 0000000..553da5f
--- /dev/null
+++ b/arch/mips/cpu/time.c
@@ -0,0 +1,19 @@
+/*
+ * (C) Copyright 2003
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+#include <asm/mipsregs.h>
+
+unsigned long notrace timer_read_counter(void)
+{
+ return read_c0_count();
+}
+
+ulong notrace get_tbclk(void)
+{
+ return CONFIG_SYS_MIPS_TIMER_FREQ;
+}