summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorZhang Jiejing <jiejing.zhang@freescale.com>2012-05-25 18:42:52 +0800
committerJustin Waters <justin.waters@timesys.com>2012-09-12 11:05:51 -0400
commite4225da137712502cbd463b8999422870e82f5e7 (patch)
treeeab016f09bbf3488b33fc2175bb8b903dbf65409 /board/freescale
parent87fc1c3a0e6bac6e8a03703fe12437b1257b4bba (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 'board/freescale')
-rw-r--r--board/freescale/common/recovery.c2
-rw-r--r--board/freescale/common/recovery.h32
-rw-r--r--board/freescale/mx50_rdp/mx50_rdp.c44
-rw-r--r--board/freescale/mx51_3stack/mx51_3stack.c19
-rw-r--r--board/freescale/mx51_bbg/mx51_bbg.c19
-rwxr-xr-xboard/freescale/mx53_ard/mx53_ard.c42
-rw-r--r--board/freescale/mx53_evk/mx53_evk.c43
-rw-r--r--board/freescale/mx53_loco/mx53_loco.c43
-rw-r--r--board/freescale/mx53_pcba/mx53_pcba.c42
-rw-r--r--board/freescale/mx53_smd/mx53_smd.c40
-rw-r--r--board/freescale/mx6q_sabrelite/mx6q_sabrelite.c40
-rw-r--r--board/freescale/mx6q_sabresd/mx6q_sabresd.c46
12 files changed, 18 insertions, 394 deletions
diff --git a/board/freescale/common/recovery.c b/board/freescale/common/recovery.c
index 73f091bfbef..6a402caadf9 100644
--- a/board/freescale/common/recovery.c
+++ b/board/freescale/common/recovery.c
@@ -20,7 +20,7 @@
*/
#include <common.h>
#include <malloc.h>
-#include "recovery.h"
+#include <recovery.h>
#ifdef CONFIG_MXC_KPD
#include <mxc_keyb.h>
#endif
diff --git a/board/freescale/common/recovery.h b/board/freescale/common/recovery.h
deleted file mode 100644
index 5dde01df390..00000000000
--- a/board/freescale/common/recovery.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Android Recovery supported header file
- *
- * Copyright (C) 2010-2012 Freescale Semiconductor, Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- */
-
-#ifndef __RECOVERY_H_
-#define __RECOVERY_H_
-
-struct reco_envs {
- char *cmd;
- char *args;
-};
-
-int check_and_clean_recovery_flag(void);
-
-#endif
diff --git a/board/freescale/mx50_rdp/mx50_rdp.c b/board/freescale/mx50_rdp/mx50_rdp.c
index a56284f1f93..6f3deb7bab4 100644
--- a/board/freescale/mx50_rdp/mx50_rdp.c
+++ b/board/freescale/mx50_rdp/mx50_rdp.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de>
*
- * (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.
@@ -57,7 +57,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <part.h>
#include <ext2fs.h>
#include <linux/mtd/mtd.h>
@@ -1241,46 +1241,6 @@ int board_init(void)
}
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
-#ifdef CONFIG_CMD_UBI
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_NAND,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_NAND,
- },
-#endif
-};
#ifdef CONFIG_CMD_UBI
extern int ubifs_init(void);
diff --git a/board/freescale/mx51_3stack/mx51_3stack.c b/board/freescale/mx51_3stack/mx51_3stack.c
index 4c773ad4c90..4822d289169 100644
--- a/board/freescale/mx51_3stack/mx51_3stack.c
+++ b/board/freescale/mx51_3stack/mx51_3stack.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de>
*
- * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
+ * (C) Copyright 2009-2012 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -43,7 +43,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <mxc_keyb.h>
#include <part.h>
#include <ext2fs.h>
@@ -612,21 +612,6 @@ int board_init(void)
}
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_NAND,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_NAND,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
-};
-
static int check_mmc_recovery_cmd_file(int dev_num, int part_num, char *path)
{
block_dev_desc_t *dev_desc = NULL;
diff --git a/board/freescale/mx51_bbg/mx51_bbg.c b/board/freescale/mx51_bbg/mx51_bbg.c
index ea0c447d9e0..325be2a4f36 100644
--- a/board/freescale/mx51_bbg/mx51_bbg.c
+++ b/board/freescale/mx51_bbg/mx51_bbg.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de>
*
- * (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.
@@ -59,7 +59,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <part.h>
#include <ext2fs.h>
#include <linux/mtd/mtd.h>
@@ -1022,21 +1022,6 @@ int board_init(void)
}
#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,
- },
-};
-
int check_recovery_cmd_file(void)
{
disk_partition_t info;
diff --git a/board/freescale/mx53_ard/mx53_ard.c b/board/freescale/mx53_ard/mx53_ard.c
index 2360d7c096a..658079cfed0 100755
--- a/board/freescale/mx53_ard/mx53_ard.c
+++ b/board/freescale/mx53_ard/mx53_ard.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de>
*
- * (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.
@@ -62,7 +62,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <part.h>
#include <ext2fs.h>
#include <linux/mtd/mtd.h>
@@ -1076,44 +1076,6 @@ int board_init(void)
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
-};
int check_recovery_cmd_file(void)
{
diff --git a/board/freescale/mx53_evk/mx53_evk.c b/board/freescale/mx53_evk/mx53_evk.c
index 4129a0b6bc8..82bee9f3d90 100644
--- a/board/freescale/mx53_evk/mx53_evk.c
+++ b/board/freescale/mx53_evk/mx53_evk.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de>
*
- * (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.
@@ -54,7 +54,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <part.h>
#include <ext2fs.h>
#include <linux/mtd/mtd.h>
@@ -1007,45 +1007,6 @@ int board_init(void)
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
-};
-
int check_recovery_cmd_file(void)
{
disk_partition_t info;
diff --git a/board/freescale/mx53_loco/mx53_loco.c b/board/freescale/mx53_loco/mx53_loco.c
index 5f973282cf4..70ec8a5bca5 100644
--- a/board/freescale/mx53_loco/mx53_loco.c
+++ b/board/freescale/mx53_loco/mx53_loco.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
+ * Copyright (C) 2010-2012 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -51,7 +51,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <part.h>
#include <ext2fs.h>
#include <linux/mtd/mtd.h>
@@ -739,45 +739,6 @@ int board_init(void)
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
-};
-
int check_recovery_cmd_file(void)
{
disk_partition_t info;
diff --git a/board/freescale/mx53_pcba/mx53_pcba.c b/board/freescale/mx53_pcba/mx53_pcba.c
index 5168e5d0a79..9ee205c9043 100644
--- a/board/freescale/mx53_pcba/mx53_pcba.c
+++ b/board/freescale/mx53_pcba/mx53_pcba.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Freescale Semiconductor, Inc.
+ * Copyright (C) 2011-2012 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -46,7 +46,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <part.h>
#include <ext2fs.h>
#include <linux/mtd/mtd.h>
@@ -666,44 +666,6 @@ int board_init(void)
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
-};
int check_recovery_cmd_file(void)
{
diff --git a/board/freescale/mx53_smd/mx53_smd.c b/board/freescale/mx53_smd/mx53_smd.c
index 240b5968563..cda2756aafb 100644
--- a/board/freescale/mx53_smd/mx53_smd.c
+++ b/board/freescale/mx53_smd/mx53_smd.c
@@ -63,7 +63,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <part.h>
#include <ext2fs.h>
#include <linux/mtd/mtd.h>
@@ -1284,44 +1284,6 @@ int board_init(void)
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
-};
int check_recovery_cmd_file(void)
{
diff --git a/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c b/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
index 09f34dd5245..ccec01a2f28 100644
--- a/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
+++ b/board/freescale/mx6q_sabrelite/mx6q_sabrelite.c
@@ -54,7 +54,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
+#include <recovery.h>
#include <part.h>
#include <ext2fs.h>
#include <linux/mtd/mtd.h>
@@ -451,44 +451,6 @@ int board_init(void)
}
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
-};
int check_recovery_cmd_file(void)
{
diff --git a/board/freescale/mx6q_sabresd/mx6q_sabresd.c b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
index ff2a1b28bba..b91219a760b 100644
--- a/board/freescale/mx6q_sabresd/mx6q_sabresd.c
+++ b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
@@ -71,13 +71,7 @@
#endif
#ifdef CONFIG_ANDROID_RECOVERY
-#include "../common/recovery.h"
-#include <part.h>
-#include <ext2fs.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/partitions.h>
-#include <ubi_uboot.h>
-#include <jffs2/load_kernel.h>
+#include <recovery.h>
#endif
DECLARE_GLOBAL_DATA_PTR;
@@ -1196,44 +1190,6 @@ int board_init(void)
#ifdef CONFIG_ANDROID_RECOVERY
-struct reco_envs supported_reco_envs[BOOT_DEV_NUM] = {
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = CONFIG_ANDROID_RECOVERY_BOOTCMD_MMC,
- .args = CONFIG_ANDROID_RECOVERY_BOOTARGS_MMC,
- },
- {
- .cmd = NULL,
- .args = NULL,
- },
-};
int check_recovery_cmd_file(void)
{