1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2016 - 2018 Xilinx, Inc.
4 * Michal Simek <michal.simek@xilinx.com>
11 DECLARE_GLOBAL_DATA_PTR;
15 * set_cpu_clk_info - Initialize clock framework
19 * This function is called from common code after relocation and sets up the
20 * clock framework. The framework must not be used before this function had been
23 int set_cpu_clk_info(void)
25 gd->cpu_clk = get_tbclk();
27 gd->bd->bi_arm_freq = gd->cpu_clk / 1000000;
28 gd->bd->bi_dsp_freq = 0;