diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/common/recovery.c | 2 | ||||
-rw-r--r-- | board/freescale/common/recovery.h | 32 | ||||
-rw-r--r-- | board/freescale/mx50_rdp/mx50_rdp.c | 44 | ||||
-rw-r--r-- | board/freescale/mx51_3stack/mx51_3stack.c | 19 | ||||
-rw-r--r-- | board/freescale/mx51_bbg/mx51_bbg.c | 19 | ||||
-rwxr-xr-x | board/freescale/mx53_ard/mx53_ard.c | 42 | ||||
-rw-r--r-- | board/freescale/mx53_evk/mx53_evk.c | 43 | ||||
-rw-r--r-- | board/freescale/mx53_loco/mx53_loco.c | 43 | ||||
-rw-r--r-- | board/freescale/mx53_pcba/mx53_pcba.c | 42 | ||||
-rw-r--r-- | board/freescale/mx53_smd/mx53_smd.c | 40 | ||||
-rw-r--r-- | board/freescale/mx6q_sabrelite/mx6q_sabrelite.c | 40 | ||||
-rw-r--r-- | board/freescale/mx6q_sabresd/mx6q_sabresd.c | 46 |
12 files changed, 18 insertions, 394 deletions
diff --git a/board/freescale/common/recovery.c b/board/freescale/common/recovery.c index 73f091b..6a402ca 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 5dde01d..0000000 --- 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 a56284f..6f3deb7 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 4c773ad..4822d28 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 ea0c447..325be2a 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 2360d7c..658079c 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 4129a0b..82bee9f 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 5f97328..70ec8a5 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 5168e5d..9ee205c 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 240b596..cda2756 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 09f34dd..ccec01a 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 ff2a1b2..b91219a 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) { |