diff options
author | Ye.Li <B37916@freescale.com> | 2015-11-02 10:01:21 +0800 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-03-09 14:42:52 +0100 |
commit | 9037514245c07452010f4c8385f8536a936bc1a0 (patch) | |
tree | 85cf3eaf0a74b673f4f87db5b87dc91973ff295a /arch | |
parent | 8e8c4cff097076c820221c468025e5ab06de13bd (diff) |
MLK-11784 imx: mx7: uboot plugin change for mfgtool
Fixed the issue that mfgtool failed to download u-boot with plugin enabled.
The u-boot plugin common codes should not call rom___pu_irom_hwcnfg_setup
when using serial download mode.
rom___pu_irom_hwcnfg_setup will load the IVT2 image from boot media, but this
is invalid for USB serial download mode.
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit b16ae36d2ae3fa9f536fec691a3e1bfa6f26a8d0)
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/arch-mx7/mx7_plugin.S | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx7/mx7_plugin.S b/arch/arm/include/asm/arch-mx7/mx7_plugin.S index 86bedf97628..1054d4fbb72 100644 --- a/arch/arm/include/asm/arch-mx7/mx7_plugin.S +++ b/arch/arm/include/asm/arch-mx7/mx7_plugin.S @@ -30,6 +30,25 @@ plugin_start: imx7_qos_setting /* + * Check if we are in USB serial download mode and immediately return to ROM + * Need to check USB CTRL clock firstly, then check the USBx_nASYNCLISTADDR + */ + ldr r0, =0x30384680 + ldr r1, [r0] + cmp r1, #0 + beq normal_boot + + ldr r0, =0x30B10158 + ldr r1, [r0] + cmp r1, #0 + beq normal_boot + + pop {r0-r4, lr} + bx lr + +normal_boot: + +/* * The following is to fill in those arguments for this ROM function * pu_irom_hwcnfg_setup(void **start, size_t *bytes, const void *boot_data) * This function is used to copy data from the storage media into DDR. |