summaryrefslogtreecommitdiff
path: root/board/pit
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2013-07-24 08:22:48 -0700
committerChromeBot <chrome-bot@google.com>2013-07-24 13:07:13 -0700
commit6c280b1b324d56416732ff532f0d8d69d2dbdfad (patch)
treeb31a23b435b8174eb4c187cd80c6280257e00528 /board/pit
parent7b95d397feab540fa35d47ce810628e03af34e4b (diff)
downloadchrome-ec-6c280b1b324d56416732ff532f0d8d69d2dbdfad.tar.gz
Move TPSChrome charging temperature range to battery pack
This change moves vendor specific temperature ranges to battery pack files or board setup files. And added a host test case to verify that does not change x86 smart battery charging state machine behavior. BUG=chrome-os-partner:21181 BRANCH=None TEST=manual build test: util/ecmakeall.sh hosttests: make hosttests && make runtests Change-Id: I48e76826b5555f64b78e3c063ce5f02416c72aa2 Signed-off-by: Rong Chang <rongchang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/62978 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'board/pit')
-rw-r--r--board/pit/board.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/pit/board.c b/board/pit/board.c
index 018fbbf0f8..c5167eb3a2 100644
--- a/board/pit/board.c
+++ b/board/pit/board.c
@@ -4,6 +4,7 @@
*/
/* Pit board-specific configuration */
+#include "battery_pack.h"
#include "common.h"
#include "extpower.h"
#include "gaia_power.h"
@@ -80,6 +81,16 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
{"KB_OUT12", GPIO_A, (1<<13), GPIO_KB_OUTPUT, NULL},
};
+/* Battery temperature ranges in degrees C */
+const struct battery_temperature_ranges bat_temp_ranges = {
+ .start_charging_min_c = 0,
+ .start_charging_max_c = 45,
+ .charging_min_c = 0,
+ .charging_max_c = 60,
+ .discharging_min_c = 0,
+ .discharging_max_c = 100,
+};
+
/* I2C ports */
const struct i2c_port_t i2c_ports[I2C_PORTS_USED] = {
{"host", I2C_PORT_HOST, 100},