summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHyongbin Kim <hyongbink@nvidia.com>2013-08-06 18:11:17 +0900
committerGabby Lee <galee@nvidia.com>2013-10-13 17:15:18 -0700
commitb64dbff9766278820ee90da79ae3357c97b4eb0b (patch)
treea6ed09cf202f77ea395c1b2bb4f50bed2a8d36bc /include
parent65de17fcd139aae8fb237b11a671c7248803e8d5 (diff)
power: max17048: apply RCOMP for temp compensation
Fuel gauge need to compensate the RCOMP value according to Battery temperature change. For best performance, reduce period to 10sec and apply new RCOMP when temperature is changed over 1.5C. Bug 1304204 Bug 1317331 Change-Id: I4e74d1e39d68297c5df9fccad0cb2879b7663e34 Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com> Reviewed-on: http://git-master/r/258671 (cherry picked from commit c63908df1cd20586cb2481ee8371092416581ae8) Reviewed-on: http://git-master/r/289140 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/max17048_battery.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/max17048_battery.h b/include/linux/max17048_battery.h
index f56cf0fea8cc..4950f35f29b0 100644
--- a/include/linux/max17048_battery.h
+++ b/include/linux/max17048_battery.h
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2009 Samsung Electronics
- * Copyright (C) 2012 Nvidia Cooperation
+ * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved.
* Minkyu Kang <mk7.kang@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
@@ -27,6 +27,8 @@ struct max17048_battery_model {
uint16_t vreset;
uint16_t valert;
uint16_t ocvtest;
+ int t_co_hot;
+ int t_co_cold;
uint8_t data_tbl[MAX17048_DATA_SIZE];
};