Loading drivers/clk/qcom/mdss/mdss-pll.h +6 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ #ifndef __MDSS_PLL_H #define __MDSS_PLL_H #include <linux/sde_io_util.h> #include <linux/clk-provider.h> #include <linux/io.h> #include <linux/clk.h> Loading @@ -22,6 +22,11 @@ #include "../clk-regmap-divider.h" #include "../clk-regmap-mux.h" #if defined(CONFIG_DRM) #include <linux/sde_io_util.h> #else #include <linux/mdss_io_util.h> #endif #define MDSS_PLL_REG_W(base, offset, data) \ writel_relaxed((data), (base) + (offset)) Loading drivers/video/fbdev/msm/dsi_host_v2.c +5 −5 Original line number Diff line number Diff line Loading @@ -1114,7 +1114,7 @@ static int msm_dsi_on(struct mdss_panel_data *pdata) if (!pdata->panel_info.dynamic_switch_pending) { for (i = 0; !ret && (i < DSI_MAX_PM); i++) { ret = msm_mdss_enable_vreg( ret = msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 1); if (ret) { Loading Loading @@ -1215,7 +1215,7 @@ static int msm_dsi_on(struct mdss_panel_data *pdata) error_vreg: if (ret) { for (; i >= 0; i--) msm_mdss_enable_vreg( msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 0); } Loading Loading @@ -1250,7 +1250,7 @@ static int msm_dsi_off(struct mdss_panel_data *pdata) if (!pdata->panel_info.dynamic_switch_pending) { for (i = DSI_MAX_PM - 1; i >= 0; i--) { ret = msm_mdss_enable_vreg( ret = msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 0); if (ret) Loading Loading @@ -1287,7 +1287,7 @@ static int msm_dsi_cont_on(struct mdss_panel_data *pdata) pinfo = &pdata->panel_info; mutex_lock(&ctrl_pdata->mutex); for (i = 0; !ret && (i < DSI_MAX_PM); i++) { ret = msm_mdss_enable_vreg( ret = msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 1); if (ret) { Loading @@ -1314,7 +1314,7 @@ static int msm_dsi_cont_on(struct mdss_panel_data *pdata) error_vreg: if (ret) { for (; i >= 0; i--) msm_mdss_enable_vreg( msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 0); } Loading drivers/video/fbdev/msm/dsi_io_v2.c +4 −4 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ void msm_dsi_ahb_ctrl(int enable) } } int msm_dsi_io_init(struct platform_device *pdev, struct mdss_module_power *mp) int msm_dsi_io_init(struct platform_device *pdev, struct dss_module_power *mp) { int rc; Loading @@ -67,7 +67,7 @@ int msm_dsi_io_init(struct platform_device *pdev, struct mdss_module_power *mp) return rc; } rc = msm_mdss_config_vreg(&pdev->dev, mp->vreg_config, rc = msm_dss_config_vreg(&pdev->dev, mp->vreg_config, mp->num_vreg, 1); if (rc) { pr_err("fail to initialize DSI regulator\n"); Loading @@ -78,11 +78,11 @@ int msm_dsi_io_init(struct platform_device *pdev, struct mdss_module_power *mp) } void msm_dsi_io_deinit(struct platform_device *pdev, struct mdss_module_power *mp) struct dss_module_power *mp) { if (dsi_io_private) { msm_dsi_clk_deinit(); msm_mdss_config_vreg(&pdev->dev, mp->vreg_config, msm_dss_config_vreg(&pdev->dev, mp->vreg_config, mp->num_vreg, 0); kfree(dsi_io_private); dsi_io_private = NULL; Loading drivers/video/fbdev/msm/dsi_io_v2.h +2 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,10 @@ void msm_dsi_ahb_ctrl(int enable); int msm_dsi_io_init(struct platform_device *dev, struct mdss_module_power *mp); struct dss_module_power *mp); void msm_dsi_io_deinit(struct platform_device *dev, struct mdss_module_power *mp); struct dss_module_power *mp); int msm_dsi_clk_init(struct platform_device *dev); Loading drivers/video/fbdev/msm/dsi_v2.c +3 −3 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ static int dsi_parse_gpio(struct platform_device *pdev, } static void mdss_dsi_put_dt_vreg_data(struct device *dev, struct mdss_module_power *module_power) struct dss_module_power *module_power) { if (!module_power) { pr_err("%s: invalid input\n", __func__); Loading @@ -251,7 +251,7 @@ static void mdss_dsi_put_dt_vreg_data(struct device *dev, } static int mdss_dsi_get_dt_vreg_data(struct device *dev, struct mdss_module_power *mp, enum dsi_pm_type module) struct dss_module_power *mp, enum dsi_pm_type module) { int i = 0, rc = 0; u32 tmp = 0; Loading Loading @@ -286,7 +286,7 @@ static int mdss_dsi_get_dt_vreg_data(struct device *dev, pr_debug("%s: vreg found. count=%d\n", __func__, mp->num_vreg); } mp->vreg_config = devm_kzalloc(dev, sizeof(struct mdss_vreg) * mp->vreg_config = devm_kzalloc(dev, sizeof(struct dss_vreg) * mp->num_vreg, GFP_KERNEL); if (!mp->vreg_config) { rc = -ENOMEM; Loading Loading
drivers/clk/qcom/mdss/mdss-pll.h +6 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ #ifndef __MDSS_PLL_H #define __MDSS_PLL_H #include <linux/sde_io_util.h> #include <linux/clk-provider.h> #include <linux/io.h> #include <linux/clk.h> Loading @@ -22,6 +22,11 @@ #include "../clk-regmap-divider.h" #include "../clk-regmap-mux.h" #if defined(CONFIG_DRM) #include <linux/sde_io_util.h> #else #include <linux/mdss_io_util.h> #endif #define MDSS_PLL_REG_W(base, offset, data) \ writel_relaxed((data), (base) + (offset)) Loading
drivers/video/fbdev/msm/dsi_host_v2.c +5 −5 Original line number Diff line number Diff line Loading @@ -1114,7 +1114,7 @@ static int msm_dsi_on(struct mdss_panel_data *pdata) if (!pdata->panel_info.dynamic_switch_pending) { for (i = 0; !ret && (i < DSI_MAX_PM); i++) { ret = msm_mdss_enable_vreg( ret = msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 1); if (ret) { Loading Loading @@ -1215,7 +1215,7 @@ static int msm_dsi_on(struct mdss_panel_data *pdata) error_vreg: if (ret) { for (; i >= 0; i--) msm_mdss_enable_vreg( msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 0); } Loading Loading @@ -1250,7 +1250,7 @@ static int msm_dsi_off(struct mdss_panel_data *pdata) if (!pdata->panel_info.dynamic_switch_pending) { for (i = DSI_MAX_PM - 1; i >= 0; i--) { ret = msm_mdss_enable_vreg( ret = msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 0); if (ret) Loading Loading @@ -1287,7 +1287,7 @@ static int msm_dsi_cont_on(struct mdss_panel_data *pdata) pinfo = &pdata->panel_info; mutex_lock(&ctrl_pdata->mutex); for (i = 0; !ret && (i < DSI_MAX_PM); i++) { ret = msm_mdss_enable_vreg( ret = msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 1); if (ret) { Loading @@ -1314,7 +1314,7 @@ static int msm_dsi_cont_on(struct mdss_panel_data *pdata) error_vreg: if (ret) { for (; i >= 0; i--) msm_mdss_enable_vreg( msm_dss_enable_vreg( ctrl_pdata->power_data[i].vreg_config, ctrl_pdata->power_data[i].num_vreg, 0); } Loading
drivers/video/fbdev/msm/dsi_io_v2.c +4 −4 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ void msm_dsi_ahb_ctrl(int enable) } } int msm_dsi_io_init(struct platform_device *pdev, struct mdss_module_power *mp) int msm_dsi_io_init(struct platform_device *pdev, struct dss_module_power *mp) { int rc; Loading @@ -67,7 +67,7 @@ int msm_dsi_io_init(struct platform_device *pdev, struct mdss_module_power *mp) return rc; } rc = msm_mdss_config_vreg(&pdev->dev, mp->vreg_config, rc = msm_dss_config_vreg(&pdev->dev, mp->vreg_config, mp->num_vreg, 1); if (rc) { pr_err("fail to initialize DSI regulator\n"); Loading @@ -78,11 +78,11 @@ int msm_dsi_io_init(struct platform_device *pdev, struct mdss_module_power *mp) } void msm_dsi_io_deinit(struct platform_device *pdev, struct mdss_module_power *mp) struct dss_module_power *mp) { if (dsi_io_private) { msm_dsi_clk_deinit(); msm_mdss_config_vreg(&pdev->dev, mp->vreg_config, msm_dss_config_vreg(&pdev->dev, mp->vreg_config, mp->num_vreg, 0); kfree(dsi_io_private); dsi_io_private = NULL; Loading
drivers/video/fbdev/msm/dsi_io_v2.h +2 −2 Original line number Diff line number Diff line Loading @@ -18,10 +18,10 @@ void msm_dsi_ahb_ctrl(int enable); int msm_dsi_io_init(struct platform_device *dev, struct mdss_module_power *mp); struct dss_module_power *mp); void msm_dsi_io_deinit(struct platform_device *dev, struct mdss_module_power *mp); struct dss_module_power *mp); int msm_dsi_clk_init(struct platform_device *dev); Loading
drivers/video/fbdev/msm/dsi_v2.c +3 −3 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ static int dsi_parse_gpio(struct platform_device *pdev, } static void mdss_dsi_put_dt_vreg_data(struct device *dev, struct mdss_module_power *module_power) struct dss_module_power *module_power) { if (!module_power) { pr_err("%s: invalid input\n", __func__); Loading @@ -251,7 +251,7 @@ static void mdss_dsi_put_dt_vreg_data(struct device *dev, } static int mdss_dsi_get_dt_vreg_data(struct device *dev, struct mdss_module_power *mp, enum dsi_pm_type module) struct dss_module_power *mp, enum dsi_pm_type module) { int i = 0, rc = 0; u32 tmp = 0; Loading Loading @@ -286,7 +286,7 @@ static int mdss_dsi_get_dt_vreg_data(struct device *dev, pr_debug("%s: vreg found. count=%d\n", __func__, mp->num_vreg); } mp->vreg_config = devm_kzalloc(dev, sizeof(struct mdss_vreg) * mp->vreg_config = devm_kzalloc(dev, sizeof(struct dss_vreg) * mp->num_vreg, GFP_KERNEL); if (!mp->vreg_config) { rc = -ENOMEM; Loading