From 2bb05eaa651cb22a6d2fceada7082b192aa7daf2 Mon Sep 17 00:00:00 2001 From: Zhang Jiejing Date: Mon, 14 May 2012 14:50:42 +0800 Subject: ENGR00209059 android: refine fastboot and recovery support. 1. add check asrc register to enter recovery mode, rather then check the file. 2. fix the boot.img can not fastboot flash function. 3. consolidate and cleanup fastboot code. 4. clean up many build warnning message. Signed-off-by: Zhang Jiejing --- include/fastboot.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/fastboot.h') diff --git a/include/fastboot.h b/include/fastboot.h index b0bcaef..dfca793 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -3,7 +3,7 @@ * Windriver, * Tom Rix * - * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. + * 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 @@ -326,6 +326,9 @@ int fastboot_flash_read_ext(fastboot_ptentry *ptn, int fastboot_flash_write(fastboot_ptentry *ptn, unsigned extra_per_page, const void *data, unsigned bytes); +/* Check the board special boot mode reboot to fastboot mode. */ +int fastboot_check_and_clean_flag(void); +int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); #else @@ -350,6 +353,7 @@ int fastboot_flash_write(fastboot_ptentry *ptn, unsigned extra_per_page, #define fastboot_flash_read_ext(a, b, c, d, e) 0 #define fastboot_flash_read(a, b, c, d, e) 0 #define fastboot_flash_write(a, b, c, d) 0 +#define do_fastboot(a, b, c, d) 0 #endif /* CONFIG_FASTBOOT */ #endif /* FASTBOOT_H */ -- cgit v1.1