From: Koen Martens <linuxarm@metro.cx>
To: linux-arm-kernel@lists.arm.linux.org.uk, ben@simtec.co.uk,
linux-kernel@vger.kernel.org
Subject: [patch 7/14] s3c2412/s3c2413 support
Date: Fri, 03 Mar 2006 12:04:15 +0100 [thread overview]
Message-ID: <440822AF.6080901@metro.cx> (raw)
Added s3c2412 registers and bits.
Signed-off-by: Koen Martens <gmc@sonologic.nl>
--- linux-2.6.15.4/include/asm-arm/arch-s3c2410/regs-gpio.h
2006-02-10 08:22:48.000000000 +0100
+++ golinux/include/asm-arm/arch-s3c2410/regs-gpio.h 2006-03-03
11:10:08.000000000 +0100
@@ -22,6 +22,7 @@
* 28-Mar-2005 LCVR Fixed definition of GPB10
* 26-Oct-2005 BJD Added generic configuration types
* 27-Nov-2005 LCVR Added definitions to S3C2400 registers
+ * 27-Feb-2006 KM Added definitions to S3C2412 registers
*/
@@ -1048,5 +1049,45 @@
#define S3C2400_OPENCR_OPC_MOSIDIS (0<<5)
#define S3C2400_OPENCR_OPC_MOSIEN (1<<5)
+/* register addresses that moved in s3c2412 relative to s3c2410 */
+/* and bits that were added/changed */
+
+#ifdef CONFIG_CPU_S3C2412
+
+#define S3C2410_GPBSLPCON S3C2410_GPIOREG(0x1c)
+#define S3C2410_GPCSLPCON S3C2410_GPIOREG(0x2c)
+#define S3C2410_GPDSLPCON S3C2410_GPIOREG(0x3c)
+#define S3C2410_GPESLPCON S3C2410_GPIOREG(0x4c)
+#define S3C2410_GPHSLPCON S3C2410_GPIOREG(0x7c)
+#define S3C2412_MISCCR S3C2410_GPIOREG(0x90)
+#define S3C2412_DCLKCON S3C2410_GPIOREG(0x94)
+
+#define S3C2412_MISCCR_SPUCR_HEN (0)
+#define S3C2412_MISCCR_SPUCR_HDIS (1<<1)
+#define S3C2412_MISCCR_SPUCR_LEN (0)
+#define S3C2412_MISCCR_SPUCR_LDIS (1<<0)
+
+#define S3C2412_MISCCR_SPUCR2_EN (0<<2)
+#define S3C2412_MISCCR_SPUCR2_DIS (1<<2)
+
+#define S3C2412_EXTINT0 S3C2410_GPIOREG(0x98)
+#define S3C2412_EXTINT1 S3C2410_GPIOREG(0x9C)
+#define S3C2412_EXTINT2 S3C2410_GPIOREG(0xA0)
+
+#define S3C2412_EINFLT0 S3C2410_GPIOREG(0xA4)
+#define S3C2412_EINFLT1 S3C2410_GPIOREG(0xA8)
+#define S3C2412_EINFLT2 S3C2410_GPIOREG(0xAc)
+#define S3C2412_EINFLT3 S3C2410_GPIOREG(0xB0)
+
+#define S3C2412_GSTATUS0 S3C2410_GPIOREG(0x0BC)
+#define S3C2412_GSTATUS1 S3C2410_GPIOREG(0x0C0)
+#define S3C2412_GSTATUS2 S3C2410_GPIOREG(0x0C4)
+#define S3C2412_GSTATUS3 S3C2410_GPIOREG(0x0C8)
+#define S3C2412_GSTATUS4 S3C2410_GPIOREG(0x0CC)
+#define S3C2412_GSTATUS5 S3C2410_GPIOREG(0x0D0)
+
+#endif // CONFIG_CPU_S3C2412
+
+
#endif /* __ASM_ARCH_REGS_GPIO_H */
--
K.F.J. Martens, Sonologic, http://www.sonologic.nl/
Networking, hosting, embedded systems, unix, artificial intelligence.
Public PGP key: http://www.metro.cx/pubkey-gmc.asc
Wondering about the funny attachment your mail program
can't read? Visit http://www.openpgp.org/
reply other threads:[~2006-03-03 11:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=440822AF.6080901@metro.cx \
--to=linuxarm@metro.cx \
--cc=ben@simtec.co.uk \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.