projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a0dd8
)
cirrusfb: fix 16bpp modes
author
Krzysztof Helt
<
[email protected]
>
Thu, 16 Oct 2008 05:03:41 +0000
(22:03 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 16 Oct 2008 18:21:44 +0000
(11:21 -0700)
The 16bpp mode did not work on the Cirrus cards as the visual type was set
to DIRECTCOLOR instead of TRUECOLOR. The Alpine family used one incorrect
register setting so this 16bpp modes generated wrong horizontal frequency.
Signed-off-by: Krzysztof Helt <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/cirrusfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/cirrusfb.c
b/drivers/video/cirrusfb.c
index 245005e61e4035f072d2c8f87392739feb986ddc..9e0a1c58fde4425b6c8650b66d1b8ed1c0c846c0 100644
(file)
--- a/
drivers/video/cirrusfb.c
+++ b/
drivers/video/cirrusfb.c
@@
-657,7
+657,7
@@
static int cirrusfb_decode_var(const struct fb_var_screeninfo *var,
case 16:
case 32:
info->fix.line_length = var->xres_virtual * maxclockidx;
- info->fix.visual = FB_VISUAL_
DIRECT
COLOR;
+ info->fix.visual = FB_VISUAL_
TRUE
COLOR;
break;
default:
@@
-1178,10
+1178,7
@@
static int cirrusfb_set_par_foo(struct fb_info *info)
case BT_ALPINE:
DPRINTK(" (for GD543x)\n");
- if (var->xres >= 1024)
- vga_wseq(regbase, CL_SEQR7, 0xa7);
- else
- vga_wseq(regbase, CL_SEQR7, 0xa3);
+ vga_wseq(regbase, CL_SEQR7, 0xa7);
cirrusfb_set_mclk(cinfo, regs.mclk, regs.divMCLK);
break;