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:
d0ce7b8
)
drm/cirrus: correct register values for 16bpp
author
Takashi Iwai
<
[email protected]
>
Tue, 21 Jan 2014 22:34:51 +0000
(14:34 -0800)
committer
Dave Airlie
<
[email protected]
>
Thu, 23 Jan 2014 01:01:40 +0000
(11:01 +1000)
When the mode is set with 16bpp on QEMU, the output gets totally broken.
The culprit is the bogus register values set for 16bpp, which was likely
copied from from a wrong place.
Addresses https://bugzilla.novell.com/show_bug.cgi?id=799216
Signed-off-by: Takashi Iwai <
[email protected]
>
Signed-off-by: Jiri Slaby <
[email protected]
>
Cc: David Airlie <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/cirrus/cirrus_mode.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/cirrus/cirrus_mode.c
b/drivers/gpu/drm/cirrus/cirrus_mode.c
index 58dd900083b9ec6141c8744040ac98ec084ca8ad..530f78f84deed250a2f96350254657b49a0166c9 100644
(file)
--- a/
drivers/gpu/drm/cirrus/cirrus_mode.c
+++ b/
drivers/gpu/drm/cirrus/cirrus_mode.c
@@
-273,8
+273,8
@@
static int cirrus_crtc_mode_set(struct drm_crtc *crtc,
sr07 |= 0x11;
break;
case 16:
- sr07 |= 0x
c1
;
- hdr = 0xc
0
;
+ sr07 |= 0x
17
;
+ hdr = 0xc
1
;
break;
case 24:
sr07 |= 0x15;