Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
angelo@sysam.it | e77e65d | 2015-02-12 01:40:00 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2014 Angelo Dureghello <angelo@sysam.it> |
| 4 | * |
angelo@sysam.it | e77e65d | 2015-02-12 01:40:00 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Simon Glass | d96c260 | 2019-12-28 10:44:58 -0700 | [diff] [blame^] | 8 | #include <clock_legacy.h> |
angelo@sysam.it | e77e65d | 2015-02-12 01:40:00 +0100 | [diff] [blame] | 9 | #include <asm/processor.h> |
| 10 | #include <asm/immap.h> |
| 11 | |
| 12 | DECLARE_GLOBAL_DATA_PTR; |
| 13 | |
| 14 | /* get_clocks() fills in gd->cpu_clock and gd->bus_clk */ |
| 15 | int get_clocks(void) |
| 16 | { |
| 17 | #if defined(CONFIG_M5307) |
| 18 | gd->bus_clk = CONFIG_SYS_CLK; |
| 19 | gd->cpu_clk = CONFIG_SYS_CPU_CLK; |
| 20 | #endif |
| 21 | |
| 22 | return 0; |
| 23 | } |