]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/m68k/cpu/mcf547x_8x/speed.c
2bc4c44247f7618dc63cd4b49677aee6f6ef5707
3 * (C) Copyright 2000-2003
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 * Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
7 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
9 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm/processor.h>
15 #include <asm/immap.h>
17 DECLARE_GLOBAL_DATA_PTR
;
20 * get_clocks() fills in gd->cpu_clock and gd->bus_clk
24 gd
->bus_clk
= CONFIG_SYS_CLK
;
25 gd
->cpu_clk
= (gd
->bus_clk
* 2);
27 #ifdef CONFIG_SYS_I2C_FSL
28 gd
->arch
.i2c1_clk
= gd
->bus_clk
;