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