summaryrefslogtreecommitdiff
path: root/board/llama
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/llama
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/llama')
-rw-r--r--board/llama/board.c8
-rw-r--r--board/llama/board.h3
2 files changed, 0 insertions, 11 deletions
diff --git a/board/llama/board.c b/board/llama/board.c
index 7bacd2628d..327eeba920 100644
--- a/board/llama/board.c
+++ b/board/llama/board.c
@@ -63,14 +63,6 @@ const struct i2c_port_t i2c_ports[] = {
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
#endif
-/**
- * Discharge battery when on AC power for factory test.
- */
-int board_discharge_on_ac(int enable)
-{
- return charger_discharge_on_ac(enable);
-}
-
void board_config_pre_init(void)
{
/* enable SYSCFG clock */
diff --git a/board/llama/board.h b/board/llama/board.h
index be48c0cb7a..93993f9759 100644
--- a/board/llama/board.h
+++ b/board/llama/board.h
@@ -93,9 +93,6 @@ enum pwm_channel {
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 /* mOhm */
#define CONFIG_CHARGER_INPUT_CURRENT 2150 /* mA */
-/* Discharge battery when on AC power for factory test. */
-int board_discharge_on_ac(int enable);
-
#endif /* !__ASSEMBLER__ */
#endif /* __CROS_EC_BOARD_H */