1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Copyright (C) 2013-2017 Altera Corporation <www.altera.com> 4 */ 5 6 #ifndef _CLOCK_MANAGER_H_ 7 #define _CLOCK_MANAGER_H_ 8 9 phys_addr_t socfpga_get_clkmgr_addr(void); 10 11 #ifndef __ASSEMBLY__ 12 void cm_wait_for_lock(u32 mask); 13 int cm_wait_for_fsm(void); 14 void cm_print_clock_quick_summary(void); 15 unsigned int cm_get_qspi_controller_clk_hz(void); 16 17 #if defined(CONFIG_TARGET_SOCFPGA_SOC64) 18 int cm_set_qspi_controller_clk_hz(u32 clk_hz); 19 #endif 20 #endif 21 22 #if defined(CONFIG_TARGET_SOCFPGA_GEN5) 23 #include <asm/arch/clock_manager_gen5.h> 24 #elif defined(CONFIG_TARGET_SOCFPGA_ARRIA10) 25 #include <asm/arch/clock_manager_arria10.h> 26 #elif defined(CONFIG_TARGET_SOCFPGA_STRATIX10) 27 #include <asm/arch/clock_manager_s10.h> 28 #elif defined(CONFIG_TARGET_SOCFPGA_AGILEX) 29 #include <asm/arch/clock_manager_agilex.h> 30 #endif 31 32 #endif /* _CLOCK_MANAGER_H_ */ 33