From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Rapoport Subject: Re: [PATCH]: frame buffer driver for 2700G LCD controller Date: Tue, 11 Jul 2006 12:08:40 +0200 Message-ID: <44B378A8.3060906@compulab.co.il> References: <44AD2B75.6050302@compulab.co.il> <44ADC4AE.2040903@gmail.com> <44B11542.7010402@compulab.co.il> <44B18F68.2080802@gmail.com> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1G0EEv-0004zU-Te for linux-fbdev-devel@lists.sourceforge.net; Tue, 11 Jul 2006 02:09:09 -0700 Received: from mail.linux-boards.com ([62.90.235.247]) by mail.sourceforge.net with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.44) id 1G0EEt-0003vQ-Rh for linux-fbdev-devel@lists.sourceforge.net; Tue, 11 Jul 2006 02:09:09 -0700 In-Reply-To: <44B18F68.2080802@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: "Antonino A. Daplas" Cc: linux-fbdev-devel@lists.sourceforge.net Antonino A. Daplas wrote: >Mike Rapoport wrote: > > >>Antonino A. Daplas wrote: >> >> >> >>>Mike Rapoport wrote: >>> >>> >>> >>> >>>>This patch adds frame buffer driver for 2700G LCD controller present on >>>>CompuLab CM-X270 computer module. >>>>This pacth is versus current Linus git tree. >>>> >>>>Signed-off-by: Mike Rapoport >>>> >>>> >>>> >>>> >>+/* extern unsigned long virt_base_2700; */ >>+#define __REG_2700G(x) (*(volatile unsigned long*)((x)+virt_base_2700)) >> >> > >BTW, you will need to use generic accessors (readb|w|l, writeb|w|l or >__raw_readb|w|l, __raw_writeb|w|l, etc). This will entail a lot of changes. >Otherwise, this driver won't get past Andrew Morton and Rusty. > >See include/asm/io.h. > > What's the better way? { ... writel((readl(REG) | bits), REG); ... } or { ... u32 some_reg = readl(REG); ... some_reg |= bits; ... writel(some_reg, REG) ... } >Tony > > > > > > -- Sincerely yours, Mike Rapoport ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642