summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHyongbin Kim <hyongbink@nvidia.com>2013-07-15 14:21:52 +0900
committerGabby Lee <galee@nvidia.com>2013-08-23 04:46:33 -0700
commit2ea3fa785bf8d8fe753fa7653b6a5b46eb864f3e (patch)
tree677b08d0b73afbf72b6d281901e560f7b8fb0882 /include
parenta052672cbc6a941b724664d20fb49c767989e5e6 (diff)
hwmon: ina230: add export set current threshold
At low SOC, we need to limit current for system stability. When set low value to current threshold, should set minimum cpu number to avoid power down of current monitor. Bug 1304204 Bug 1316595 Change-Id: I52219755a62acbb5289a6d28237b5ac57fa1a54a Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com> Reviewed-on: http://git-master/r/249078 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/platform_data/ina230.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/ina230.h b/include/linux/platform_data/ina230.h
index 19e7dd6c6d21..e09792619816 100644
--- a/include/linux/platform_data/ina230.h
+++ b/include/linux/platform_data/ina230.h
@@ -37,6 +37,9 @@ struct ina230_platform_data {
u32 precision_multiplier;
int shunt_polarity_inverted; /* 0: not invert, 1: inverted */
};
+
#define INA230_ERROR 0xFFFF
s32 ina230_get_current(void);
+s32 ina230_set_current_threshold(s32 current_threshold, int min_cpu);
+
#endif /* _INA230_H */