diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-11-14 16:57:13 -0800 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2017-01-18 09:46:32 +0100 |
commit | 29f690b7588137f4ee6a7737c431b95f71e17ae5 (patch) | |
tree | de9b4447ce6976ea9958bd25d521a213c21685c1 | |
parent | 5ad1f3edd7e4315d177fffbddcb7bbd4cc59193f (diff) |
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 <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r-- | arch/arm/imx-common/spl.c | 2 | ||||
-rw-r--r-- | arch/arm/include/asm/spl.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/imx-common/spl.c b/arch/arm/imx-common/spl.c index bdcda7de937..e684d61715a 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 a0bda28104a..29b45cf82a3 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 |