From: "Steven A. Falco" <sfalco@harris.com>
To: "Steven A. Falco" <sfalco@harris.com>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: PPC440EPx gpio driver
Date: Wed, 08 Oct 2008 17:33:47 -0400 [thread overview]
Message-ID: <48ED273B.7080101@harris.com> (raw)
In-Reply-To: <48ED1E96.4060406@harris.com>
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 <sfalco at harris.com>
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__ */
next prev parent reply other threads:[~2008-10-08 21:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 20:56 PPC440EPx gpio driver Steven A. Falco
2008-10-08 21:33 ` Steven A. Falco [this message]
2008-10-09 13:49 ` Anton Vorontsov
2008-10-09 14:23 ` Stefan Roese
2008-10-09 15:10 ` Steven A. Falco
2008-10-09 15:19 ` Stefan Roese
2008-10-09 16:08 ` Anton Vorontsov
2008-10-09 16:55 ` Steven A. Falco
2008-10-09 17:09 ` Steven A. Falco
2008-10-09 17:38 ` Anton Vorontsov
2008-10-09 18:04 ` Steven A. Falco
2008-10-09 18:46 ` Stefan Roese
2008-10-09 19:03 ` Anton Vorontsov
2008-10-09 22:08 ` Sean MacLennan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48ED273B.7080101@harris.com \
--to=sfalco@harris.com \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).