diff options
author | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2013-09-16 11:54:54 -0400 |
---|---|---|
committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2013-11-08 10:22:06 -0500 |
commit | cf8efd3afeff02fed2e2937ab3006618919bf65a (patch) | |
tree | d40138830104e33e9f944da7689d8ddd9d02e79b | |
parent | 9d3e2f5304c77c2f4dcb96f03307575b25597b9a (diff) |
drm/gma500: Add chip specific sdvo masks
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
-rw-r--r-- | drivers/gpu/drm/gma500/cdv_device.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/framebuffer.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/oaktrail_device.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/psb_device.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drv.h | 1 |
5 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/cdv_device.c b/drivers/gpu/drm/gma500/cdv_device.c index 162f686c532d..5a9a6a3063a8 100644 --- a/drivers/gpu/drm/gma500/cdv_device.c +++ b/drivers/gpu/drm/gma500/cdv_device.c | |||
@@ -634,6 +634,7 @@ const struct psb_ops cdv_chip_ops = { | |||
634 | .crtcs = 2, | 634 | .crtcs = 2, |
635 | .hdmi_mask = (1 << 0) | (1 << 1), | 635 | .hdmi_mask = (1 << 0) | (1 << 1), |
636 | .lvds_mask = (1 << 1), | 636 | .lvds_mask = (1 << 1), |
637 | .sdvo_mask = (1 << 0), | ||
637 | .cursor_needs_phys = 0, | 638 | .cursor_needs_phys = 0, |
638 | .sgx_offset = MRST_SGX_OFFSET, | 639 | .sgx_offset = MRST_SGX_OFFSET, |
639 | .chip_setup = cdv_chip_setup, | 640 | .chip_setup = cdv_chip_setup, |
diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c index 01dd7d225762..94b3fec22c28 100644 --- a/drivers/gpu/drm/gma500/framebuffer.c +++ b/drivers/gpu/drm/gma500/framebuffer.c | |||
@@ -714,7 +714,7 @@ static void psb_setup_outputs(struct drm_device *dev) | |||
714 | clone_mask = (1 << INTEL_OUTPUT_ANALOG); | 714 | clone_mask = (1 << INTEL_OUTPUT_ANALOG); |
715 | break; | 715 | break; |
716 | case INTEL_OUTPUT_SDVO: | 716 | case INTEL_OUTPUT_SDVO: |
717 | crtc_mask = ((1 << 0) | (1 << 1)); | 717 | crtc_mask = dev_priv->ops->sdvo_mask; |
718 | clone_mask = (1 << INTEL_OUTPUT_SDVO); | 718 | clone_mask = (1 << INTEL_OUTPUT_SDVO); |
719 | break; | 719 | break; |
720 | case INTEL_OUTPUT_LVDS: | 720 | case INTEL_OUTPUT_LVDS: |
diff --git a/drivers/gpu/drm/gma500/oaktrail_device.c b/drivers/gpu/drm/gma500/oaktrail_device.c index 08747fd7105c..80798517d93e 100644 --- a/drivers/gpu/drm/gma500/oaktrail_device.c +++ b/drivers/gpu/drm/gma500/oaktrail_device.c | |||
@@ -546,6 +546,7 @@ const struct psb_ops oaktrail_chip_ops = { | |||
546 | .crtcs = 2, | 546 | .crtcs = 2, |
547 | .hdmi_mask = (1 << 1), | 547 | .hdmi_mask = (1 << 1), |
548 | .lvds_mask = (1 << 0), | 548 | .lvds_mask = (1 << 0), |
549 | .sdvo_mask = (1 << 1), | ||
549 | .cursor_needs_phys = 0, | 550 | .cursor_needs_phys = 0, |
550 | .sgx_offset = MRST_SGX_OFFSET, | 551 | .sgx_offset = MRST_SGX_OFFSET, |
551 | 552 | ||
diff --git a/drivers/gpu/drm/gma500/psb_device.c b/drivers/gpu/drm/gma500/psb_device.c index 697678619bd1..23fb33f1471b 100644 --- a/drivers/gpu/drm/gma500/psb_device.c +++ b/drivers/gpu/drm/gma500/psb_device.c | |||
@@ -373,6 +373,7 @@ const struct psb_ops psb_chip_ops = { | |||
373 | .crtcs = 2, | 373 | .crtcs = 2, |
374 | .hdmi_mask = (1 << 0), | 374 | .hdmi_mask = (1 << 0), |
375 | .lvds_mask = (1 << 1), | 375 | .lvds_mask = (1 << 1), |
376 | .sdvo_mask = (1 << 0), | ||
376 | .cursor_needs_phys = 1, | 377 | .cursor_needs_phys = 1, |
377 | .sgx_offset = PSB_SGX_OFFSET, | 378 | .sgx_offset = PSB_SGX_OFFSET, |
378 | .chip_setup = psb_chip_setup, | 379 | .chip_setup = psb_chip_setup, |
diff --git a/drivers/gpu/drm/gma500/psb_drv.h b/drivers/gpu/drm/gma500/psb_drv.h index b26d029a2e81..fd93756f41d1 100644 --- a/drivers/gpu/drm/gma500/psb_drv.h +++ b/drivers/gpu/drm/gma500/psb_drv.h | |||
@@ -672,6 +672,7 @@ struct psb_ops { | |||
672 | int sgx_offset; /* Base offset of SGX device */ | 672 | int sgx_offset; /* Base offset of SGX device */ |
673 | int hdmi_mask; /* Mask of HDMI CRTCs */ | 673 | int hdmi_mask; /* Mask of HDMI CRTCs */ |
674 | int lvds_mask; /* Mask of LVDS CRTCs */ | 674 | int lvds_mask; /* Mask of LVDS CRTCs */ |
675 | int sdvo_mask; /* Mask of SDVO CRTCs */ | ||
675 | int cursor_needs_phys; /* If cursor base reg need physical address */ | 676 | int cursor_needs_phys; /* If cursor base reg need physical address */ |
676 | 677 | ||
677 | /* Sub functions */ | 678 | /* Sub functions */ |