diff options
author | Paul Mackerras <paulus@samba.org> | 2006-10-03 04:15:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:04:13 -0400 |
commit | 70abac6e4f4bfb05a8198e22225f9e066239c7a2 (patch) | |
tree | 66caa9063402aab6309e2fe88e3e121828152a22 /drivers/video | |
parent | a09fd48f8fb6ecb8bf85efdd884b21b6201ef9cc (diff) |
[PATCH] nvidia fbdev: fix powerpc xmon scribbles
xmon writes garbage on the screen because the nvidia console driver has
changed the line pitch from what the firmware set it to. Fix it by making
the nvidia driver inform the btext engine (which xmon uses if the screen is
its output device) about changes to display resolution.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/nvidia/nvidia.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index 731edf7cb0a0..eb24107bcc81 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c | |||
@@ -28,6 +28,9 @@ | |||
28 | #include <asm/prom.h> | 28 | #include <asm/prom.h> |
29 | #include <asm/pci-bridge.h> | 29 | #include <asm/pci-bridge.h> |
30 | #endif | 30 | #endif |
31 | #ifdef CONFIG_BOOTX_TEXT | ||
32 | #include <asm/btext.h> | ||
33 | #endif | ||
31 | 34 | ||
32 | #include "nv_local.h" | 35 | #include "nv_local.h" |
33 | #include "nv_type.h" | 36 | #include "nv_type.h" |
@@ -681,6 +684,13 @@ static int nvidiafb_set_par(struct fb_info *info) | |||
681 | 684 | ||
682 | nvidia_vga_protect(par, 0); | 685 | nvidia_vga_protect(par, 0); |
683 | 686 | ||
687 | #ifdef CONFIG_BOOTX_TEXT | ||
688 | /* Update debug text engine */ | ||
689 | btext_update_display(info->fix.smem_start, | ||
690 | info->var.xres, info->var.yres, | ||
691 | info->var.bits_per_pixel, info->fix.line_length); | ||
692 | #endif | ||
693 | |||
684 | NVTRACE_LEAVE(); | 694 | NVTRACE_LEAVE(); |
685 | return 0; | 695 | return 0; |
686 | } | 696 | } |