[U-Boot] [PATCH 2/2] armv8/ls1043aqds: use configuarable clock for non-QSPI boot
Qianyu Gong
qianyu.gong at nxp.com
Sat Mar 19 03:13:14 CET 2016
Hi York,
在 2016年3月19日,上午12:53,york sun <york.sun at nxp.com<mailto:york.sun at nxp.com>> 写道:
On 03/14/2016 03:06 AM, Gong Qianyu wrote:
For QSPI boot and SD boot with QSPI, we could only read from FPGA
through I2C to get the system clock and DDR clock info. However in
U-Boot booting flow, I2C is not initialized when get_clocks() is
called and thus it couldn't get correct value of the clocks.
So the configuarable clock is only supported by non-QSPI boot.
Signed-off-by: Gong Qianyu <Qianyu.Gong at nxp.com<mailto:Qianyu.Gong at nxp.com>>
---
include/configs/ls1043aqds.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/configs/ls1043aqds.h b/include/configs/ls1043aqds.h
index 158cf02..93671f0 100644
--- a/include/configs/ls1043aqds.h
+++ b/include/configs/ls1043aqds.h
@@ -29,8 +29,13 @@ unsigned long get_board_sys_clk(void);
unsigned long get_board_ddr_clk(void);
#endif
+#if defined(CONFIG_QSPI_BOOT) || (CONFIG_SD_BOOT_QSPI)
#define CONFIG_SYS_CLK_FREQ 100000000
#define CONFIG_DDR_CLK_FREQ 100000000
+#else
+#define CONFIG_SYS_CLK_FREQ get_board_sys_clk()
+#define CONFIG_DDR_CLK_FREQ get_board_ddr_clk()
+#endif
#define CONFIG_SKIP_LOWLEVEL_INIT
Qianyu,
Please work with Yuan Yao on qixis access. We may have a solution to get the
clocks on QSPI boot.
York
Yes. I have been discussing with Yuan Yao these days.
Yesterday we tried to initialize i2c by writing several related registers and finally
verified on LS2080AQDS board. Seems that this way is feasible and simple
enough for us to read FPGA earlier.
Then I’ll send a new version of this patch.
Regards,
Qianyu
More information about the U-Boot
mailing list