]> git.sur5r.net Git - u-boot/commitdiff
armv8: ls1043aqds: use configurable clock
authorQianyu Gong <qianyu.gong@nxp.com>
Mon, 13 Jun 2016 03:20:31 +0000 (11:20 +0800)
committerYork Sun <york.sun@nxp.com>
Tue, 28 Jun 2016 19:08:43 +0000 (12:08 -0700)
Get the clocks from FPGA through I2C, if IFC is disabled.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
board/freescale/ls1043aqds/ls1043aqds.c
include/configs/ls1043aqds.h

index 9447c93319af05757bec962b4606b5d6bfbb7f58..b7e9c2172773fff279ee18b9f60bb50247584003 100644 (file)
@@ -230,6 +230,10 @@ int board_early_init_f(void)
 #ifdef CONFIG_LPUART
        u8 uart;
 #endif
+
+#ifdef CONFIG_SYS_I2C_EARLY_INIT
+       i2c_early_init_f();
+#endif
        fsl_lsch2_early_init_f();
 
 #ifdef CONFIG_HAS_FSL_XHCI_USB
index a19eaee5a9b87d21b5df8e9e47ed8b80a169825b..520b28c5fba406ffe43ce6fed0322371ff8c3f14 100644 (file)
@@ -29,8 +29,8 @@ unsigned long get_board_sys_clk(void);
 unsigned long get_board_ddr_clk(void);
 #endif
 
-#define CONFIG_SYS_CLK_FREQ            100000000
-#define CONFIG_DDR_CLK_FREQ            100000000
+#define CONFIG_SYS_CLK_FREQ            get_board_sys_clk()
+#define CONFIG_DDR_CLK_FREQ            get_board_ddr_clk()
 
 #define CONFIG_SKIP_LOWLEVEL_INIT
 
@@ -225,6 +225,7 @@ unsigned long get_board_ddr_clk(void);
 
 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
 #define CONFIG_QIXIS_I2C_ACCESS
+#define CONFIG_SYS_I2C_EARLY_INIT
 #define CONFIG_SYS_NO_FLASH
 #endif