diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2011-11-23 13:49:37 +0800 |
---|---|---|
committer | Zhang Jiejing <jiejing.zhang@freescale.com> | 2011-11-23 14:28:45 +0800 |
commit | 08b5c56351ea218583483f69b0c19c53a836c3c4 (patch) | |
tree | 0bf2d364c1b6d79916305565a1a01f75aa5f09dd /cpu/arm_cortexa8/cpu.c | |
parent | ddbe9eb5ee0e4e91983d362d6b685ec016f68366 (diff) | |
download | u-boot-imx-08b5c56351ea218583483f69b0c19c53a836c3c4.zip u-boot-imx-08b5c56351ea218583483f69b0c19c53a836c3c4.tar.gz u-boot-imx-08b5c56351ea218583483f69b0c19c53a836c3c4.tar.bz2 |
ENGR00162938 MX5: Add download_mode command in uboot to enter MFG download mode.
Add download_mode command in uboot to enter MFG dowload mode ,
you can try download mode command in uboot and enter download mode.
it first set srtc register, then before enter linux,
it will clear these register to prevent the up comming watchdog
reset will enter mfgtool mode.
only add mx53 now.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'cpu/arm_cortexa8/cpu.c')
-rw-r--r-- | cpu/arm_cortexa8/cpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c index ac7ac13..a7a6fb7 100644 --- a/cpu/arm_cortexa8/cpu.c +++ b/cpu/arm_cortexa8/cpu.c @@ -136,6 +136,10 @@ int cleanup_before_linux(void) { unsigned int i; +#ifdef CONFIG_CMD_IMX_DOWNLOAD_MODE + clear_mfgmode_mem(); +#endif + #ifdef CONFIG_VIDEO_MX5 ipu_disable_channel(MEM_BG_SYNC); ipu_uninit_channel(MEM_BG_SYNC); |