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:
Tom Rini 2021-12-14 13:36:37 -05:00
parent 2196a4a7ef
commit 450de19b80

View File

@ -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)