summaryrefslogtreecommitdiff
path: root/include/fastboot.h
diff options
context:
space:
mode:
authorLiGang <b41990@freescale.com>2012-12-27 13:27:34 +0800
committerLiGang <b41990@freescale.com>2012-12-27 14:52:50 +0800
commit0e7ae7d5470d784a447bc94704ff1e8db5aca7de (patch)
treed5f85f277730f93b5b2f5994aae3875c195018fc /include/fastboot.h
parentb07b53788a970985363f6daee88e0ead9aff05b7 (diff)
downloadu-boot-imx-0e7ae7d5470d784a447bc94704ff1e8db5aca7de.zip
u-boot-imx-0e7ae7d5470d784a447bc94704ff1e8db5aca7de.tar.gz
u-boot-imx-0e7ae7d5470d784a447bc94704ff1e8db5aca7de.tar.bz2
ENGR00238300: enhance the download speed for fastboot
1. the new fastboot is an add-on feature, the original fastboot is reserved 2. the new fastboot is a subset of original fastboot, only support "download" and "flash" command 3. type "fastboot" in uboot to launch the original fastboot utility, type "fastboot q" in uboot to launch the new fastboot utility Signed-off-by: LiGang <b41990@freescale.com>
Diffstat (limited to 'include/fastboot.h')
-rw-r--r--include/fastboot.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/fastboot.h b/include/fastboot.h
index f0ed108..e10c9af 100644
--- a/include/fastboot.h
+++ b/include/fastboot.h
@@ -331,6 +331,19 @@ int fastboot_check_and_clean_flag(void);
int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
void check_fastboot_mode(void);
+
+void fastboot_quick(u8 debug);
+void *fastboot_get_string_table(void);
+int fastboot_write_mmc(u8 *partition_name, u32 write_len);
+void fastboot_dump_memory(u32 *ptr, u32 lEN);
+void fastboot_get_ep_num(u8 *in, u8 *out);
+extern u8 fastboot_debug_level;
+#define DBG_ALWS(x...) printf(x)
+#define DBG_ERR(x...) printf(x)
+#define DBG_DEBUG(x...) if (fastboot_debug_level >= 1) printf(x)
+#define DBG_INFO(x...) if (fastboot_debug_level >= 2) printf(x)
+
+
#else
/* Stubs for when CONFIG_FASTBOOT is not defined */
@@ -356,5 +369,16 @@ void check_fastboot_mode(void);
#define fastboot_flash_write(a, b, c, d) 0
#define do_fastboot(a, b, c, d) 0
+
+#define fastboot_quick(a) 0
+#define fastboot_get_ep_num(a, b) 0
+#define fastboot_get_string_table() 1
+#define fastboot_dump_memory(a, b) 0
+#define DBG_ALWS(x...)
+#define DBG_ERR(x...)
+#define DBG_DEBUG(x...)
+#define DBG_INFO(x...)
+
+
#endif /* CONFIG_FASTBOOT */
#endif /* FASTBOOT_H */