From 29f690b7588137f4ee6a7737c431b95f71e17ae5 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 14 Nov 2016 16:57:13 -0800 Subject: imx_common: introduce serial download protocol boot mode When starting i.MX SoC's with BOOT_MODE b01, the boot ROM enteres Serial Downloader mode. However, serial download does not necessarily means booting from UART. The boot ROM also supports booting from USB. Create a technology neutral boot mode called SDP (serial download protocol). Signed-off-by: Stefan Agner Acked-by: Max Krummenacher --- arch/arm/imx-common/spl.c | 2 +- arch/arm/include/asm/spl.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/arm') diff --git a/arch/arm/imx-common/spl.c b/arch/arm/imx-common/spl.c index bdcda7de93..e684d61715 100644 --- a/arch/arm/imx-common/spl.c +++ b/arch/arm/imx-common/spl.c @@ -28,7 +28,7 @@ u32 spl_boot_device(void) */ if ((((bmode >> 24) & 0x03) == 0x01) || /* Serial Downloader */ (gpr10_boot && (reg == 1))) - return BOOT_DEVICE_UART; + return BOOT_DEVICE_SDP; /* BOOT_CFG1[7:4] - see IMX6DQRM Table 8-8 */ switch ((reg & 0x000000FF) >> 4) { /* EIM: See 8.5.1, Table 8-9 */ diff --git a/arch/arm/include/asm/spl.h b/arch/arm/include/asm/spl.h index a0bda28104..29b45cf82a 100644 --- a/arch/arm/include/asm/spl.h +++ b/arch/arm/include/asm/spl.h @@ -29,6 +29,7 @@ enum { BOOT_DEVICE_I2C, BOOT_DEVICE_BOARD, BOOT_DEVICE_DFU, + BOOT_DEVICE_SDP, BOOT_DEVICE_NONE }; #endif -- cgit v1.2.3