tizen: bootmode: enable uart console with home key
[profile/mobile/platform/kernel/u-boot-tm1.git] / property / engtest_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
22
23 void engtest_mode(void)
24 {
25     printf("%s\n", __func__);
26 #if BOOT_NATIVE_LINUX
27     vlx_nand_boot(BOOT_PART, CONFIG_BOOTARGS " androidboot.mode=engtest", BACKLIGHT_OFF);
28 #else
29     vlx_nand_boot(BOOT_PART, "androidboot.mode=engtest", BACKLIGHT_OFF);
30 #endif
31
32 }