diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-10-30 04:43:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-10-30 04:43:08 -0400 |
commit | 169ed55bd30305b933f52bfab32a58671d44ab68 (patch) | |
tree | 32e280957474f458901abfce16fa2a1687ef7497 /drivers/video/omap2/omapfb | |
parent | 3d7851b3cdd43a734e5cc4c643fd886ab28ad4d5 (diff) | |
parent | 45f81b1c96d9793e47ce925d257ea693ce0b193e (diff) |
Merge branch 'tip/perf/jump-label-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/urgent
Diffstat (limited to 'drivers/video/omap2/omapfb')
-rw-r--r-- | drivers/video/omap2/omapfb/Kconfig | 2 | ||||
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 26 |
2 files changed, 19 insertions, 9 deletions
diff --git a/drivers/video/omap2/omapfb/Kconfig b/drivers/video/omap2/omapfb/Kconfig index 43496d6c377f..65149b22cf37 100644 --- a/drivers/video/omap2/omapfb/Kconfig +++ b/drivers/video/omap2/omapfb/Kconfig | |||
@@ -3,7 +3,7 @@ menuconfig FB_OMAP2 | |||
3 | depends on FB && OMAP2_DSS | 3 | depends on FB && OMAP2_DSS |
4 | 4 | ||
5 | select OMAP2_VRAM | 5 | select OMAP2_VRAM |
6 | select OMAP2_VRFB | 6 | select OMAP2_VRFB if ARCH_OMAP2 || ARCH_OMAP3 |
7 | select FB_CFB_FILLRECT | 7 | select FB_CFB_FILLRECT |
8 | select FB_CFB_COPYAREA | 8 | select FB_CFB_COPYAREA |
9 | select FB_CFB_IMAGEBLIT | 9 | select FB_CFB_IMAGEBLIT |
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 04034d410d6d..6a704f176c22 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -714,10 +714,10 @@ int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var) | |||
714 | var->pixclock = timings.pixel_clock != 0 ? | 714 | var->pixclock = timings.pixel_clock != 0 ? |
715 | KHZ2PICOS(timings.pixel_clock) : | 715 | KHZ2PICOS(timings.pixel_clock) : |
716 | 0; | 716 | 0; |
717 | var->left_margin = timings.hfp; | 717 | var->left_margin = timings.hbp; |
718 | var->right_margin = timings.hbp; | 718 | var->right_margin = timings.hfp; |
719 | var->upper_margin = timings.vfp; | 719 | var->upper_margin = timings.vbp; |
720 | var->lower_margin = timings.vbp; | 720 | var->lower_margin = timings.vfp; |
721 | var->hsync_len = timings.hsw; | 721 | var->hsync_len = timings.hsw; |
722 | var->vsync_len = timings.vsw; | 722 | var->vsync_len = timings.vsw; |
723 | } else { | 723 | } else { |
@@ -2059,10 +2059,10 @@ static int omapfb_mode_to_timings(const char *mode_str, | |||
2059 | 2059 | ||
2060 | if (r != 0) { | 2060 | if (r != 0) { |
2061 | timings->pixel_clock = PICOS2KHZ(var.pixclock); | 2061 | timings->pixel_clock = PICOS2KHZ(var.pixclock); |
2062 | timings->hfp = var.left_margin; | 2062 | timings->hbp = var.left_margin; |
2063 | timings->hbp = var.right_margin; | 2063 | timings->hfp = var.right_margin; |
2064 | timings->vfp = var.upper_margin; | 2064 | timings->vbp = var.upper_margin; |
2065 | timings->vbp = var.lower_margin; | 2065 | timings->vfp = var.lower_margin; |
2066 | timings->hsw = var.hsync_len; | 2066 | timings->hsw = var.hsync_len; |
2067 | timings->vsw = var.vsync_len; | 2067 | timings->vsw = var.vsync_len; |
2068 | timings->x_res = var.xres; | 2068 | timings->x_res = var.xres; |
@@ -2198,6 +2198,16 @@ static int omapfb_probe(struct platform_device *pdev) | |||
2198 | goto err0; | 2198 | goto err0; |
2199 | } | 2199 | } |
2200 | 2200 | ||
2201 | /* TODO : Replace cpu check with omap_has_vrfb once HAS_FEATURE | ||
2202 | * available for OMAP2 and OMAP3 | ||
2203 | */ | ||
2204 | if (def_vrfb && !cpu_is_omap24xx() && !cpu_is_omap34xx()) { | ||
2205 | def_vrfb = 0; | ||
2206 | dev_warn(&pdev->dev, "VRFB is not supported on this hardware, " | ||
2207 | "ignoring the module parameter vrfb=y\n"); | ||
2208 | } | ||
2209 | |||
2210 | |||
2201 | mutex_init(&fbdev->mtx); | 2211 | mutex_init(&fbdev->mtx); |
2202 | 2212 | ||
2203 | fbdev->dev = &pdev->dev; | 2213 | fbdev->dev = &pdev->dev; |