tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / property / factorytest_mode.c
1 #include <config.h>
2 #include <common.h>
3 #include <linux/types.h>
4 #include <asm/arch/bits.h>
5 #include <image.h>
6 #include <linux/string.h>
7 #include <android_bootimg.h>
8 #include <linux/mtd/mtd.h>
9 #include <linux/mtd/nand.h>
10 #include <nand.h>
11 #include <android_boot.h>
12 #include <environment.h>
13 #include <jffs2/jffs2.h>
14 #include <boot_mode.h>
15
16 #ifdef dprintf
17 #undef dprintf
18 #endif
19 #define dprintf(fmt, args...) printf(fmt, ##args)
20
21 void factorytest_mode(void)
22 {
23     printf("%s\n", __func__);
24 #if BOOT_NATIVE_LINUX
25     vlx_nand_boot(RECOVERY_PART, CONFIG_BOOTARGS " androidboot.mode=factorytest", BACKLIGHT_ON);
26 #else
27     vlx_nand_boot(RECOVERY_PART, "androidboot.mode=factorytest", BACKLIGHT_ON);
28 #endif
29
30 }