longan/brandy/brandy-2.0/u-boot-2018/board/sunxi/power_manage.c
.. .. @@ -476,6 +476,7 @@ 476 476 pmu_set_sys_mode(0); 477 477 } 478 478 479 +#if 0479 480 if (bat_exist == 1) { 480 481 /* When the battery exists, it can only be turned on by power key */ 481 482 if (pmu_axp707_get_poweron_source() != AXP_BOOT_SOURCE_BUTTON && .. .. @@ -489,8 +490,9 @@ 489 490 pmu_set_sys_mode(0); 490 491 } 491 492 } 493 +#endif492 494 493 - switch (val) {495 + switch (val) {494 496 case AXP_BOOT_SOURCE_BUTTON: 495 497 strncpy(bootreason, "button", sizeof("button")); 496 498 break;