From 0b4ddd907a633ca9b5c8407d66e074a31c805336 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 27 Dec 2016 16:40:35 +0100 Subject: imx_common: check for bmode Serial Downloader Before commit 81c4eccb55cc ("imx: mx6: fix USB bmode to use reserved value") a non-reserved value has been used to trigger Serial Downloader using bmode. On some boards this value lead to unreliable bmode command. With the above mentioned commit, U-boot switched to use [7:4] b0001, which translates to GPR9 0x10 for Serial Downloader mode. Check for this new bmode and classify it as Serial Downloader. Signed-off-by: Stefan Agner Acked-by: Max Krummenacher --- arch/arm/imx-common/spl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch') diff --git a/arch/arm/imx-common/spl.c b/arch/arm/imx-common/spl.c index e684d61715..29f8fb613a 100644 --- a/arch/arm/imx-common/spl.c +++ b/arch/arm/imx-common/spl.c @@ -39,6 +39,9 @@ u32 spl_boot_device(void) else return BOOT_DEVICE_NOR; break; + /* Reserved: Used for force Serial Downloader */ + case 0x1: + return BOOT_DEVICE_SDP; /* SATA: See 8.5.4, Table 8-20 */ case 0x2: return BOOT_DEVICE_SATA; -- cgit v1.2.3