summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-octeontx/clock.h
diff options
context:
space:
mode:
authorSuneel Garapati <sgarapati@marvell.com>2019-10-19 18:32:33 -0700
committerStefan Roese <sr@denx.de>2020-08-25 08:01:16 +0200
commit387d321add65e7a93422be434c48067fc7d69d86 (patch)
treee34cc75f68ab2363a19dd58058e6588ea116eec4 /arch/arm/include/asm/arch-octeontx/clock.h
parentc2f45b6588f8dc85a63cccec0cabfa01ff76a0b8 (diff)
arm: octeontx: Add headers for OcteonTX
Signed-off-by: Suneel Garapati <sgarapati@marvell.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/include/asm/arch-octeontx/clock.h')
-rw-r--r--arch/arm/include/asm/arch-octeontx/clock.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-octeontx/clock.h b/arch/arm/include/asm/arch-octeontx/clock.h
new file mode 100644
index 0000000000..7bf600a1f2
--- /dev/null
+++ b/arch/arm/include/asm/arch-octeontx/clock.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2018 Marvell International Ltd.
+ *
+ * https://spdx.org/licenses
+ */
+
+#ifndef __CLOCK_H__
+#define __CLOCK_H__
+
+/** System PLL reference clock */
+#define PLL_REF_CLK 50000000 /* 50 MHz */
+#define NS_PER_REF_CLK_TICK (1000000000 / PLL_REF_CLK)
+
+/**
+ * Returns the I/O clock speed in Hz
+ */
+u64 octeontx_get_io_clock(void);
+
+/**
+ * Returns the core clock speed in Hz
+ */
+u64 octeontx_get_core_clock(void);
+
+#endif /* __CLOCK_H__ */