blob: 29261b680d0025aad79dcb9f7b99ba68596bb1fb [file] [log] [blame]
Simon Glass85d65312019-12-28 10:44:58 -07001/* 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
10int get_clocks(void);
11unsigned long get_bus_freq(unsigned long dummy);
12int get_serial_clock(void);
13
Tom Rinif7246c22021-08-21 13:50:17 -040014/*
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
20unsigned long get_board_ddr_clk(void);
21#else
22#define get_board_ddr_clk() CONFIG_DDR_CLK_FREQ
23#endif
24
Simon Glass85d65312019-12-28 10:44:58 -070025#endif