xref: /OK3568_Linux_fs/u-boot/arch/m68k/cpu/mcf530x/speed.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * (C) Copyright 2014  Angelo Dureghello <angelo@sysam.it>
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * SPDX-License-Identifier:	GPL-2.0+
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #include <common.h>
9*4882a593Smuzhiyun #include <asm/processor.h>
10*4882a593Smuzhiyun #include <asm/immap.h>
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun DECLARE_GLOBAL_DATA_PTR;
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun /* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
get_clocks(void)15*4882a593Smuzhiyun int get_clocks(void)
16*4882a593Smuzhiyun {
17*4882a593Smuzhiyun #if defined(CONFIG_M5307)
18*4882a593Smuzhiyun 	gd->bus_clk = CONFIG_SYS_CLK;
19*4882a593Smuzhiyun 	gd->cpu_clk = CONFIG_SYS_CPU_CLK;
20*4882a593Smuzhiyun #endif
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun 	return 0;
23*4882a593Smuzhiyun }
24