summaryrefslogtreecommitdiff
path: root/cpu/arm_cortexa8/mx51
diff options
context:
space:
mode:
authorZhang Jiejing <jiejing.zhang@freescale.com>2012-05-25 18:42:52 +0800
committerZhang Jiejing <jiejing.zhang@freescale.com>2012-05-29 17:57:10 +0800
commit1627b8fd466be9cb0248be08f39b52a6e80337f1 (patch)
treeeab016f09bbf3488b33fc2175bb8b903dbf65409 /cpu/arm_cortexa8/mx51
parentf5d0383f915bd4d4d211d9958d7819b284276483 (diff)
ENGR00210918-2 cleanup android support, build pass all boards
- move recovery.h to common inlcude place. - move supported_reco_envs to soc related, not board related, - user can change this via configure header, don't needs this in every board file. - pass build for all mx5/mx6 android configs. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'cpu/arm_cortexa8/mx51')
-rw-r--r--cpu/arm_cortexa8/mx51/generic.c31
1 files changed, 30 insertions, 1 deletions
diff --git a/cpu/arm_cortexa8/mx51/generic.c b/cpu/arm_cortexa8/mx51/generic.c
index b116922cf5..f3b9751528 100644
--- a/cpu/arm_cortexa8/mx51/generic.c
+++ b/cpu/arm_cortexa8/mx51/generic.c
@@ -2,7 +2,7 @@
* (C) Copyright 2007
* Sascha Hauer, Pengutronix
*
- * (C) Copyright 2009-2011 Freescale Semiconductor, Inc.
+ * (C) Copyright 2009-2012 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -37,6 +37,9 @@
#include <imx_spi.h>
#include <asm/arch/imx_spi_pmic.h>
#endif
+#ifdef CONFIG_ANDROID_RECOVERY
+#include <recovery.h>
+#endif
#include <div64.h>
#include "crm_regs.h"
@@ -1105,3 +1108,29 @@ void ipu_clk_disable(void)
reg |= (0x1 << 18);
writel(reg, CCM_BASE_ADDR + CLKCTL_CLPCR);
}
+
+#ifdef CONFIG_ANDROID_RECOVERY
+struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
+ {
+ .cmd = NULL,
+ .args = NULL,
+ },
+ {
+ .cmd = NULL,
+ .args = NULL,
+ },
+ {
+ .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
+ .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
+ },
+};
+#endif
+
+#ifdef CONFIG_FASTBOOT
+/* check if the recovery bit is set by kernel, it can be set by kernel
+ * issue a command '# reboot fastboot' */
+int fastboot_check_and_clean_flag(void)
+{
+ return 0;
+}
+#endif