| // SPDX-License-Identifier: GPL-2.0+ |
| * (C) Copyright 2014 - 2015 Xilinx, Inc. |
| * Michal Simek <michal.simek@xilinx.com> |
| #include <asm/arch/clk.h> |
| #include <asm/arch/hardware.h> |
| #include <asm/arch/sys_proto.h> |
| #include <asm/global_data.h> |
| unsigned long zynqmp_get_system_timer_freq(void) |
| u32 ver = zynqmp_get_silicon_version(); |
| case ZYNQMP_CSU_VERSION_QEMU: |
| * set_cpu_clk_info() - Initialize clock framework |
| * This function is called from common code after relocation and sets up the |
| * clock framework. The framework must not be used before this function had been |
| int set_cpu_clk_info(void) |
| gd->cpu_clk = get_tbclk(); |
| gd->bd->bi_arm_freq = gd->cpu_clk / 1000000; |