Subject: Re: invert lcd on mpc823l

From: Paul Mundt <[email-masked]>
Date: Mon, 22 Oct 2001 09:33:38 -0700

On Mon, Oct 22, 2001 at 11:19:00AM +0200, Stefan Wanner wrote:
> i'm using a sharp LQ64D341 tft lcd on a MPC823L board with the
> kernelsources from denx.de. now when i use /dev/tty0 (the frambuffer
> character device) the output apears inverse (white background, black
> text). the tux in the upper left corner has also strange colors (looks
> also like inverse). how can i fix that?
>
Try inverting your colormap. Try something like the following:

--- arch/ppc/8xx_io/lcd823.c.orig       Mon Oct 22 09:30:43 2001
+++ arch/ppc/8xx_io/lcd823.c    Mon Oct 22 09:30:46 2001
@@ -638,6 +638,7 @@
     }

     lcd823_init_dev();
+    fb_invert_cmaps();
     lcd823_install_cmap(0, &fb_info);

     if (register_framebuffer(&fb_info) == 0) {

Regards,

--
Paul Mundt <[email-masked]>
MontaVista Software, Inc.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/