blob: ae260477807ff0200bced339acfea7c9451657ac [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
angelo@sysam.ite77e65d2015-02-12 01:40:00 +01002/*
3 * (C) Copyright 2014 Angelo Dureghello <angelo@sysam.it>
4 *
angelo@sysam.ite77e65d2015-02-12 01:40:00 +01005 */
6
7#include <common.h>
8#include <asm/processor.h>
9#include <asm/immap.h>
10
11DECLARE_GLOBAL_DATA_PTR;
12
13/* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
14int 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}