Skip to content

Commit 4ea1c89

Browse files
authored
Iris: remove critical battery shutdown (#885)
Signed-off-by: LeoCX_Tsai <[email protected]>
1 parent 5251758 commit 4ea1c89

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

board/hx30/board.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
#define CONFIG_BATTERY_CUT_OFF
166166
#define CONFIG_BATTERY_SMART
167167
#define CONFIG_BATTERY_PRESENT_CUSTOM
168+
#define CONFIG_BATT_CUSTOM_SETTING
168169
#define CONFIG_BOARD_VERSION_CUSTOM
169170
#define CONFIG_CHARGE_MANAGER
170171
/* #define CONFIG_CHARGE_RAMP_SW */

common/charge_state_v2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,10 +1496,12 @@ static int shutdown_on_critical_battery(void)
14961496
break;
14971497
}
14981498
} else {
1499+
#ifndef CONFIG_BATT_CUSTOM_SETTING
14991500
/* Timeout waiting for AP to shut down, so kill it */
15001501
CPRINTS(
15011502
"charge force shutdown due to critical battery");
15021503
chipset_force_shutdown(CHIPSET_SHUTDOWN_BATTERY_CRIT);
1504+
#endif
15031505
}
15041506

15051507
return 1;

include/config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,11 @@
635635
*/
636636
#undef CONFIG_SB_PASSTHROUGH
637637

638+
/*
639+
* Customize the battery behavior.
640+
*/
641+
#undef CONFIG_BATT_CUSTOM_SETTING
642+
638643
/*
639644
* Expose some data when it is needed.
640645
* For example, battery disconnect state

0 commit comments

Comments
 (0)