]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - arch/arm/mach-versal-net/clk.c
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2016 - 2022, Xilinx, Inc.
4 * Copyright (C) 2022, Advanced Micro Devices, Inc.
6 * Michal Simek <michal.simek@amd.com>
12 #include <asm/global_data.h>
14 DECLARE_GLOBAL_DATA_PTR
;
18 * set_cpu_clk_info - Initialize clock framework
22 * This function is called from common code after relocation and sets up the
23 * clock framework. The framework must not be used before this function had been
26 int set_cpu_clk_info(void)
28 gd
->cpu_clk
= get_tbclk();
30 gd
->bd
->bi_arm_freq
= gd
->cpu_clk
/ 1000000;
31 gd
->bd
->bi_dsp_freq
= 0;