From patchwork Wed Oct 8 21:33:47 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Steven A. Falco" X-Patchwork-Id: 3385 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 4361CDE3A7 for ; Thu, 9 Oct 2008 08:34:03 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from mlbe2k2.cs.myharris.net (mlbe2k2.cs.myharris.net [137.237.90.89]) by ozlabs.org (Postfix) with ESMTP id D0D24DDF40 for ; Thu, 9 Oct 2008 08:33:50 +1100 (EST) Received: from mail pickup service by mlbe2k2.cs.myharris.net with Microsoft SMTPSVC; Wed, 8 Oct 2008 17:33:48 -0400 Received: from saf.cs.myharris.net ([137.237.94.251]) by mlbe2k2.cs.myharris.net with Microsoft SMTPSVC(6.0.3790.1830); Wed, 8 Oct 2008 17:33:47 -0400 Message-ID: <48ED273B.7080101@harris.com> Date: Wed, 08 Oct 2008 17:33:47 -0400 From: "Steven A. Falco" User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: "Steven A. Falco" Subject: Re: PPC440EPx gpio driver References: <48ED1E96.4060406@harris.com> In-Reply-To: <48ED1E96.4060406@harris.com> X-OriginalArrivalTime: 08 Oct 2008 21:33:47.0514 (UTC) FILETIME=[8C251DA0:01C9298D] Cc: "linuxppc-dev@ozlabs.org" X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Here is the remainder of the driver - just the structure of the registers for the 440EPx. I put the struct in this file because that is similar to what was done for the mpc52xx, but the struct could go elsewhere if more appropriate. Anyway, I'd like some feedback on this driver, because I imagine other folks would like to have a gpio driver for the 440 family. Signed-off-by: Steve Falco diff --git a/arch/powerpc/include/asm/ppc4xx.h b/arch/powerpc/include/asm/ppc4xx.h index 033039a..acbccb7 100644 --- a/arch/powerpc/include/asm/ppc4xx.h +++ b/arch/powerpc/include/asm/ppc4xx.h @@ -13,6 +13,28 @@ #ifndef __ASM_POWERPC_PPC4xx_H__ #define __ASM_POWERPC_PPC4xx_H__ +/* GPIO */ +struct ppc4xx_gpio { + unsigned int gpio_or; + unsigned int gpio_tcr; + unsigned int gpio_osrl; + unsigned int gpio_osrh; + unsigned int gpio_tsrl; + unsigned int gpio_tsrh; + unsigned int gpio_odr; + unsigned int gpio_ir; + unsigned int gpio_rr1; + unsigned int gpio_rr2; + unsigned int gpio_rr3; + unsigned int reserved1; + unsigned int gpio_isr1l; + unsigned int gpio_isr1h; + unsigned int gpio_isr2l; + unsigned int gpio_isr2h; + unsigned int gpio_isr3l; + unsigned int gpio_isr3h; +}; + extern void ppc4xx_reset_system(char *cmd); #endif /* __ASM_POWERPC_PPC4xx_H__ */