diff options
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index e05c86af9c35..d0f4f5d5a9f9 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
@@ -1683,16 +1683,44 @@ static void hdmiphy_conf_reset(struct hdmi_context *hdata) | |||
1683 | 1683 | ||
1684 | static void hdmiphy_poweron(struct hdmi_context *hdata) | 1684 | static void hdmiphy_poweron(struct hdmi_context *hdata) |
1685 | { | 1685 | { |
1686 | if (hdata->type == HDMI_TYPE14) | 1686 | if (hdata->type != HDMI_TYPE14) |
1687 | hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, 0, | 1687 | return; |
1688 | HDMI_PHY_POWER_OFF_EN); | 1688 | |
1689 | DRM_DEBUG_KMS("\n"); | ||
1690 | |||
1691 | /* For PHY Mode Setting */ | ||
1692 | hdmiphy_reg_writeb(hdata, HDMIPHY_MODE_SET_DONE, | ||
1693 | HDMI_PHY_ENABLE_MODE_SET); | ||
1694 | /* Phy Power On */ | ||
1695 | hdmiphy_reg_writeb(hdata, HDMIPHY_POWER, | ||
1696 | HDMI_PHY_POWER_ON); | ||
1697 | /* For PHY Mode Setting */ | ||
1698 | hdmiphy_reg_writeb(hdata, HDMIPHY_MODE_SET_DONE, | ||
1699 | HDMI_PHY_DISABLE_MODE_SET); | ||
1700 | /* PHY SW Reset */ | ||
1701 | hdmiphy_conf_reset(hdata); | ||
1689 | } | 1702 | } |
1690 | 1703 | ||
1691 | static void hdmiphy_poweroff(struct hdmi_context *hdata) | 1704 | static void hdmiphy_poweroff(struct hdmi_context *hdata) |
1692 | { | 1705 | { |
1693 | if (hdata->type == HDMI_TYPE14) | 1706 | if (hdata->type != HDMI_TYPE14) |
1694 | hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, ~0, | 1707 | return; |
1695 | HDMI_PHY_POWER_OFF_EN); | 1708 | |
1709 | DRM_DEBUG_KMS("\n"); | ||
1710 | |||
1711 | /* PHY SW Reset */ | ||
1712 | hdmiphy_conf_reset(hdata); | ||
1713 | /* For PHY Mode Setting */ | ||
1714 | hdmiphy_reg_writeb(hdata, HDMIPHY_MODE_SET_DONE, | ||
1715 | HDMI_PHY_ENABLE_MODE_SET); | ||
1716 | |||
1717 | /* PHY Power Off */ | ||
1718 | hdmiphy_reg_writeb(hdata, HDMIPHY_POWER, | ||
1719 | HDMI_PHY_POWER_OFF); | ||
1720 | |||
1721 | /* For PHY Mode Setting */ | ||
1722 | hdmiphy_reg_writeb(hdata, HDMIPHY_MODE_SET_DONE, | ||
1723 | HDMI_PHY_DISABLE_MODE_SET); | ||
1696 | } | 1724 | } |
1697 | 1725 | ||
1698 | static void hdmiphy_conf_apply(struct hdmi_context *hdata) | 1726 | static void hdmiphy_conf_apply(struct hdmi_context *hdata) |