mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
arm: socfpga: Move Stratix10 and Agilex clock manager common code
Move Stratix10 and Agilex clock manager common code to new header file. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
This commit is contained in:
parent
975f66bb57
commit
38229994af
2 changed files with 26 additions and 13 deletions
23
arch/arm/mach-socfpga/include/mach/clock_manager_soc64.h
Normal file
23
arch/arm/mach-socfpga/include/mach/clock_manager_soc64.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0
|
||||
*
|
||||
* Copyright (C) 2016-2019 Intel Corporation <www.intel.com>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _CLOCK_MANAGER_SOC64_
|
||||
#define _CLOCK_MANAGER_SOC64_
|
||||
|
||||
const unsigned int cm_get_osc_clk_hz(void);
|
||||
const unsigned int cm_get_f2s_per_ref_clk_hz(void);
|
||||
const unsigned int cm_get_f2s_sdr_ref_clk_hz(void);
|
||||
const unsigned int cm_get_intosc_clk_hz(void);
|
||||
const unsigned int cm_get_fpga_clk_hz(void);
|
||||
|
||||
#define CLKMGR_EOSC1_HZ 25000000
|
||||
#define CLKMGR_INTOSC_HZ 460000000
|
||||
#define CLKMGR_FPGA_CLK_HZ 50000000
|
||||
|
||||
/* Clock configuration accessors */
|
||||
const struct cm_config * const cm_get_default_config(void);
|
||||
|
||||
#endif /* _CLOCK_MANAGER_SOC64_ */
|
Loading…
Add table
Add a link
Reference in a new issue