Mixer similarly to DECON-TV requires enabled clock generated
by HDMI-PHY to proper work.
The patch fixes hang on Odroid (X)U3 during console blank/unblank.
Change-Id: I9fa14fe02e54d2981fa06b43654f9616cd7074a8
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
CRCCTRL_CRCEN | CRCCTRL_CRCSTART_F | CRCCTRL_CRCCLKEN);
}
-/* this function will be replaced by clk API call */
-#ifdef CONFIG_DRM_EXYNOS_HDMI
-void exynos_hdmiphy_enable(struct exynos_drm_crtc *crtc);
-#else
-static void exynos_hdmiphy_enable(struct exynos_drm_crtc *crtc) {}
-#endif
-
static void decon_dpms_on(struct decon_context *ctx)
{
int ret;
}
#endif
+#ifdef CONFIG_DRM_EXYNOS_HDMI
+void exynos_hdmiphy_enable(struct exynos_drm_crtc *crtc);
+#else
+static void exynos_hdmiphy_enable(struct exynos_drm_crtc *crtc) {}
+#endif
+
/* This function creates a encoder and a connector, and initializes them. */
int exynos_drm_create_enc_conn(struct drm_device *dev,
struct exynos_drm_display *display);
ctx->powered = true;
mutex_unlock(&ctx->mixer_mutex);
+ exynos_hdmiphy_enable(ctx->crtc);
+
mixer_reg_writemask(res, MXR_STATUS, ~0, MXR_STATUS_SOFT_RESET);
mixer_reg_write(res, MXR_INT_EN, ctx->int_en);