summaryrefslogtreecommitdiff
path: root/board/auron
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-07-10 14:05:54 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-14 22:39:36 +0000
commitac1cba419ab507163dcb6dc9d6be1401f3f1f518 (patch)
tree3bf00ed663cfb4fd5033bd954f343ef938250ce6 /board/auron
parent7015336ea81aa1d57b62088a792d1c13cbc25d57 (diff)
downloadchrome-ec-ac1cba419ab507163dcb6dc9d6be1401f3f1f518.tar.gz
cleanup: remove board_discharge_on_ac() unless custom func needed
Remove duplicate board_discharge_on_ac() functions and create CONFIG_CHARGER_DISCHARGE_ON_AC_CUSTOM for boards that have a unique implementation of board_discharge_on_ac(). BUG=chrome-os-partner:42294 BRANCH=none TEST=make -j buildall. load on samus and test 'ectool chargecontrol discharge' forces discharging on AC, and 'ectool chargecontrol normal' resumes normal charging. Change-Id: I2b7c04b9278d07748d6d41798ceab1a7e90684e4 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/284911 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/auron')
-rw-r--r--board/auron/board.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/auron/board.h b/board/auron/board.h
index 99607cd827..647de67ff2 100644
--- a/board/auron/board.h
+++ b/board/auron/board.h
@@ -19,6 +19,7 @@
#define CONFIG_CHARGER_V1
#define CONFIG_CHARGER_BQ24707A
#define CONFIG_CHARGER_DISCHARGE_ON_AC
+#define CONFIG_CHARGER_DISCHARGE_ON_AC_CUSTOM
#define CONFIG_CHIPSET_CAN_THROTTLE
#define CONFIG_CHIPSET_HASWELL
#define CONFIG_POWER_COMMON
@@ -108,9 +109,6 @@ enum temp_sensor_id {
#define WIRELESS_GPIO_WWAN GPIO_PP3300_LTE_EN
#define WIRELESS_GPIO_WLAN_POWER GPIO_PP3300_WLAN_EN
-/* Discharge battery when on AC power for factory test. */
-int board_discharge_on_ac(int enable);
-
#endif /* !__ASSEMBLER__ */
#endif /* __CROS_EC_BOARD_H */