summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFinley Xiao <finley.xiao@rock-chips.com>2019-02-14 20:37:43 +0800
committerTao Huang <huangtao@rock-chips.com>2019-03-08 10:27:18 +0800
commit667aaaf97737ca38052e9f7b38fa8bb6d479f974 (patch)
treec50fe71ddc4fd4f34cee68019ec8e642d2dbb922 /include
parent0c17d3a6a044e9fa65813df4c733ee836a7cc9f4 (diff)
cpufreq: dt: Implement rockchip_of_get_leakage()
Change-Id: I6d1bf9ee6957455c2cb6623aa112d918a9fea4d4 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r--include/soc/rockchip/rockchip_opp_select.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/soc/rockchip/rockchip_opp_select.h b/include/soc/rockchip/rockchip_opp_select.h
index ed4495355d94..5c0ca56f98b6 100644
--- a/include/soc/rockchip/rockchip_opp_select.h
+++ b/include/soc/rockchip/rockchip_opp_select.h
@@ -48,6 +48,7 @@ struct thermal_opp_info {
};
#ifdef CONFIG_ROCKCHIP_OPP
+int rockchip_of_get_leakage(struct device *dev, char *lkg_name, int *leakage);
void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np,
char *lkg_name, int process,
int *volt_sel, int *scale_sel);
@@ -83,6 +84,12 @@ int rockchip_dev_low_temp_adjust(struct thermal_opp_info *info,
int rockchip_dev_high_temp_adjust(struct thermal_opp_info *info,
bool is_high);
#else
+static inline int rockchip_of_get_leakage(struct device *dev, char *lkg_name,
+ int *leakage)
+{
+ return -ENOTSUPP;
+}
+
static inline void rockchip_of_get_lkg_sel(struct device *dev,
struct device_node *np,
char *lkg_name, int process,