blob: 7bf600a1f25a9044b49a60ed5714c4da585df045 [file] [log] [blame]
Suneel Garapaticd530282019-10-19 18:32:33 -07001/* 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#define __CLOCK_H__
10
11/** System PLL reference clock */
12#define PLL_REF_CLK 50000000 /* 50 MHz */
13#define NS_PER_REF_CLK_TICK (1000000000 / PLL_REF_CLK)
14
15/**
16 * Returns the I/O clock speed in Hz
17 */
18u64 octeontx_get_io_clock(void);
19
20/**
21 * Returns the core clock speed in Hz
22 */
23u64 octeontx_get_core_clock(void);
24
25#endif /* __CLOCK_H__ */