2 * (C) Copyright 2014 - 2015 Xilinx, Inc.
3 * Michal Simek <michal.simek@xilinx.com>
5 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/clk.h>
10 #include <asm/arch/hardware.h>
11 #include <asm/arch/sys_proto.h>
13 DECLARE_GLOBAL_DATA_PTR;
15 unsigned long zynqmp_get_system_timer_freq(void)
17 u32 ver = zynqmp_get_silicon_version();
20 case ZYNQMP_CSU_VERSION_VELOCE:
22 case ZYNQMP_CSU_VERSION_EP108:
24 case ZYNQMP_CSU_VERSION_QEMU:
33 * set_cpu_clk_info() - Initialize clock framework
34 * Always returns zero.
36 * This function is called from common code after relocation and sets up the
37 * clock framework. The framework must not be used before this function had been
40 int set_cpu_clk_info(void)
42 gd->cpu_clk = get_tbclk();
44 /* Support Veloce to show at least 1MHz via bdi */
45 if (gd->cpu_clk > 1000000)
46 gd->bd->bi_arm_freq = gd->cpu_clk / 1000000;
48 gd->bd->bi_arm_freq = 1;
50 gd->bd->bi_dsp_freq = 0;