From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaya Kumar Subject: [RFC 2.6.26-rc3 08/10] am200epd: convert to shared fb and use gpio api Date: Thu, 12 Jun 2008 12:59:19 -0400 Message-ID: <1213289961-1562-9-git-send-email-jayakumar.lkml@gmail.com> References: <1213289961-1562-1-git-send-email-jayakumar.lkml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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-new.sourceforge.net with esmtp (Exim 4.43) id 1K6r34-0003lL-Bn for linux-fbdev-devel@lists.sourceforge.net; Thu, 12 Jun 2008 10:57:22 -0700 Received: from yw-out-1718.google.com ([74.125.46.154]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1K6r33-0002AY-Ol for linux-fbdev-devel@lists.sourceforge.net; Thu, 12 Jun 2008 10:57:22 -0700 Received: by yw-out-1718.google.com with SMTP id 6so2382811ywa.82 for ; Thu, 12 Jun 2008 10:57:21 -0700 (PDT) In-Reply-To: <1213289961-1562-1-git-send-email-jayakumar.lkml@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: ymiao3@marvell.com Cc: Jaya Kumar , linux-fbdev-devel@lists.sourceforge.net, linux-arm-kernel@lists.arm.linux.org.uk This patch converts am200epd to use pxafb's fb and to stop performing direct access to LCDC registers. It now uses the generic GPIO api. Signed-off-by: Jaya Kumar --- arch/arm/mach-pxa/am200epd.c | 342 ++++++++++++++++++++++++------------------ arch/arm/mach-pxa/devices.c | 1 + 2 files changed, 198 insertions(+), 145 deletions(-) diff --git a/arch/arm/mach-pxa/am200epd.c b/arch/arm/mach-pxa/am200epd.c index 51e26c1..67bed6c 100644 --- a/arch/arm/mach-pxa/am200epd.c +++ b/arch/arm/mach-pxa/am200epd.c @@ -1,5 +1,5 @@ /* - * linux/drivers/video/am200epd.c -- Platform device for AM200 EPD kit + * am200epd.c -- Platform device for AM200 EPD kit * * Copyright (C) 2008, Jaya Kumar * @@ -18,6 +18,8 @@ * */ +#define DEBUG 1 + #include #include #include @@ -27,13 +29,72 @@ #include #include #include -#include -#include #include +#include + +#include #include