tizen: add ramdisk2 partition to default parition table
[profile/mobile/platform/kernel/u-boot-tm1.git] / property / fastboot_mode.c
1 #include <config.h>
2 #include <linux/types.h>
3 #include <asm/arch/bits.h>
4 #include <boot_mode.h>
5 #include <common.h>
6 #include <linux/string.h>
7 #include <linux/mtd/mtd.h>
8 #include <linux/mtd/nand.h>
9 #include <nand.h>
10 #include <android_boot.h>
11 #include <environment.h>
12 #include <jffs2/jffs2.h>
13 #include "normal_mode.h"
14
15 extern int dwc_otg_driver_init(void);
16 extern int usb_fastboot_initialize(void);
17
18
19 void fastboot_mode(void)
20 {
21         debugf("%s\n", __FUNCTION__);
22 #ifdef CONFIG_SPLASH_SCREEN
23         vibrator_hw_init();
24         set_vibrator(1);
25         //read boot image header
26         size_t size = 1<<19;
27
28         extern void *lcd_base;
29         extern int lcd_display_bitmap(ulong bmp_image, int x, int y);
30         extern lcd_display(void);
31         extern void set_backlight(uint32_t value);
32         extern void Dcache_CleanRegion(unsigned int addr, unsigned int length);
33
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.
37 #endif
38         lcd_display();
39         set_backlight(255);
40         set_vibrator(0);
41 #endif
42         MMU_DisableIDCM();
43
44 #ifdef CONFIG_CMD_FASTBOOT
45         dwc_otg_driver_init();
46         usb_fastboot_initialize();
47 #endif
48
49         return;
50 }