From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from witte.sonytel.be (witte.sonytel.be [80.88.33.193]) by ozlabs.org (Postfix) with ESMTP id ED7C167AAE for ; Tue, 8 Feb 2005 23:23:36 +1100 (EST) Date: Tue, 8 Feb 2005 13:23:34 +0100 (MET) From: Geert Uytterhoeven Sender: geert@sonycom.com To: Jarno Manninen In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: linuxppc-embedded , Martin Krause Subject: Re: AW: Microwindows on Icecube/CoralP List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 8 Feb 2005, Jarno Manninen wrote: > On Tue, 8 Feb 2005, Martin Krause wrote: > > Hm, the SM501 has 8 MB internal RAM. The framebuffer lies within this > > memory. The SM501 is connected with the MPC5200 over the local bus > > interface (not over PCI) and mapped with CS1 to address range > > 0xE0000000-0xE3FFFFFF. The SM501 configuration registers are within > > the mapped memory area at 0xE3E00000. I can't imagine, why the byte > > swapping should only affect accesses to the famebuffer memory and not > > to the configuration registers (where also single bits at the right > > position must be set correctly). I could configure CS1 to do byte > > swapping, but then access to the SM501 configuration registers does > > not work any longer, because this bytes are swapped, too. > > Um. Have you written a kernel FB driver? If so then the write/read macros > do this swapping for you. Assuming that you use those for accessing the > device registers. At least SM722 requires those writes to be swapped too. Indeed. > > Geert, I've seen, you have done much of the fb stuff in the linux > > kernel (thank you for that!). Could you please point me to the best > > place, where byte swapping should be done if I want to use the linux > > text console in 16 bit mode with the MPC5200? > > Perhaps the pseudopalette would suffice here, I guess? And supposing that Yep, text console is simple: setcolreg() must fill in the correct pixel value in the pseudo palette. If you swap it there, it will just work. Logo is more difficult, you need your own imageblit(). > you have written a FB driver. If not then you have to do the patching at > the gfx-library level. And userspace needs to do swapping as well. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds