3 #include <linux/types.h>
4 #include <asm/arch/bits.h>
5 #include <linux/string.h>
6 #include <android_bootimg.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 <boot_mode.h>
15 #if defined(CONFIG_SP7702) || defined(CONFIG_SP8810W)
16 extern void modem_poweroff(void);
18 extern unsigned int g_charger_mode;
20 void charge_mode(void)
22 printf("%s\n", __func__);
25 #if defined(CONFIG_SP7702) || defined(CONFIG_SP8810W)
31 vlx_nand_boot(BOOT_PART, CONFIG_BOOTARGS " androidboot.mode=charger", BACKLIGHT_ON);
33 vlx_nand_boot(BOOT_PART, "androidboot.mode=charger", BACKLIGHT_ON);