When usb is connected, bootmode is charge mode.
So if enter the reboot download, it needs to check the charger mode.
And clear the inform3 register.
Change-Id: I5008a615d3cc24c7b579ec8a305131825281b35d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
int inform3 = readl(INFORM3);
if ((inform3 & REBOOT_MODE_MASK) == REBOOT_MODE_PREFIX) {
- if ((inform3 & 0xf) == REBOOT_THOR_DOWNLOAD)
+ if ((inform3 & 0xf) == REBOOT_THOR_DOWNLOAD) {
+ writel(0, INFORM3);
return 1;
+ }
}
return 0;
DBG("do_cboot:boot mode is %d\n",bootmode);
#ifdef CONFIG_TIZEN
- if (bootmode == CMD_NONE) {
- bootmode = CMD_NORMAL_MODE;
+ if (bootmode == CMD_NONE || bootmode == CMD_CHARGE_MODE) {
+ if (bootmode == CMD_NONE)
+ bootmode = CMD_NORMAL_MODE;
if (tizen_reboot_check()) {
bootmode = CMD_THOR_MODE;
DBG("do_cboot:boot mode is %d\n",bootmode);