huangcm
2025-07-03 5fc6eec0444a62f7a596240b200dd837059dba70
longan/brandy/brandy-2.0/u-boot-2018/board/sunxi/power_manage.c
....@@ -476,6 +476,7 @@
476476 pmu_set_sys_mode(0);
477477 }
478478
479
+#if 0
479480 if (bat_exist == 1) {
480481 /* When the battery exists, it can only be turned on by power key */
481482 if (pmu_axp707_get_poweron_source() != AXP_BOOT_SOURCE_BUTTON &&
....@@ -489,8 +490,9 @@
489490 pmu_set_sys_mode(0);
490491 }
491492 }
493
+#endif
492494
493
- switch (val) {
495
+ switch (val) {
494496 case AXP_BOOT_SOURCE_BUTTON:
495497 strncpy(bootreason, "button", sizeof("button"));
496498 break;