blob: 3ace040d156b01c93af4606d6771f505a461b873 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Chin Liang Seecb350602014-03-04 22:13:53 -06002/*
Ley Foon Tanec6f8822017-04-26 02:44:33 +08003 * Copyright (C) 2013-2017 Altera Corporation <www.altera.com>
Chin Liang Seecb350602014-03-04 22:13:53 -06004 */
5
Ley Foon Tanec6f8822017-04-26 02:44:33 +08006#ifndef _CLOCK_MANAGER_H_
7#define _CLOCK_MANAGER_H_
Chin Liang Seecb350602014-03-04 22:13:53 -06008
Pavel Machek7c8d5a62014-09-08 14:08:45 +02009#ifndef __ASSEMBLER__
Ley Foon Tanec6f8822017-04-26 02:44:33 +080010void cm_wait_for_lock(u32 mask);
11int cm_wait_for_fsm(void);
12void cm_print_clock_quick_summary(void);
Pavel Machek7c8d5a62014-09-08 14:08:45 +020013#endif
14
Ley Foon Tanec6f8822017-04-26 02:44:33 +080015#if defined(CONFIG_TARGET_SOCFPGA_GEN5)
16#include <asm/arch/clock_manager_gen5.h>
Ley Foon Tanca40f292017-04-26 02:44:39 +080017#elif defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
18#include <asm/arch/clock_manager_arria10.h>
Ley Foon Tanec6f8822017-04-26 02:44:33 +080019#endif
Ley Foon Tanca40f292017-04-26 02:44:39 +080020
Chin Liang Seecb350602014-03-04 22:13:53 -060021#endif /* _CLOCK_MANAGER_H_ */