summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm
diff options
context:
space:
mode:
authorLaurent Pinchart2017-08-11 15:49:05 +0200
committerTomi Valkeinen2017-08-16 11:52:41 +0200
commitba63b6352c753f592e35b6b828f9ffd4e9ac6aa1 (patch)
tree5540401380314339c259082657f3988569a97c65 /drivers/gpu/drm/omapdrm
parentdrm: omapdrm: hdmi: Pass HDMI core version as integer to HDMI audio (diff)
downloadkernel-qcow2-linux-ba63b6352c753f592e35b6b828f9ffd4e9ac6aa1.tar.gz
kernel-qcow2-linux-ba63b6352c753f592e35b6b828f9ffd4e9ac6aa1.tar.xz
kernel-qcow2-linux-ba63b6352c753f592e35b6b828f9ffd4e9ac6aa1.zip
drm: omapdrm: hdmi: Configure the PLL from the HDMI core version
The OMAP4 and OMAP5 PLLs have different properties that require specific handling in the HDMI PLL driver. This needs knowledge of the PLL version, which is currently inferred from the DSS version. AS part of the effort to remove usage of the DSS version, use the HDMI controller version instead. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/hdmi_pll.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi_pll.c b/drivers/gpu/drm/omapdrm/dss/hdmi_pll.c
index 0988f2d7a31f..55bee81f4dd5 100644
--- a/drivers/gpu/drm/omapdrm/dss/hdmi_pll.c
+++ b/drivers/gpu/drm/omapdrm/dss/hdmi_pll.c
@@ -146,21 +146,10 @@ static int hdmi_init_pll_data(struct platform_device *pdev,
pll->base = hpll->base;
pll->clkin = clk;
- switch (omapdss_get_version()) {
- case OMAPDSS_VER_OMAP4430_ES1:
- case OMAPDSS_VER_OMAP4430_ES2:
- case OMAPDSS_VER_OMAP4:
+ if (hpll->wp->version == 4)
pll->hw = &dss_omap4_hdmi_pll_hw;
- break;
-
- case OMAPDSS_VER_OMAP5:
- case OMAPDSS_VER_DRA7xx:
+ else
pll->hw = &dss_omap5_hdmi_pll_hw;
- break;
-
- default:
- return -ENODEV;
- }
pll->ops = &hdmi_pll_ops;