global: Move remaining CONFIG_SYS_* to CFG_SYS_*
[platform/kernel/u-boot.git] / arch / m68k / cpu / mcf530x / speed.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2014  Angelo Dureghello <angelo@sysam.it>
4  *
5  */
6
7 #include <common.h>
8 #include <clock_legacy.h>
9 #include <asm/global_data.h>
10 #include <asm/processor.h>
11 #include <asm/immap.h>
12
13 DECLARE_GLOBAL_DATA_PTR;
14
15 /* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
16 int get_clocks(void)
17 {
18 #if defined(CONFIG_M5307)
19         gd->bus_clk = CFG_SYS_CLK;
20         gd->cpu_clk = CFG_SYS_CPU_CLK;
21 #endif
22
23         return 0;
24 }