From e696f7dac56591a5616b397bc32a1d9bb57147ee Mon Sep 17 00:00:00 2001 From: Eric Sun Date: Wed, 30 Nov 2011 13:41:04 +0800 Subject: ENGR00163513 MX6Q-UBOOT : Add download_mode cmd Add "download_mode" command to U-Boot. It will force a system reset and let boot running in "boot from serial rom" mode, which can be used by manufacturing tool. The command will triggle a write to SRC_GPR9 and SRC_GPR10, then triggle a watchdog reset. GPR9 and GPR10 can maintain their value during the reset, the value in it make ROM to start in "boot from serial rom" mode. After that GPR9 and GPR10 are written by their original value for normal boot. Signed-off-by: Eric Sun --- include/asm-arm/arch-mx6/mx6.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/asm-arm/arch-mx6/mx6.h') diff --git a/include/asm-arm/arch-mx6/mx6.h b/include/asm-arm/arch-mx6/mx6.h index ae52fa2..e7f06fc 100644 --- a/include/asm-arm/arch-mx6/mx6.h +++ b/include/asm-arm/arch-mx6/mx6.h @@ -622,6 +622,9 @@ #define PLATFORM_ICGC 0x14 +#define SRC_GPR9 0x40 +#define SRC_GPR10 0x44 + #ifndef __ASSEMBLER__ enum boot_device { -- cgit v1.1