1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 Marvell International Ltd.
5 * https://spdx.org/licenses
10 #include <asm/arch/board.h>
11 #include <asm/arch/clock.h>
14 * Returns the I/O clock speed in Hz
16 u64 octeontx_get_io_clock(void)
18 union rst_boot rst_boot;
20 rst_boot.u = readq(RST_BOOT);
22 return rst_boot.s.pnr_mul * PLL_REF_CLK;
26 * Returns the core clock speed in Hz
28 u64 octeontx_get_core_clock(void)
30 union rst_boot rst_boot;
32 rst_boot.u = readq(RST_BOOT);
34 return rst_boot.s.c_mul * PLL_REF_CLK;