exynos_dp_init_video(dp);
}
-static void exynos_dp_commit(void *ctx)
-{
- struct exynos_dp_device *dp = ctx;
-
- exynos_dp_config_video(dp);
-}
-
static int exynos_dp_power_off(struct exynos_dp_device *dp)
{
if (!dp->enabled)
schedule_work(&dp->hotplug_work);
exynos_dp_train_link(dp);
- exynos_dp_commit(dp);
+ exynos_dp_config_video(dp);
dp->enabled = true;
return 0;
.is_connected = exynos_dp_is_connected,
.check_timing = exynos_dp_check_timing,
.dpms = exynos_dp_dpms,
- .commit = exynos_dp_commit,
};
static int __devinit exynos_dp_probe(struct platform_device *pdev)
* @is_connected: Returns true if the panel is connected
* @get_edid: Returns an edid with mode data from the panel
* @check_timing: Returns 0 if the given timing is valid for the panel
- * @dpms: Sets the panel's power to mode
+ * @dpms: Sets the panel's power to mode and enables/disables video output
* @mode_fixup: Copies and optionally alters mode to adjusted_mode
* @mode_set: Sets the panel to output mode
- * @commit: Commits changes to the panel from mode_set
* @get_max_res: Returns the maximum resolution in width/height
*/
struct exynos_panel_ops {
struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode);
void (*mode_set)(void *ctx, struct drm_display_mode *mode);
- void (*commit)(void *ctx);
void (*get_max_res)(void *ctx, unsigned int *width,
unsigned int *height);
};
static void exynos_drm_encoder_commit(struct drm_encoder *encoder)
{
- struct exynos_drm_display *display = exynos_drm_get_display(encoder);
-
DRM_DEBUG_KMS("[ENCODER:%d:%s]\n", DRM_BASE_ID(encoder),
drm_get_encoder_name(encoder));
exynos_drm_encoder_dpms(encoder, DRM_MODE_DPMS_ON);
-
- if (display->panel_ops->commit)
- display->panel_ops->commit(display->panel_ctx);
}
static struct drm_crtc *
return 0;
}
-static void vidi_commit(void *ctx)
-{
- struct vidi_context *vidi_ctx = ctx;
-
- DRM_DEBUG_KMS("[CRTC:%d]\n", DRM_BASE_ID(vidi_ctx->crtc));
-
- if (vidi_ctx->suspended)
- return;
-}
-
static struct exynos_panel_ops vidi_panel_ops = {
.is_connected = vidi_display_is_connected,
.get_edid = vidi_get_edid,
.check_timing = vidi_check_timing,
.power = vidi_display_power,
- .commit = vidi_commit,
};
static int vidi_dpms(void *ctx, int mode)
hdmi_v14_mode_set(hdata, mode);
}
-static void hdmi_commit(void *ctx)
-{
- struct hdmi_context *hdata = ctx;
-
- DRM_DEBUG_KMS("is_hdmi_powered_on: %u\n", hdata->is_hdmi_powered_on);
-
- if (!hdata->is_hdmi_powered_on)
- return;
-
- hdmi_conf_apply(hdata);
-}
-
static int hdmiphy_update_bits(struct i2c_client *client, u8 *reg_cache,
u8 reg, u8 mask, u8 val)
{
hdmi_conf_init(hdata);
if (!hdata->is_soc_exynos5)
hdmi_audio_init(hdata);
- hdmi_commit(hdata);
+ hdmi_conf_apply(hdata);
}
static void hdmi_resource_poweroff(struct hdmi_context *hdata)
/* manager */
.mode_fixup = hdmi_mode_fixup,
.mode_set = hdmi_mode_set,
- .commit = hdmi_commit,
};
/*