diff options
author | Rahul Sharma <rahul.sharma@samsung.com> | 2013-01-15 08:11:05 -0500 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2013-02-21 15:00:27 +0900 |
commit | 438c0f85cbbe6e7025e2375f97f5223b6eac5cd7 (patch) | |
tree | ea3bec17569b0a299a289ce4798ac10bd0e4cbc2 /drivers/gpu/drm/exynos/exynos_drm_hdmi.h | |
parent | 979c0c7eb0fb969f0621c7017a6a87e6a0e36a4c (diff) | |
download | blackbird-op-linux-438c0f85cbbe6e7025e2375f97f5223b6eac5cd7.tar.gz blackbird-op-linux-438c0f85cbbe6e7025e2375f97f5223b6eac5cd7.zip |
drm/exynos: add display-mode-check operation to exynos_mixer_ops struct
This patch adds the display mode check operation to exynos_mixer_ops
in drm-common-hdmi. In Exynos SoCs, mixer IP can put certain restrictions
on the proposed display modes. These restriction needs to be considered
during mode negotiation, which happens immediately after edid parsing.
Both, mixer check-mode and hdmi check-timing callbacks are called one after
another and ANDed result is returned back.
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_hdmi.h')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_hdmi.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_hdmi.h b/drivers/gpu/drm/exynos/exynos_drm_hdmi.h index d80516fc9ed7..b7faa3662307 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_hdmi.h +++ b/drivers/gpu/drm/exynos/exynos_drm_hdmi.h @@ -32,7 +32,7 @@ struct exynos_hdmi_ops { bool (*is_connected)(void *ctx); struct edid *(*get_edid)(void *ctx, struct drm_connector *connector); - int (*check_timing)(void *ctx, void *timing); + int (*check_timing)(void *ctx, struct fb_videomode *timing); int (*power_on)(void *ctx, int mode); /* manager */ @@ -58,6 +58,9 @@ struct exynos_mixer_ops { void (*win_mode_set)(void *ctx, struct exynos_drm_overlay *overlay); void (*win_commit)(void *ctx, int zpos); void (*win_disable)(void *ctx, int zpos); + + /* display */ + int (*check_timing)(void *ctx, struct fb_videomode *timing); }; void exynos_hdmi_drv_attach(struct exynos_drm_hdmi_context *ctx); |