diff mbox

[U-Boot] armv8: ls1043a: copy kernel from QSPI when booting with QSPI enabled

Message ID 1461574433-18147-1-git-send-email-Qianyu.Gong@nxp.com
State Accepted
Commit 1297cdb452fcdc6e7149c6761e43629f9c732010
Delegated to: York Sun
Headers show

Commit Message

Gong Qianyu April 25, 2016, 8:53 a.m. UTC
IFC won't be initialized in U-Boot if QSPI is enabled on LS1043AQDS.
So this patch could fix 'sync abort' caused by autoboot that tries to
access IFC address.

Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
---
 include/configs/ls1043a_common.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

York Sun May 24, 2016, 5:14 p.m. UTC | #1
On 04/25/2016 02:03 AM, Gong Qianyu wrote:
> IFC won't be initialized in U-Boot if QSPI is enabled on LS1043AQDS.
> So this patch could fix 'sync abort' caused by autoboot that tries to
> access IFC address.
> 
> Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
> ---
>  include/configs/ls1043a_common.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 

Applied to u-boot-fsl-qoriq master, awaiting upstream.

Thanks.

York
diff mbox

Patch

diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h
index e900c50..d4a181e 100644
--- a/include/configs/ls1043a_common.h
+++ b/include/configs/ls1043a_common.h
@@ -264,8 +264,13 @@ 
 
 #define CONFIG_BOOTARGS			"console=ttyS0,115200 root=/dev/ram0 " \
 					"earlycon=uart8250,mmio,0x21c0500"
+#if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
+#define CONFIG_BOOTCOMMAND		"sf probe && sf read $kernel_load "    \
+					"e0000 f00000 && bootm $kernel_load"
+#else
 #define CONFIG_BOOTCOMMAND		"cp.b $kernel_start $kernel_load "     \
 					"$kernel_size && bootm $kernel_load"
+#endif
 #define CONFIG_BOOTDELAY		10
 
 /* Monitor Command Prompt */