blob: c8d079016f2e2a9da933547ada0609b02bfb4d0a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
angelo@sysam.itbb4ba2c2015-02-12 01:40:00 +01002/*
3 * (C) Copyright 2014 Angelo Dureghello <angelo@sysam.it>
4 *
angelo@sysam.itbb4ba2c2015-02-12 01:40:00 +01005 */
6
7#include <common.h>
Simon Glass85d65312019-12-28 10:44:58 -07008#include <clock_legacy.h>
Simon Glass3ba929a2020-10-30 21:38:53 -06009#include <asm/global_data.h>
angelo@sysam.itbb4ba2c2015-02-12 01:40:00 +010010#include <asm/processor.h>
11#include <asm/immap.h>
12
13DECLARE_GLOBAL_DATA_PTR;
14
15/* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
16int get_clocks(void)
17{
18#if defined(CONFIG_M5307)
Tom Rini6a5dccc2022-11-16 13:10:41 -050019 gd->bus_clk = CFG_SYS_CLK;
20 gd->cpu_clk = CFG_SYS_CPU_CLK;
angelo@sysam.itbb4ba2c2015-02-12 01:40:00 +010021#endif
22
23 return 0;
24}