Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From a350fcd817bdba8674c2d7ac488ccb230d3d69e2 Mon Sep 17 00:00:00 2001
- From: Marek Szyprowski <m.szyprowski@samsung.com>
- Date: Tue, 26 Jan 2016 09:45:13 +0100
- Subject: [PATCH] drm/exynos: mixer: add experimental support for 1024x600@43Hz
- mode
- This patch adds experimental configuration data for HDMI PHY for 32MHz
- pixel clock modes. This enables support for WaveShare 7inch HDMI LCD (C)
- HDMI panel.
- Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
- Change-Id: I840da27e5d496b4abf04e9fe2380f678cfd990ef
- ---
- drivers/gpu/drm/exynos/exynos_hdmi.c | 18 ++++++++++++++++++
- drivers/gpu/drm/exynos/exynos_mixer.c | 3 ++-
- 2 files changed, 20 insertions(+), 1 deletion(-)
- diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
- index adc69331dafe..e70838f621ff 100644
- --- a/drivers/gpu/drm/exynos/exynos_hdmi.c
- +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
- @@ -226,6 +226,15 @@ static const struct hdmiphy_config hdmiphy_v14_configs[] = {
- },
- },
- {
- + .pixel_clock = 32000000,
- + .conf = {
- + 0x01, 0x51, 0x28, 0x55, 0x40, 0x01, 0x00, 0x08,
- + 0x82, 0x80, 0x0e, 0xd9, 0x45, 0xa0, 0xac, 0x80,
- + 0x08, 0x80, 0x11, 0x04, 0x02, 0x22, 0x44, 0x86,
- + 0x54, 0xc2, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
- + },
- + },
- + {
- .pixel_clock = 36000000,
- .conf = {
- 0x01, 0x51, 0x2d, 0x55, 0x40, 0x01, 0x00, 0x08,
- @@ -391,6 +400,15 @@ static const struct hdmiphy_config hdmiphy_5420_configs[] = {
- },
- },
- {
- + .pixel_clock = 32000000,
- + .conf = {
- + 0x01, 0x51, 0x28, 0x55, 0x40, 0x40, 0x00, 0xC8,
- + 0x02, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80,
- + 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66,
- + 0x54, 0xC1, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80,
- + },
- + },
- + {
- .pixel_clock = 36000000,
- .conf = {
- 0x01, 0x51, 0x2D, 0x55, 0x40, 0x40, 0x00, 0xC8,
- diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
- index 1dd65e261385..17e0dafe5a20 100644
- --- a/drivers/gpu/drm/exynos/exynos_mixer.c
- +++ b/drivers/gpu/drm/exynos/exynos_mixer.c
- @@ -413,6 +413,7 @@ static void mixer_cfg_rgb_fmt(struct mixer_context *ctx, unsigned int height)
- switch (height) {
- case 480:
- case 576:
- + case 600:
- val = MXR_CFG_RGB601_0_255;
- break;
- case 720:
- @@ -1126,7 +1127,7 @@ static int mixer_atomic_check(struct exynos_drm_crtc *crtc,
- return 0;
- /* Check against some specific resolutions. */
- - if ((w == 1024 && h == 768) ||
- + if ((w == 1024 && (h == 768 || h == 600)) ||
- (w == 1366 && h == 768) ||
- (w == 1280 && h == 1024))
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement