CONFIG_SYS_CLK_FREQ: Consistently be static or get_board_sys_clk()
[platform/kernel/u-boot.git] / board / freescale / ls1021aqds / ls1021aqds.c
index fbbd27d..0647622 100644 (file)
@@ -102,6 +102,7 @@ int checkboard(void)
        return 0;
 }
 
+#ifdef CONFIG_DYNAMIC_SYS_CLK_FREQ
 unsigned long get_board_sys_clk(void)
 {
        u8 sysclk_conf = QIXIS_READ(brdcfg[1]);
@@ -126,6 +127,7 @@ unsigned long get_board_sys_clk(void)
        }
        return 66666666;
 }
+#endif
 
 #ifdef CONFIG_DYNAMIC_DDR_CLK_FREQ
 unsigned long get_board_ddr_clk(void)