mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 02:38:56 +00:00
404a98b0a4
Changed to store QSPI reference clock in kHz instead of Hz in boot scratch cold0 register for Stratix10 and Agilex. This patch is in preparation for Intel N5X SDRAM driver support. Reserved 4 bits for Intel N5X SDRAM driver, and there will be 28 bits to store QSPI reference clock. Due to limited bits, QSPI reference clock frequency is converted to kHz from Hz. Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com> Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
32 lines
868 B
C
32 lines
868 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 __ASSEMBLY__
|
|
void cm_wait_for_lock(u32 mask);
|
|
int cm_wait_for_fsm(void);
|
|
void cm_print_clock_quick_summary(void);
|
|
unsigned int cm_get_qspi_controller_clk_hz(void);
|
|
|
|
#if defined(CONFIG_TARGET_SOCFPGA_SOC64)
|
|
int cm_set_qspi_controller_clk_hz(u32 clk_hz);
|
|
#endif
|
|
#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_ */
|