aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/omap2/dss/hdmi4.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-10-16 08:31:38 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-11-12 06:40:26 -0500
commit03aafa2cd84e6406ce3ceedca245a6a731f9b77b (patch)
treea1a72e150af63f1bd55507e30c330853dd7d15de /drivers/video/fbdev/omap2/dss/hdmi4.c
parentb0295f165f0a9e1bde4f4592df04e85a28be2ce3 (diff)
OMAPDSS: HDMI: store WP pointer to hdmi_pll_data
HDMI PLL code needs the pointer to the WP block so that it can manage its power. Currently this is passed as a function parameter to hdmi_pll_enable and hdmi_pll_disable. To make the PLL function adhere to the DSS PLL API, we need to remove the WP parameter. This patch stores the WP pointer to hdmi_pll_data in hdmi_pll_init, so that it's available when needed. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev/omap2/dss/hdmi4.c')
-rw-r--r--drivers/video/fbdev/omap2/dss/hdmi4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi4.c b/drivers/video/fbdev/omap2/dss/hdmi4.c
index 1f2fbccaff1f..2094b6eae99e 100644
--- a/drivers/video/fbdev/omap2/dss/hdmi4.c
+++ b/drivers/video/fbdev/omap2/dss/hdmi4.c
@@ -197,7 +197,7 @@ static int hdmi_power_on_full(struct omap_dss_device *dssdev)
197 hdmi_pll_compute(&hdmi.pll, clk_get_rate(hdmi.sys_clk), p->pixelclock); 197 hdmi_pll_compute(&hdmi.pll, clk_get_rate(hdmi.sys_clk), p->pixelclock);
198 198
199 /* config the PLL and PHY hdmi_set_pll_pwrfirst */ 199 /* config the PLL and PHY hdmi_set_pll_pwrfirst */
200 r = hdmi_pll_enable(&hdmi.pll, &hdmi.wp); 200 r = hdmi_pll_enable(&hdmi.pll);
201 if (r) { 201 if (r) {
202 DSSDBG("Failed to lock PLL\n"); 202 DSSDBG("Failed to lock PLL\n");
203 goto err_pll_enable; 203 goto err_pll_enable;
@@ -241,7 +241,7 @@ err_vid_enable:
241err_phy_cfg: 241err_phy_cfg:
242 hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_OFF); 242 hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_OFF);
243err_phy_pwr: 243err_phy_pwr:
244 hdmi_pll_disable(&hdmi.pll, &hdmi.wp); 244 hdmi_pll_disable(&hdmi.pll);
245err_pll_enable: 245err_pll_enable:
246 hdmi_power_off_core(dssdev); 246 hdmi_power_off_core(dssdev);
247 return -EIO; 247 return -EIO;
@@ -259,7 +259,7 @@ static void hdmi_power_off_full(struct omap_dss_device *dssdev)
259 259
260 hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_OFF); 260 hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_OFF);
261 261
262 hdmi_pll_disable(&hdmi.pll, &hdmi.wp); 262 hdmi_pll_disable(&hdmi.pll);
263 263
264 hdmi_power_off_core(dssdev); 264 hdmi_power_off_core(dssdev);
265} 265}
@@ -688,7 +688,7 @@ static int omapdss_hdmihw_probe(struct platform_device *pdev)
688 if (r) 688 if (r)
689 return r; 689 return r;
690 690
691 r = hdmi_pll_init(pdev, &hdmi.pll); 691 r = hdmi_pll_init(pdev, &hdmi.pll, &hdmi.wp);
692 if (r) 692 if (r)
693 return r; 693 return r;
694 694