blob: 7be8852a551207d2e7a41f367504afc76de3fd50 [file] [log] [blame]
Suneel Garapati81526d52019-10-19 18:35:54 -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
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 */
17u64 octeontx_get_io_clock(void);
18
19/**
20 * Returns the core clock speed in Hz
21 */
22u64 octeontx_get_core_clock(void);
23
24#endif /* __CLOCK_H__ */