2018-05-06 17:58:06 -04:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2015-02-12 01:40:00 +01:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014 Angelo Dureghello <angelo@sysam.it>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-12-28 10:44:58 -07:00
|
|
|
#include <clock_legacy.h>
|
2020-10-30 21:38:53 -06:00
|
|
|
#include <asm/global_data.h>
|
2015-02-12 01:40:00 +01: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 13:10:41 -05:00
|
|
|
gd->bus_clk = CFG_SYS_CLK;
|
|
|
|
gd->cpu_clk = CFG_SYS_CPU_CLK;
|
2015-02-12 01:40:00 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|