projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2196a4a
)
ls1088a: Guard get_board_ddr_clk function correctly
author
Tom Rini
<trini@konsulko.com>
Tue, 14 Dec 2021 18:36:37 +0000
(13:36 -0500)
committer
Tom Rini
<trini@konsulko.com>
Mon, 27 Dec 2021 21:20:18 +0000
(16:20 -0500)
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>
board/freescale/ls1088a/ls1088a.c
patch
|
blob
|
history
diff --git
a/board/freescale/ls1088a/ls1088a.c
b/board/freescale/ls1088a/ls1088a.c
index 7046fbaeb5d6d899a07abe5ba55ad45ddfef282c..73c2077ecdb65c2f7c94f38a5f12b31a83ab2f71 100644
(file)
--- 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)