From: Yauhen Kharuzhy Subject: Re: [jekhor@gmail.com: Metronome specifications] Date: Wed, 31 Dec 2008 14:16:59 +0200 Message-ID: <20081231121659.GA1761@jeknote.loshitsa1.net> References: <20081230154614.GA30164@jeknote.loshitsa1.net> <45a44e480812300756m2adbe0dfg2a401f8d92939d43@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="liOOAslEiF7prFVr" Return-path: Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by 335xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LI00n-0006VD-HE for linux-fbdev-devel@lists.sourceforge.net; Wed, 31 Dec 2008 12:17:21 +0000 Received: from qw-out-1920.google.com ([74.125.92.144]) by 72vjzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1LI00j-0002Jl-Cl for linux-fbdev-devel@lists.sourceforge.net; Wed, 31 Dec 2008 12:17:21 +0000 Received: by qw-out-1920.google.com with SMTP id 5so2596978qwc.4 for ; Wed, 31 Dec 2008 04:17:15 -0800 (PST) Content-Disposition: inline In-Reply-To: <45a44e480812300756m2adbe0dfg2a401f8d92939d43@mail.gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Jaya Kumar Cc: "linux-fbdev-devel@lists.sourceforge.net" --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 30, 2008 at 11:56:22PM +0800, Jaya Kumar wrote: > Hi Yauhen, > > My apologies for the delay in replying. As you can imagine, life is > busy at Christmas and New Year and trying to clean out my patch box. > Yes, I will be happy to help in any way that I can. I think it is > great that you're doing the work to get the prs-505 supported. I > unfortunately have no documentation that I can pass along but will be > happy to take a look at any code. > > Ok, in response to the technical questions, can you please post the > code for the board driver here. For the other people who also asked > similar questions about broadsheet and other controllers, please post > your questions and code here on the mailing list rather than to me > alone. The fbdev mailing list is the right place for all of us to work > together on this. OK. I am sorry for my impatience. I just wrote a "new style" (for 2.6.28 kernel) board driver using of the existing imxfb driver similar to you am200epd board driver. I found two problems: 1) the metronomefb driver initializes before imxfb driver and a kernel Oops caused in the setup_fb() function because the board.host_fbinfo is not initialized yet. For prevent this, I placed a call of my prs505_presetup_fb() function immediately after the fb_register_client() call. 2) the LCD controller in IMX SoCs supports LCD panels with height <= 511 (9 bit in LCD_SIZE register). In the original Sony driver this height is 312. As I suppose, it is half of the real height because LCD controller uses 16 bit per pixel. I set yres in my prs505_fb_info to 622 / 2. Now metronomefb initializes but nothing happen on the screen. I attached my board driver. Sony driver, if needed, can be found here: http://users.openinkpot.org/~jekhor/8track20070714.tgz -- Yauhen Kharuzhy jekhor _at_ gmail.com JID: jek@jabber.ru A: No Q: Should I quote below my post? --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="prs505-display.c" /* * prs505-display.c -- Platform device for Sony PRS-505 display driver * * Copyright (C) 2008, Yauhen Kharuzhy * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive for * more details. * * This driver is written to be used with the Metronome display controller. * */ #define DEBUG #include #include #include #include #include #include #include #include #include #include #include #include #include #include