ls1088a: Guard get_board_ddr_clk function correctly
When we have CONFIG_DYNAMIC_DDR_CLK_FREQ set is the only time we should have this function, so guard it so that we can include <clock_legacy.h> in this file later on. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
2196a4a7ef
commit
450de19b80
@ -398,6 +398,7 @@ unsigned long get_board_sys_clk(void)
|
||||
return 66666666;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DYNAMIC_DDR_CLK_FREQ
|
||||
unsigned long get_board_ddr_clk(void)
|
||||
{
|
||||
u8 ddrclk_conf = QIXIS_READ(brdcfg[1]);
|
||||
@ -415,6 +416,7 @@ unsigned long get_board_ddr_clk(void)
|
||||
|
||||
return 66666666;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_SPL_BUILD)
|
||||
void board_retimer_init(void)
|
||||
|
Loading…
Reference in New Issue
Block a user