Suneel Garapati | cd53028 | 2019-10-19 18:32:33 -0700 | [diff] [blame^] | 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 | #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 | */ |
| 18 | u64 octeontx_get_io_clock(void); |
| 19 | |
| 20 | /** |
| 21 | * Returns the core clock speed in Hz |
| 22 | */ |
| 23 | u64 octeontx_get_core_clock(void); |
| 24 | |
| 25 | #endif /* __CLOCK_H__ */ |