summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorFinley Xiao <finley.xiao@rock-chips.com>2018-05-28 14:47:14 +0800
committerTao Huang <huangtao@rock-chips.com>2018-06-01 16:58:27 +0800
commit71e634507f8819a8d625608215ed4c4b11dda192 (patch)
treedc1f4e54ab6e198fbd54e6313c61b37310e9049a /include/soc
parenta487158ec0692bebec14fd495a8a7dce0c8bfdd9 (diff)
soc: rockchip: opp_select: Add support to adjust power scale
Change-Id: I2358d75c2fdada7cfe385e85d2106370f9aa5ea3 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/rockchip/rockchip_opp_select.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/include/soc/rockchip/rockchip_opp_select.h b/include/soc/rockchip/rockchip_opp_select.h
index b4317d030bd9..5d3d37b442ea 100644
--- a/include/soc/rockchip/rockchip_opp_select.h
+++ b/include/soc/rockchip/rockchip_opp_select.h
@@ -6,11 +6,26 @@
#ifndef __SOC_ROCKCHIP_OPP_SELECT_H
#define __SOC_ROCKCHIP_OPP_SELECT_H
-int rockchip_of_get_lkg_scale_sel(struct device *dev, char *name);
-int rockchip_of_get_lkg_volt_sel(struct device *dev, char *name);
-int rockchip_of_get_pvtm_volt_sel(struct device *dev,
- char *clk_name,
- char *reg_name);
-int rockchip_adjust_opp_by_irdrop(struct device *dev);
+void rockchip_of_get_lkg_sel(struct device *dev, struct device_node *np,
+ char *lkg_name, int process,
+ int *volt_sel, int *scale_sel);
+void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np,
+ char *reg_name, int process,
+ int *volt_sel, int *scale_sel);
+void rockchip_of_get_bin_sel(struct device *dev, struct device_node *np,
+ int bin, int *scale_sel);
+int rockchip_get_efuse_value(struct device_node *np, char *porp_name,
+ int *value);
+void rockchip_get_soc_info(struct device *dev,
+ const struct of_device_id *matches,
+ int *bin, int *process);
+void rockchip_get_scale_volt_sel(struct device *dev, char *lkg_name,
+ char *reg_name, int bin, int process,
+ int *scale, int *volt_sel);
+int rockchip_set_opp_info(struct device *dev, int process, int volt_sel);
+int rockchip_adjust_power_scale(struct device *dev, int scale);
+int rockchip_init_opp_table(struct device *dev,
+ const struct of_device_id *matches,
+ char *lkg_name, char *reg_name);
#endif