]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: fsl-layerscape: Skip reconfigure QSPI clock when booting from QSPI
authorQianyu Gong <qianyu.gong@nxp.com>
Wed, 16 Mar 2016 10:01:52 +0000 (18:01 +0800)
committerYork Sun <york.sun@nxp.com>
Tue, 29 Mar 2016 00:35:38 +0000 (17:35 -0700)
The qspi_cfg register is set by PBI when booting from QSPI. No need
to changing it again.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/soc.c

index 213ce3a82468bb142d4cc53217f0c09dc97781af..bf0474283f6f8f36cda76a495be32eb87cd05bfe 100644 (file)
@@ -240,7 +240,7 @@ void fsl_lsch2_early_init_f(void)
        init_early_memctl_regs();       /* tighten IFC timing */
 #endif
 
-#ifdef CONFIG_FSL_QSPI
+#if defined(CONFIG_FSL_QSPI) && !defined(CONFIG_QSPI_BOOT)
        out_be32(&scfg->qspi_cfg, SCFG_QSPI_CLKSEL);
 #endif
        /* Make SEC reads and writes snoopable */