mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
tegra: move to charger v2.
This would move all tegra boards to charger v2. Also removed the unnecessary charge_keep_power_off(), which was designed for USB power port and doesn't apply to Tegra platform. BUG=none BRANCH=nyan,big,blaze TEST=build and run on nyan. Change-Id: I9517a8885726ad6dce5a2865402da4b9551e009f Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/194384 Commit-Queue: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Tested-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
b610695b61
commit
2e41eb9eb9
@@ -12,7 +12,7 @@
|
||||
#define CONFIG_AP_HANG_DETECT
|
||||
#define CONFIG_BATTERY_SMART
|
||||
#define CONFIG_CHARGER
|
||||
#define CONFIG_CHARGER_V1
|
||||
#define CONFIG_CHARGER_V2
|
||||
#define CONFIG_CHARGER_BQ24725
|
||||
#define CONFIG_CHIPSET_TEGRA
|
||||
#define CONFIG_POWER_COMMON
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#define CONFIG_AP_HANG_DETECT
|
||||
#define CONFIG_BATTERY_SMART
|
||||
#define CONFIG_CHARGER
|
||||
#define CONFIG_CHARGER_V1
|
||||
#define CONFIG_CHARGER_V2
|
||||
#define CONFIG_CHARGER_BQ24725
|
||||
#define CONFIG_CHIPSET_TEGRA
|
||||
#define CONFIG_POWER_COMMON
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#define CONFIG_AP_HANG_DETECT
|
||||
#define CONFIG_BATTERY_SMART
|
||||
#define CONFIG_CHARGER
|
||||
#define CONFIG_CHARGER_V1
|
||||
#define CONFIG_CHARGER_V2
|
||||
#define CONFIG_CHARGER_BQ24725
|
||||
#define CONFIG_CHIPSET_TEGRA
|
||||
#define CONFIG_POWER_COMMON
|
||||
|
||||
@@ -443,18 +443,6 @@ enum power_state power_handle_state(enum power_state state)
|
||||
value = check_for_power_on_event();
|
||||
}
|
||||
|
||||
#ifdef HAS_TASK_CHARGER
|
||||
/*
|
||||
* If the system is already on (value == 1), the kernel
|
||||
* would handle low power condition and we should not
|
||||
* shutdown the system from EC.
|
||||
*/
|
||||
if (value != 1 && charge_keep_power_off()) {
|
||||
CPRINTF("[%T power on ignored due to low battery]\n");
|
||||
return state;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (value) {
|
||||
CPRINTF("[%T power on %d]\n", value);
|
||||
return POWER_S5S3;
|
||||
|
||||
Reference in New Issue
Block a user