summaryrefslogtreecommitdiff
path: root/arch/mips/mach-octeon/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mach-octeon/clock.c')
-rw-r--r--arch/mips/mach-octeon/clock.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/mips/mach-octeon/clock.c b/arch/mips/mach-octeon/clock.c
new file mode 100644
index 0000000000..119b3ac50b
--- /dev/null
+++ b/arch/mips/mach-octeon/clock.c
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2018, 2019 Marvell International Ltd.
+ */
+
+#include <asm/global_data.h>
+#include <mach/clock.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+ulong notrace get_tbclk(void)
+{
+ return gd->cpu_clk;
+}