1 /* SPDX-License-Identifier: GPL-2.0 2 * 3 * Copyright (C) 2018 Marvell International Ltd. 4 * 5 * https://spdx.org/licenses 6 */ 7 8 #ifndef __CLOCK_H__ 9 10 /** System PLL reference clock */ 11 #define PLL_REF_CLK 50000000 /* 50 MHz */ 12 #define NS_PER_REF_CLK_TICK (1000000000 / PLL_REF_CLK) 13 14 /** 15 * Returns the I/O clock speed in Hz 16 */ 17 u64 octeontx_get_io_clock(void); 18 19 /** 20 * Returns the core clock speed in Hz 21 */ 22 u64 octeontx_get_core_clock(void); 23 24 #endif /* __CLOCK_H__ */ 25