Simon Glass | d96c260 | 2019-12-28 10:44:58 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * (C) Copyright 2000-2009 |
| 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __CLOCK_LEGACY_H |
| 8 | #define __CLOCK_LEGACY_H |
| 9 | |
| 10 | int get_clocks(void); |
| 11 | unsigned long get_bus_freq(unsigned long dummy); |
| 12 | int get_serial_clock(void); |
| 13 | |
Tom Rini | efb5dab7 | 2021-08-21 13:50:17 -0400 | [diff] [blame] | 14 | /* |
| 15 | * If we have CONFIG_DYNAMIC_DDR_CLK_FREQ then there will be an |
| 16 | * implentation of get_board_ddr_clk() somewhere. Otherwise we have |
| 17 | * a static value to use now. |
| 18 | */ |
| 19 | #ifdef CONFIG_DYNAMIC_DDR_CLK_FREQ |
| 20 | unsigned long get_board_ddr_clk(void); |
| 21 | #else |
| 22 | #define get_board_ddr_clk() CONFIG_DDR_CLK_FREQ |
| 23 | #endif |
| 24 | |
Tom Rini | 2f8a6db | 2021-12-14 13:36:40 -0500 | [diff] [blame] | 25 | /* |
| 26 | * If we have CONFIG_DYNAMIC_SYS_CLK_FREQ then there will be an |
| 27 | * implentation of get_board_sys_clk() somewhere. Otherwise we have |
| 28 | * a static value to use now. |
| 29 | */ |
| 30 | #ifdef CONFIG_DYNAMIC_SYS_CLK_FREQ |
| 31 | unsigned long get_board_sys_clk(void); |
| 32 | #else |
| 33 | #define get_board_sys_clk() CONFIG_SYS_CLK_FREQ |
| 34 | #endif |
| 35 | |
Simon Glass | d96c260 | 2019-12-28 10:44:58 -0700 | [diff] [blame] | 36 | #endif |