mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 20:18:18 +00:00 
			
		
		
		
	Signed-off-by: Suneel Garapati <sgarapati@marvell.com> Reviewed-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			26 lines
		
	
	
		
			526 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			526 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier:    GPL-2.0
 | |
|  *
 | |
|  * Copyright (C) 2018 Marvell International Ltd.
 | |
|  *
 | |
|  * https://spdx.org/licenses
 | |
|  */
 | |
| 
 | |
| #ifndef __CLOCK_H__
 | |
| #define __CLOCK_H__
 | |
| 
 | |
| /** System PLL reference clock */
 | |
| #define PLL_REF_CLK                     50000000        /* 50 MHz */
 | |
| #define NS_PER_REF_CLK_TICK             (1000000000 / PLL_REF_CLK)
 | |
| 
 | |
| /**
 | |
|  * Returns the I/O clock speed in Hz
 | |
|  */
 | |
| u64 octeontx_get_io_clock(void);
 | |
| 
 | |
| /**
 | |
|  * Returns the core clock speed in Hz
 | |
|  */
 | |
| u64 octeontx_get_core_clock(void);
 | |
| 
 | |
| #endif /* __CLOCK_H__ */
 |