xref: /openbmc/u-boot/arch/m68k/cpu/mcf530x/speed.c (revision 8ee59472)
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 <asm/processor.h>
9 #include <asm/immap.h>
10 
11 DECLARE_GLOBAL_DATA_PTR;
12 
13 /* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
14 int get_clocks(void)
15 {
16 #if defined(CONFIG_M5307)
17 	gd->bus_clk = CONFIG_SYS_CLK;
18 	gd->cpu_clk = CONFIG_SYS_CPU_CLK;
19 #endif
20 
21 	return 0;
22 }
23