From 76562a907cf88d852eaebbba6cb7aad13bb2c9df Mon Sep 17 00:00:00 2001 From: Zhang Jiejing Date: Wed, 23 Mar 2011 16:09:28 +0800 Subject: ENGR00141000 MX50_RDP: add android recovery support. Add android recovery related config and code. Signed-off-by: Zhang Jiejing --- include/asm-arm/arch-mx50/mx50.h | 3 ++- include/configs/mx50_rdp_android.h | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.1