summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-12-27 16:40:35 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2017-01-18 09:46:37 +0100
commit0b4ddd907a633ca9b5c8407d66e074a31c805336 (patch)
tree9e40dd245711950614e3fc76177c2f6b3083665e /arch
parent29f690b7588137f4ee6a7737c431b95f71e17ae5 (diff)
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 <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/imx-common/spl.c3
1 files changed, 3 insertions, 0 deletions
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;