mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-29 22:43:10 +00:00
efb5dab7ba
As this symbol can either be a fixed value or the function get_board_ddr_clk, migration is tricky. Introduce a choice of DYNAMIC or STATIC_DDR_CLK_FREQ. If DYNAMIC, we continue to use the board defined get_board_ddr_clk function. If STATIC, set CONFIG_DDR_CLK_FREQ to that value and now include/clock_legacy.h contains the function prototype or defines get_board_ddr_clk() to that static value. Update callers to test for DYNAMIC or STATIC. Signed-off-by: Tom Rini <trini@konsulko.com>
14 lines
318 B
C
14 lines
318 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2010-2011 Freescale Semiconductor, Inc.
|
|
*/
|
|
#ifndef __ICS_CLK_H_
|
|
#define __ICS_CLK_H_ 1
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern unsigned long get_board_sys_clk(void);
|
|
extern unsigned long ics307_sysclk_calculator(unsigned long out_freq);
|
|
#endif
|
|
|
|
#endif /* __ICS_CLK_H_ */
|