drm/exynos/hdmi: always set PHY_POWER_OFF_EN bit 17/93517/6
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 24 Oct 2016 13:17:41 +0000 (15:17 +0200)
committerInki Dae <inki.dae@samsung.com>
Wed, 16 Nov 2016 23:10:49 +0000 (15:10 -0800)
The bit is present in all variants (its default value only differs).
The patch makes the code in-sync with mainline.

Change-Id: I6a2a8fcf9d7f8a5616f64eafec7722a4bf1675fa
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index ef5413818ebab8ff5c3c90421540486a0e2705b0..205db5f78de2c7262ea20892ba9246b661dcd178 100644 (file)
@@ -127,7 +127,6 @@ struct hdmi_driver_data {
        unsigned int type;
        unsigned int is_apb_phy:1;
        unsigned int has_sysreg:1;
-       unsigned int has_phy_power:1;
        u8 phy_mode_set_done;
        struct hdmiphy_configs phy_confs;
        struct string_array_spec clk_gates;
@@ -662,7 +661,6 @@ static const struct hdmi_driver_data exynos5430_hdmi_driver_data = {
        .type           = HDMI_TYPE14,
        .is_apb_phy     = 1,
        .has_sysreg     = 1,
-       .has_phy_power  = 1,
        .phy_confs      = INIT_ARRAY_SPEC(hdmiphy_5430_configs),
        .clk_gates      = INIT_ARRAY_SPEC(hdmi_clk_gates5430),
        .clk_muxes      = INIT_ARRAY_SPEC(hdmi_clk_muxes5430),
@@ -1586,15 +1584,6 @@ static void hdmi_set_refclk(struct hdmi_context *hdata, bool on)
                           SYSREG_HDMI_REFCLK_INT_CLK, on ? ~0 : 0);
 }
 
-static void hdmi_phy_power(struct hdmi_context *hdata, bool enable)
-{
-       if (!hdata->drv_data->has_phy_power)
-               return;
-
-       hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, enable ? 0 : ~0,
-                          HDMI_PHY_POWER_OFF_EN);
-}
-
 static void hdmiphy_enable(struct hdmi_context *hdata)
 {
        if (hdata->phy_enabled)
@@ -1614,7 +1603,7 @@ static void hdmiphy_enable(struct hdmi_context *hdata)
 
        hdmi_clk_enable_gates(hdata);
 
-       hdmi_phy_power(hdata, true);
+       hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, 0, HDMI_PHY_POWER_OFF_EN);
 
        hdmi_clk_set_parents(hdata, true);
 
@@ -1696,7 +1685,7 @@ static void hdmi_poweroff(struct hdmi_context *hdata)
        /* HDMI System Disable */
        hdmi_reg_writemask(hdata, HDMI_CON_0, 0, HDMI_EN);
 
-       hdmi_phy_power(hdata, false);
+       hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, ~0, HDMI_PHY_POWER_OFF_EN);
 
        hdmiphy_poweroff(hdata);