[patch 7/14] s3c2412/s3c2413 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Added s3c2412 registers and bits.

Signed-off-by: Koen Martens <[email protected]>


--- 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/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux