[PATCH] arm: socfpga: Ensure the DTS QSPI clock is set correctly
Jit Loon Lim
jit.loon.lim at intel.com
Fri Sep 2 05:23:53 CEST 2022
From: Tien Fong Chee <tien.fong.chee at intel.com>
The clocking section of Linux device tree was changed between
4.9.78-ltsi and 4.14.73-ltsi. This patch ensures that QSPI clock can be
set correctly despite of different clocking section location in both
Linux 4.9.78-ltsi and 4.14.73-ltsi.
Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim at intel.com>
---
include/configs/socfpga_soc64_common.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h
index 06198ddd82..14506ac2b2 100644
--- a/include/configs/socfpga_soc64_common.h
+++ b/include/configs/socfpga_soc64_common.h
@@ -57,8 +57,10 @@
"echo Enabling QSPI at Linux DTB...;" \
"fdt addr ${fdt_addr}; fdt resize;" \
"fdt set /soc/spi at ff8d2000 status okay;" \
- "fdt set /soc/clkmgr/clocks/qspi_clk clock-frequency " \
- " ${qspi_clock}; fi; \0" \
+ "if fdt set /soc/clocks/qspi-clk clock-frequency" \
+ " ${qspi_clock}; then" \
+ " else fdt set /soc/clkmgr/clocks/qspi_clk clock-frequency" \
+ " ${qspi_clock}; fi; fi\0" \
"scriptaddr=0x02100000\0" \
"scriptfile=u-boot.scr\0" \
"fatscript=if fatload mmc 0:1 ${scriptaddr} ${scriptfile};" \
--
2.26.2
More information about the U-Boot
mailing list