diff options
author | Tom Rini <trini@konsulko.com> | 2021-12-14 21:36:37 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-12-28 00:20:18 +0300 |
commit | 450de19b8009bf92d75f27850d86e0464d23f9d3 (patch) | |
tree | f6629113bb1808201b9049ed5aa95cfea6c733d4 /board | |
parent | 2196a4a7efa8bb9bb5f28617611300d7d06efa5b (diff) | |
download | u-boot-450de19b8009bf92d75f27850d86e0464d23f9d3.tar.xz |
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/ls1088a/ls1088a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c index 7046fbaeb5..73c2077ecd 100644 --- a/board/freescale/ls1088a/ls1088a.c +++ b/board/freescale/ls1088a/ls1088a.c @@ -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) |