diff options
author | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2013-07-02 11:02:22 -0400 |
---|---|---|
committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2013-07-23 19:47:17 -0400 |
commit | fe477cc1b09ecd957c8c201b4f9c84e9d03621d4 (patch) | |
tree | 7f389d0a115f92c724cd410fd60efb0cf646fd20 | |
parent | 2adb29ff61c97982addf702d7da106569e217329 (diff) |
drm/gma500: Make use of gma_pipe_has_type()
Replace any use of xxx_intel_pipe_has_type() with the generic
gma_pipe_has_type() function. Poulsbo still use it but that will be
removed when we rip out psb_intel_pipe_has_type().
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
-rw-r--r-- | drivers/gpu/drm/gma500/cdv_intel_display.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/mdfld_intel_display.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/oaktrail_crtc.c | 6 |
3 files changed, 11 insertions, 11 deletions
diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500/cdv_intel_display.c index 82f1ae46e0ac..fe6c6594eb19 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_display.c +++ b/drivers/gpu/drm/gma500/cdv_intel_display.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "psb_drv.h" | 26 | #include "psb_drv.h" |
27 | #include "psb_intel_drv.h" | 27 | #include "psb_intel_drv.h" |
28 | #include "psb_intel_reg.h" | 28 | #include "psb_intel_reg.h" |
29 | #include "psb_intel_display.h" | 29 | #include "gma_display.h" |
30 | #include "power.h" | 30 | #include "power.h" |
31 | #include "cdv_device.h" | 31 | #include "cdv_device.h" |
32 | 32 | ||
@@ -375,7 +375,7 @@ static const struct gma_limit_t *cdv_intel_limit(struct drm_crtc *crtc, | |||
375 | int refclk) | 375 | int refclk) |
376 | { | 376 | { |
377 | const struct gma_limit_t *limit; | 377 | const struct gma_limit_t *limit; |
378 | if (psb_intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) { | 378 | if (gma_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) { |
379 | /* | 379 | /* |
380 | * Now only single-channel LVDS is supported on CDV. If it is | 380 | * Now only single-channel LVDS is supported on CDV. If it is |
381 | * incorrect, please add the dual-channel LVDS. | 381 | * incorrect, please add the dual-channel LVDS. |
@@ -384,8 +384,8 @@ static const struct gma_limit_t *cdv_intel_limit(struct drm_crtc *crtc, | |||
384 | limit = &cdv_intel_limits[CDV_LIMIT_SINGLE_LVDS_96]; | 384 | limit = &cdv_intel_limits[CDV_LIMIT_SINGLE_LVDS_96]; |
385 | else | 385 | else |
386 | limit = &cdv_intel_limits[CDV_LIMIT_SINGLE_LVDS_100]; | 386 | limit = &cdv_intel_limits[CDV_LIMIT_SINGLE_LVDS_100]; |
387 | } else if (psb_intel_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) || | 387 | } else if (gma_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) || |
388 | psb_intel_pipe_has_type(crtc, INTEL_OUTPUT_EDP)) { | 388 | gma_pipe_has_type(crtc, INTEL_OUTPUT_EDP)) { |
389 | if (refclk == 27000) | 389 | if (refclk == 27000) |
390 | limit = &cdv_intel_limits[CDV_LIMIT_DP_27]; | 390 | limit = &cdv_intel_limits[CDV_LIMIT_DP_27]; |
391 | else | 391 | else |
diff --git a/drivers/gpu/drm/gma500/mdfld_intel_display.c b/drivers/gpu/drm/gma500/mdfld_intel_display.c index 74485dc43945..aa6528dae072 100644 --- a/drivers/gpu/drm/gma500/mdfld_intel_display.c +++ b/drivers/gpu/drm/gma500/mdfld_intel_display.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | #include <drm/drmP.h> | 24 | #include <drm/drmP.h> |
25 | #include "psb_intel_reg.h" | 25 | #include "psb_intel_reg.h" |
26 | #include "psb_intel_display.h" | 26 | #include "gma_display.h" |
27 | #include "framebuffer.h" | 27 | #include "framebuffer.h" |
28 | #include "mdfld_output.h" | 28 | #include "mdfld_output.h" |
29 | #include "mdfld_dsi_output.h" | 29 | #include "mdfld_dsi_output.h" |
@@ -611,8 +611,8 @@ static const struct mrst_limit_t *mdfld_limit(struct drm_crtc *crtc) | |||
611 | struct drm_device *dev = crtc->dev; | 611 | struct drm_device *dev = crtc->dev; |
612 | struct drm_psb_private *dev_priv = dev->dev_private; | 612 | struct drm_psb_private *dev_priv = dev->dev_private; |
613 | 613 | ||
614 | if (psb_intel_pipe_has_type(crtc, INTEL_OUTPUT_MIPI) | 614 | if (gma_pipe_has_type(crtc, INTEL_OUTPUT_MIPI) |
615 | || psb_intel_pipe_has_type(crtc, INTEL_OUTPUT_MIPI2)) { | 615 | || gma_pipe_has_type(crtc, INTEL_OUTPUT_MIPI2)) { |
616 | if ((ksel == KSEL_CRYSTAL_19) || (ksel == KSEL_BYPASS_19)) | 616 | if ((ksel == KSEL_CRYSTAL_19) || (ksel == KSEL_BYPASS_19)) |
617 | limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_19]; | 617 | limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_19]; |
618 | else if (ksel == KSEL_BYPASS_25) | 618 | else if (ksel == KSEL_BYPASS_25) |
@@ -624,7 +624,7 @@ static const struct mrst_limit_t *mdfld_limit(struct drm_crtc *crtc) | |||
624 | (dev_priv->core_freq == 100 || | 624 | (dev_priv->core_freq == 100 || |
625 | dev_priv->core_freq == 200)) | 625 | dev_priv->core_freq == 200)) |
626 | limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_100]; | 626 | limit = &mdfld_limits[MDFLD_LIMT_DSIPLL_100]; |
627 | } else if (psb_intel_pipe_has_type(crtc, INTEL_OUTPUT_HDMI)) { | 627 | } else if (gma_pipe_has_type(crtc, INTEL_OUTPUT_HDMI)) { |
628 | if ((ksel == KSEL_CRYSTAL_19) || (ksel == KSEL_BYPASS_19)) | 628 | if ((ksel == KSEL_CRYSTAL_19) || (ksel == KSEL_BYPASS_19)) |
629 | limit = &mdfld_limits[MDFLD_LIMT_DPLL_19]; | 629 | limit = &mdfld_limits[MDFLD_LIMT_DPLL_19]; |
630 | else if (ksel == KSEL_BYPASS_25) | 630 | else if (ksel == KSEL_BYPASS_25) |
diff --git a/drivers/gpu/drm/gma500/oaktrail_crtc.c b/drivers/gpu/drm/gma500/oaktrail_crtc.c index 3071526bc3c1..75567ee8a519 100644 --- a/drivers/gpu/drm/gma500/oaktrail_crtc.c +++ b/drivers/gpu/drm/gma500/oaktrail_crtc.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include "psb_drv.h" | 23 | #include "psb_drv.h" |
24 | #include "psb_intel_drv.h" | 24 | #include "psb_intel_drv.h" |
25 | #include "psb_intel_reg.h" | 25 | #include "psb_intel_reg.h" |
26 | #include "psb_intel_display.h" | 26 | #include "gma_display.h" |
27 | #include "power.h" | 27 | #include "power.h" |
28 | 28 | ||
29 | struct psb_intel_range_t { | 29 | struct psb_intel_range_t { |
@@ -88,8 +88,8 @@ static const struct oaktrail_limit_t *oaktrail_limit(struct drm_crtc *crtc) | |||
88 | struct drm_device *dev = crtc->dev; | 88 | struct drm_device *dev = crtc->dev; |
89 | struct drm_psb_private *dev_priv = dev->dev_private; | 89 | struct drm_psb_private *dev_priv = dev->dev_private; |
90 | 90 | ||
91 | if (psb_intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS) | 91 | if (gma_pipe_has_type(crtc, INTEL_OUTPUT_LVDS) |
92 | || psb_intel_pipe_has_type(crtc, INTEL_OUTPUT_MIPI)) { | 92 | || gma_pipe_has_type(crtc, INTEL_OUTPUT_MIPI)) { |
93 | switch (dev_priv->core_freq) { | 93 | switch (dev_priv->core_freq) { |
94 | case 100: | 94 | case 100: |
95 | limit = &oaktrail_limits[MRST_LIMIT_LVDS_100L]; | 95 | limit = &oaktrail_limits[MRST_LIMIT_LVDS_100L]; |