mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 17:10:11 +00:00
nxp: ics307_clk: 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
450de19b80
commit
0abfcf2fd3
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,7 @@ unsigned long get_board_sys_clk(void)
|
|||
in_8(&fpga_reg->sclk[2]));
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DYNAMIC_DDR_CLK_FREQ
|
||||
unsigned long get_board_ddr_clk(void)
|
||||
{
|
||||
return ics307_clk_freq(
|
||||
|
@ -144,3 +145,4 @@ unsigned long get_board_ddr_clk(void)
|
|||
in_8(&fpga_reg->dclk[1]),
|
||||
in_8(&fpga_reg->dclk[2]));
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue