diff options
-rw-r--r-- | board/nyan/board.c | 1 | ||||
-rw-r--r-- | include/charge_state.h | 5 | ||||
-rw-r--r-- | power/tegra.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/board/nyan/board.c b/board/nyan/board.c index 7813af3a2b..7aabae2491 100644 --- a/board/nyan/board.c +++ b/board/nyan/board.c @@ -12,7 +12,6 @@ #include "i2c.h" #include "keyboard_raw.h" #include "lid_switch.h" -#include "pmu_tpschrome.h" #include "power.h" #include "power_button.h" #include "power.h" diff --git a/include/charge_state.h b/include/charge_state.h index 152e767295..47ce682d01 100644 --- a/include/charge_state.h +++ b/include/charge_state.h @@ -126,6 +126,11 @@ struct charge_state_context { enum charge_state charge_get_state(void); /** + * Return non-zero if battery is so low we want to keep AP off. + */ +int charge_keep_power_off(void); + +/** * Return current charge state flags (CHARGE_FLAG_*) */ uint32_t charge_get_flags(void); diff --git a/power/tegra.c b/power/tegra.c index 79cd1e5899..021626ee93 100644 --- a/power/tegra.c +++ b/power/tegra.c @@ -25,6 +25,7 @@ * */ +#include "charge_state.h" #include "chipset.h" /* This module implements chipset functions too */ #include "clock.h" #include "common.h" @@ -36,7 +37,6 @@ #include "power.h" #include "power_button.h" #include "power_led.h" -#include "pmu_tpschrome.h" #include "system.h" #include "task.h" #include "timer.h" |