From 71e634507f8819a8d625608215ed4c4b11dda192 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Mon, 28 May 2018 14:47:14 +0800 Subject: soc: rockchip: opp_select: Add support to adjust power scale Change-Id: I2358d75c2fdada7cfe385e85d2106370f9aa5ea3 Signed-off-by: Finley Xiao --- include/soc/rockchip/rockchip_opp_select.h | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'include/soc') 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 -- cgit v1.2.3