]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
e77e65df | 2 | /* |
3 | * (C) Copyright 2014 Angelo Dureghello <angelo@sysam.it> | |
4 | * | |
e77e65df | 5 | */ |
6 | ||
7 | #include <common.h> | |
8 | #include <asm/processor.h> | |
9 | #include <asm/immap.h> | |
10 | ||
11 | DECLARE_GLOBAL_DATA_PTR; | |
12 | ||
13 | /* get_clocks() fills in gd->cpu_clock and gd->bus_clk */ | |
14 | int 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 | } |