summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2016-08-03 14:26:22 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-03 19:41:02 -0700
commitd93cbcff8df27a0b0a490e3caf24d87cc289c55b (patch)
treee6710941e23a0137f3611ee07c486cbe5d42084c /include
parentd67f3aa1f60ff9abd4f03c58a103ab4eecf99e7f (diff)
downloadchrome-ec-d93cbcff8df27a0b0a490e3caf24d87cc289c55b.tar.gz
reef: Add code to read battery temperature
Reef doesn't have the battery temperature sense pin connected to the charger, hence reading the battery temperature from the battery registers. BUG=chrome-os-partner:55834 BRANCH=none TEST=Using 'battery' & 'temps' console command verified, temperature readings are same from both the commands. Change-Id: I897e453296151f31344f3e0434202baa67c7025d Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/365970 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 0142e1286c..182d56ba78 100644
--- a/include/config.h
+++ b/include/config.h
@@ -364,6 +364,12 @@
#undef CONFIG_CHARGER_TPS65090 /* Note: does not use CONFIG_CHARGER */
/*
+ * If the battery temperature sense pin is connected to charger,
+ * get the battery temperature from the charger.
+ */
+#undef CONFIG_CHARGER_BATTERY_TSENSE
+
+/*
* BQ2589x IR Compensation settings.
* Should be the combination of BQ2589X_IR_TREG_xxxC, BQ2589X_IR_VCLAMP_yyyMV
* and BQ2589X_IR_BAT_COMP_zzzMOHM.