mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 03:58:17 +00:00 
			
		
		
		
	Add clock wrapper functions call to clock DM functions to get clock frequency and used in cm_print_clock_quick_summary(). Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			723 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			723 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0+ */
 | |
| /*
 | |
|  *  Copyright (C) 2013-2017 Altera Corporation <www.altera.com>
 | |
|  */
 | |
| 
 | |
| #ifndef _CLOCK_MANAGER_H_
 | |
| #define _CLOCK_MANAGER_H_
 | |
| 
 | |
| phys_addr_t socfpga_get_clkmgr_addr(void);
 | |
| 
 | |
| #ifndef __ASSEMBLER__
 | |
| void cm_wait_for_lock(u32 mask);
 | |
| int cm_wait_for_fsm(void);
 | |
| void cm_print_clock_quick_summary(void);
 | |
| #endif
 | |
| 
 | |
| #if defined(CONFIG_TARGET_SOCFPGA_GEN5)
 | |
| #include <asm/arch/clock_manager_gen5.h>
 | |
| #elif defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
 | |
| #include <asm/arch/clock_manager_arria10.h>
 | |
| #elif defined(CONFIG_TARGET_SOCFPGA_STRATIX10)
 | |
| #include <asm/arch/clock_manager_s10.h>
 | |
| #elif defined(CONFIG_TARGET_SOCFPGA_AGILEX)
 | |
| #include <asm/arch/clock_manager_agilex.h>
 | |
| #endif
 | |
| 
 | |
| #endif /* _CLOCK_MANAGER_H_ */
 |