2 #include <linux/types.h>
3 #include <asm/arch/bits.h>
6 #include <linux/string.h>
7 #include <linux/mtd/mtd.h>
8 #include <linux/mtd/nand.h>
10 #include <android_boot.h>
11 #include <environment.h>
12 #include <jffs2/jffs2.h>
13 #include "normal_mode.h"
15 extern int dwc_otg_driver_init(void);
16 extern int usb_fastboot_initialize(void);
19 void fastboot_mode(void)
21 debugf("%s\n", __FUNCTION__);
22 #ifdef CONFIG_SPLASH_SCREEN
25 //read boot image header
28 extern void *lcd_base;
29 extern int lcd_display_bitmap(ulong bmp_image, int x, int y);
30 extern void lcd_display(void);
31 extern void set_backlight(uint32_t value);
32 extern void Dcache_CleanRegion(unsigned int addr, unsigned int length);
34 lcd_printf("fastboot mode\n");
35 #if defined(CONFIG_SC8810) || defined(CONFIG_SC8825) || defined(CONFIG_SC8830) || defined(CONFIG_SC9630)
36 Dcache_CleanRegion((unsigned int)(lcd_base), size<<1);//Size is to large.
44 #ifdef CONFIG_CMD_FASTBOOT
45 dwc_otg_driver_init();
46 usb_fastboot_initialize();