2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2015-02-12 00:40:00 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014 Angelo Dureghello <angelo@sysam.it>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-12-28 17:44:58 +00:00
|
|
|
#include <clock_legacy.h>
|
2020-10-31 03:38:53 +00:00
|
|
|
#include <asm/global_data.h>
|
2015-02-12 00:40:00 +00:00
|
|
|
#include <asm/processor.h>
|
|
|
|
#include <asm/immap.h>
|
|
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
|
|
|
/* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
|
|
|
|
int get_clocks(void)
|
|
|
|
{
|
|
|
|
#if defined(CONFIG_M5307)
|
2022-11-16 18:10:41 +00:00
|
|
|
gd->bus_clk = CFG_SYS_CLK;
|
|
|
|
gd->cpu_clk = CFG_SYS_CPU_CLK;
|
2015-02-12 00:40:00 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|