3 #include <linux/types.h>
4 #include <asm/arch/bits.h>
6 #include <linux/string.h>
7 #include <android_bootimg.h>
8 #include <linux/mtd/mtd.h>
9 #include <linux/mtd/nand.h>
11 #include <android_boot.h>
12 #include <environment.h>
13 #include <jffs2/jffs2.h>
14 #include <boot_mode.h>
19 #define dprintf(fmt, args...) printf(fmt, ##args)
21 void factorytest_mode(void)
23 printf("%s\n", __func__);
25 vlx_nand_boot(RECOVERY_PART, CONFIG_BOOTARGS " androidboot.mode=factorytest", BACKLIGHT_ON);
27 vlx_nand_boot(RECOVERY_PART, "androidboot.mode=factorytest", BACKLIGHT_ON);