summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhang Jiejing <jiejing.zhang@freescale.com>2011-03-23 16:09:28 +0800
committerZhang Jiejing <jiejing.zhang@freescale.com>2011-03-23 16:34:59 +0800
commit76562a907cf88d852eaebbba6cb7aad13bb2c9df (patch)
tree66cf152606c5d71c643bf866d398b305ef146fb5 /include
parent398b6f66eae95dc7b09980616ce324408cc16c97 (diff)
downloadu-boot-imx-76562a907cf88d852eaebbba6cb7aad13bb2c9df.zip
u-boot-imx-76562a907cf88d852eaebbba6cb7aad13bb2c9df.tar.gz
u-boot-imx-76562a907cf88d852eaebbba6cb7aad13bb2c9df.tar.bz2
ENGR00141000 MX50_RDP: add android recovery support.
Add android recovery related config and code. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/arch-mx50/mx50.h3
-rw-r--r--include/configs/mx50_rdp_android.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/include/asm-arm/arch-mx50/mx50.h b/include/asm-arm/arch-mx50/mx50.h
index b912040..9c905e5 100644
--- a/include/asm-arm/arch-mx50/mx50.h
+++ b/include/asm-arm/arch-mx50/mx50.h
@@ -293,7 +293,8 @@ enum boot_device {
SD_BOOT,
MMC_BOOT,
NAND_BOOT,
- UNKNOWN_BOOT
+ UNKNOWN_BOOT,
+ BOOT_DEV_NUM = UNKNOWN_BOOT,
};
enum mxc_clock {
diff --git a/include/configs/mx50_rdp_android.h b/include/configs/mx50_rdp_android.h
index d1bf934..ac4cc80 100644
--- a/include/configs/mx50_rdp_android.h
+++ b/include/configs/mx50_rdp_android.h
@@ -312,6 +312,15 @@
#define CONFIG_FASTBOOT_TRANSFER_BUF 0x80000000
#define CONFIG_FASTBOOT_TRANSFER_BUF_SIZE 0x8000000 /* 128M byte */
+#define CONFIG_ANDROID_RECOVERY
+#define CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC \
+ "setenv bootargs ${bootargs} init=/init root=/dev/mmcblk0p4" \
+ "rootfs=ext4 keypad"
+#define CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC \
+ "run bootargs_base bootargs_android_recovery;" \
+ "mmc read 0 ${loadaddr} 0x800 0x2000;bootm"
+#define CONFIG_ANDROID_RECOVERY_CMD_FILE "/recovery/command"
+
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS