summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXin Xie <xxie@nvidia.com>2013-06-03 18:23:46 -0700
committerRiham Haidar <rhaidar@nvidia.com>2013-06-12 18:51:48 -0700
commit6b4edf8cc448f0b3f65e718bcc248d0f2d205c39 (patch)
treeaed179999096e2874a457c37bb55d0a4b065faa5 /include
parent65198caacee0f8a273e80abeeadde496330e3c3f (diff)
arm: tegra: pluto: enable INA230/INA231/HPA01112 current sensing
Note: HPA01112, INA230 and INA231 are similar devices and using the same driver. This patch will set correct calibration for the INA230 on Pluto platform based on the battery in-serial resistor value and max battery current. After this patch will can read back battery current and power correctly using the INA230. This patch also leave comment on how to enable the over-current(OC) throttling using the INA230 device. It is not enabled on the Pluto platform currently because MAX77665 is used for the OC throttling. bug 1298931 Change-Id: I37f40e0d3a9ca14314af4f7ee5a5007c5665581f Signed-off-by: Xin Xie <xxie@nvidia.com> Reviewed-on: http://git-master/r/235214 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/ina230.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/ina230.h b/include/linux/platform_data/ina230.h
index b5d4f8fa9ec8..ebd502f23b44 100644
--- a/include/linux/platform_data/ina230.h
+++ b/include/linux/platform_data/ina230.h
@@ -24,6 +24,7 @@
#define INA3221_RAIL_NAME_SIZE 32
+#define POWER_LSB_TO_CURRENT_LSB_RATIO 25
struct ina230_platform_data {
const char rail_name[INA3221_RAIL_NAME_SIZE];
s32 current_threshold;