2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2014-03-05 04:13:53 +00:00
|
|
|
/*
|
2017-04-25 18:44:33 +00:00
|
|
|
* Copyright (C) 2013-2017 Altera Corporation <www.altera.com>
|
2014-03-05 04:13:53 +00:00
|
|
|
*/
|
|
|
|
|
2017-04-25 18:44:33 +00:00
|
|
|
#ifndef _CLOCK_MANAGER_H_
|
|
|
|
#define _CLOCK_MANAGER_H_
|
2014-03-05 04:13:53 +00:00
|
|
|
|
2019-11-08 02:38:21 +00:00
|
|
|
phys_addr_t socfpga_get_clkmgr_addr(void);
|
|
|
|
|
2014-09-08 12:08:45 +00:00
|
|
|
#ifndef __ASSEMBLER__
|
2017-04-25 18:44:33 +00:00
|
|
|
void cm_wait_for_lock(u32 mask);
|
|
|
|
int cm_wait_for_fsm(void);
|
|
|
|
void cm_print_clock_quick_summary(void);
|
2014-09-08 12:08:45 +00:00
|
|
|
#endif
|
|
|
|
|
2017-04-25 18:44:33 +00:00
|
|
|
#if defined(CONFIG_TARGET_SOCFPGA_GEN5)
|
|
|
|
#include <asm/arch/clock_manager_gen5.h>
|
2017-04-25 18:44:39 +00:00
|
|
|
#elif defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
|
|
|
|
#include <asm/arch/clock_manager_arria10.h>
|
2018-05-18 14:05:22 +00:00
|
|
|
#elif defined(CONFIG_TARGET_SOCFPGA_STRATIX10)
|
|
|
|
#include <asm/arch/clock_manager_s10.h>
|
2019-11-27 07:55:23 +00:00
|
|
|
#elif defined(CONFIG_TARGET_SOCFPGA_AGILEX)
|
|
|
|
#include <asm/arch/clock_manager_agilex.h>
|
2017-04-25 18:44:33 +00:00
|
|
|
#endif
|
2017-04-25 18:44:39 +00:00
|
|
|
|
2014-03-05 04:13:53 +00:00
|
|
|
#endif /* _CLOCK_MANAGER_H_ */
|