From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Koller Subject: Re: [F]Framebuffer driver using SM501 hardware. Date: Wed, 17 Aug 2005 16:31:53 +0200 Message-ID: <43034A59.6000008@anagramm.de> References: <20050816194825.A62AC353AB5@atlas.denx.de> <43030D41.3000508@varma-el.com> <43032A76.6080104@varma-el.com> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1E5Oxd-0003Qv-Ov for linux-fbdev-devel@lists.sourceforge.net; Wed, 17 Aug 2005 07:32:09 -0700 Received: from moutvdom.kundenserver.de ([212.227.126.249] helo=moutvdomng.kundenserver.de) by mail.sourceforge.net with esmtp (Exim 4.44) id 1E5Oxb-0005sZ-2k for linux-fbdev-devel@lists.sourceforge.net; Wed, 17 Aug 2005 07:32:09 -0700 In-Reply-To: Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Geert Uytterhoeven Cc: Andrey Volkov , Linux/PPC Development , Linux Frame Buffer Device Development , surendra.yadav@softdel.com Hi Geert, Andrey and friends... I am working on ppc, MPC8540, SM501 on PCI, drivers=voyagerfb-0.2.tar.gz from last post. on linux-2.6 Geert wrote: > Sorry, I cannot follow. > > 1. If it's a palette issue, your setcolreg() routine doesn't fill in correctly > the pseudo palette, > 2. If it's a RGB565 vs. BGR565 issue, you don't fill in correctly the offsets > in the color bitfields in fb_var_screeninfo, > 3. If it's an endian issue, it's RRRRRGGGGGGBBBBB vs.GGBBBBBRRRRGGGG, right? > And then there's no much we can do... It looks for me like 3. = bytes are flipped = an endian issue: In 32 (RGBAlpha) mode (the one we want to use) the colors appear wrong. I get my /dev/fb0 appear as BB GG RR aa BB GG RR aa BB GG RR aa ... In the great SM501 Databook Version 1.02, Page 2-39, it says: Configuration 2, Endian Control at MMIO_base+0x00005c: write 0x00000000 for little endian or write 0xffffffff for big endian into this register before touching any other register of the sm501. I've tried that, but it didn't change anything on my system. :-( (Well, we can flip the DAC outputs in our hw design ;-) Best greets, Clemens _______________________________ R&D Imaging Devices Anagramm GmbH Rupert-Mayer-Str. 45/1 81379 Muenchen Germany http://www.anagramm.de Phone: +49-89-741518-50 Fax: +49-89-741518-19 ------------------------------------------------ details: $ cp red /dev/fb0 gives me a some red color... $ bvi red 00000000 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 ................ 00000010 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 ................ 00000020 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 ................ ... $ cp green /dev/fb0 gives me a some green color... 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 ... $ cp blue /dev/fb0 well... blue FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutvdomng.kundenserver.de (moutvdom.kundenserver.de [212.227.126.249]) by ozlabs.org (Postfix) with ESMTP id 0239B67FB8 for ; Thu, 18 Aug 2005 00:31:57 +1000 (EST) Message-ID: <43034A59.6000008@anagramm.de> Date: Wed, 17 Aug 2005 16:31:53 +0200 From: Clemens Koller MIME-Version: 1.0 To: Geert Uytterhoeven References: <20050816194825.A62AC353AB5@atlas.denx.de> <43030D41.3000508@varma-el.com> <43032A76.6080104@varma-el.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Linux/PPC Development , Linux Frame Buffer Device Development , surendra.yadav@softdel.com Subject: Re: [F]Framebuffer driver using SM501 hardware. List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Geert, Andrey and friends... I am working on ppc, MPC8540, SM501 on PCI, drivers=voyagerfb-0.2.tar.gz from last post. on linux-2.6 Geert wrote: > Sorry, I cannot follow. > > 1. If it's a palette issue, your setcolreg() routine doesn't fill in correctly > the pseudo palette, > 2. If it's a RGB565 vs. BGR565 issue, you don't fill in correctly the offsets > in the color bitfields in fb_var_screeninfo, > 3. If it's an endian issue, it's RRRRRGGGGGGBBBBB vs.GGBBBBBRRRRGGGG, right? > And then there's no much we can do... It looks for me like 3. = bytes are flipped = an endian issue: In 32 (RGBAlpha) mode (the one we want to use) the colors appear wrong. I get my /dev/fb0 appear as BB GG RR aa BB GG RR aa BB GG RR aa ... In the great SM501 Databook Version 1.02, Page 2-39, it says: Configuration 2, Endian Control at MMIO_base+0x00005c: write 0x00000000 for little endian or write 0xffffffff for big endian into this register before touching any other register of the sm501. I've tried that, but it didn't change anything on my system. :-( (Well, we can flip the DAC outputs in our hw design ;-) Best greets, Clemens _______________________________ R&D Imaging Devices Anagramm GmbH Rupert-Mayer-Str. 45/1 81379 Muenchen Germany http://www.anagramm.de Phone: +49-89-741518-50 Fax: +49-89-741518-19 ------------------------------------------------ details: $ cp red /dev/fb0 gives me a some red color... $ bvi red 00000000 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 ................ 00000010 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 ................ 00000020 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 ................ ... $ cp green /dev/fb0 gives me a some green color... 00 FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 ... $ cp blue /dev/fb0 well... blue FF 00 00 00 FF 00 00 00 FF 00 00 00 FF 00 00 00