|
@@ -233,3 +233,175 @@
|
|
|
#define S3C2443_GPE5_SD1_CLK (0x02 << 10)
|
|
|
#define S3C2443_GPE5_AC_BITCLK (0x03 << 10)
|
|
|
|
|
|
+#define S3C2410_GPE6_SDCMD (0x02 << 12)
|
|
|
+#define S3C2443_GPE6_SD1_CMD (0x02 << 12)
|
|
|
+#define S3C2443_GPE6_AC_SDI (0x03 << 12)
|
|
|
+
|
|
|
+#define S3C2410_GPE7_SDDAT0 (0x02 << 14)
|
|
|
+#define S3C2443_GPE5_SD1_DAT0 (0x02 << 14)
|
|
|
+#define S3C2443_GPE7_AC_SDO (0x03 << 14)
|
|
|
+
|
|
|
+#define S3C2410_GPE8_SDDAT1 (0x02 << 16)
|
|
|
+#define S3C2443_GPE8_SD1_DAT1 (0x02 << 16)
|
|
|
+#define S3C2443_GPE8_AC_SYNC (0x03 << 16)
|
|
|
+
|
|
|
+#define S3C2410_GPE9_SDDAT2 (0x02 << 18)
|
|
|
+#define S3C2443_GPE9_SD1_DAT2 (0x02 << 18)
|
|
|
+#define S3C2443_GPE9_AC_nRESET (0x03 << 18)
|
|
|
+
|
|
|
+#define S3C2410_GPE10_SDDAT3 (0x02 << 20)
|
|
|
+#define S3C2443_GPE10_SD1_DAT3 (0x02 << 20)
|
|
|
+
|
|
|
+#define S3C2410_GPE11_SPIMISO0 (0x02 << 22)
|
|
|
+
|
|
|
+#define S3C2410_GPE12_SPIMOSI0 (0x02 << 24)
|
|
|
+
|
|
|
+#define S3C2410_GPE13_SPICLK0 (0x02 << 26)
|
|
|
+
|
|
|
+#define S3C2410_GPE14_IICSCL (0x02 << 28)
|
|
|
+#define S3C2410_GPE14_MASK (0x03 << 28)
|
|
|
+
|
|
|
+#define S3C2410_GPE15_IICSDA (0x02 << 30)
|
|
|
+#define S3C2410_GPE15_MASK (0x03 << 30)
|
|
|
+
|
|
|
+#define S3C2440_GPE0_ACSYNC (0x03 << 0)
|
|
|
+#define S3C2440_GPE1_ACBITCLK (0x03 << 2)
|
|
|
+#define S3C2440_GPE2_ACRESET (0x03 << 4)
|
|
|
+#define S3C2440_GPE3_ACIN (0x03 << 6)
|
|
|
+#define S3C2440_GPE4_ACOUT (0x03 << 8)
|
|
|
+
|
|
|
+#define S3C2410_GPE_PUPDIS(x) (1<<(x))
|
|
|
+
|
|
|
+/* S3C2410:
|
|
|
+ * Port F consists of 8 GPIO/Special function
|
|
|
+ *
|
|
|
+ * GPIO / interrupt inputs
|
|
|
+ *
|
|
|
+ * GPFCON has 2 bits for each of the input pins on port F
|
|
|
+ * 00 = 0 input, 1 output, 2 interrupt (EINT0..7), 3 undefined
|
|
|
+ *
|
|
|
+ * pull up works like all other ports.
|
|
|
+ *
|
|
|
+ * GPIO/serial/misc pins
|
|
|
+*/
|
|
|
+
|
|
|
+#define S3C2410_GPFCON S3C2410_GPIOREG(0x50)
|
|
|
+#define S3C2410_GPFDAT S3C2410_GPIOREG(0x54)
|
|
|
+#define S3C2410_GPFUP S3C2410_GPIOREG(0x58)
|
|
|
+
|
|
|
+#define S3C2410_GPF0_EINT0 (0x02 << 0)
|
|
|
+#define S3C2410_GPF1_EINT1 (0x02 << 2)
|
|
|
+#define S3C2410_GPF2_EINT2 (0x02 << 4)
|
|
|
+#define S3C2410_GPF3_EINT3 (0x02 << 6)
|
|
|
+#define S3C2410_GPF4_EINT4 (0x02 << 8)
|
|
|
+#define S3C2410_GPF5_EINT5 (0x02 << 10)
|
|
|
+#define S3C2410_GPF6_EINT6 (0x02 << 12)
|
|
|
+#define S3C2410_GPF7_EINT7 (0x02 << 14)
|
|
|
+#define S3C2410_GPF_PUPDIS(x) (1<<(x))
|
|
|
+
|
|
|
+/* S3C2410:
|
|
|
+ * Port G consists of 8 GPIO/IRQ/Special function
|
|
|
+ *
|
|
|
+ * GPGCON has 2 bits for each of the input pins on port G
|
|
|
+ * 00 = 0 input, 1 output, 2 interrupt (EINT0..7), 3 special func
|
|
|
+ *
|
|
|
+ * pull up works like all other ports.
|
|
|
+*/
|
|
|
+
|
|
|
+#define S3C2410_GPGCON S3C2410_GPIOREG(0x60)
|
|
|
+#define S3C2410_GPGDAT S3C2410_GPIOREG(0x64)
|
|
|
+#define S3C2410_GPGUP S3C2410_GPIOREG(0x68)
|
|
|
+
|
|
|
+#define S3C2410_GPG0_EINT8 (0x02 << 0)
|
|
|
+
|
|
|
+#define S3C2410_GPG1_EINT9 (0x02 << 2)
|
|
|
+
|
|
|
+#define S3C2410_GPG2_EINT10 (0x02 << 4)
|
|
|
+#define S3C2410_GPG2_nSS0 (0x03 << 4)
|
|
|
+
|
|
|
+#define S3C2410_GPG3_EINT11 (0x02 << 6)
|
|
|
+#define S3C2410_GPG3_nSS1 (0x03 << 6)
|
|
|
+
|
|
|
+#define S3C2410_GPG4_EINT12 (0x02 << 8)
|
|
|
+#define S3C2410_GPG4_LCDPWREN (0x03 << 8)
|
|
|
+#define S3C2443_GPG4_LCDPWRDN (0x03 << 8)
|
|
|
+
|
|
|
+#define S3C2410_GPG5_EINT13 (0x02 << 10)
|
|
|
+#define S3C2410_GPG5_SPIMISO1 (0x03 << 10) /* not s3c2443 */
|
|
|
+
|
|
|
+#define S3C2410_GPG6_EINT14 (0x02 << 12)
|
|
|
+#define S3C2410_GPG6_SPIMOSI1 (0x03 << 12)
|
|
|
+
|
|
|
+#define S3C2410_GPG7_EINT15 (0x02 << 14)
|
|
|
+#define S3C2410_GPG7_SPICLK1 (0x03 << 14)
|
|
|
+
|
|
|
+#define S3C2410_GPG8_EINT16 (0x02 << 16)
|
|
|
+
|
|
|
+#define S3C2410_GPG9_EINT17 (0x02 << 18)
|
|
|
+
|
|
|
+#define S3C2410_GPG10_EINT18 (0x02 << 20)
|
|
|
+
|
|
|
+#define S3C2410_GPG11_EINT19 (0x02 << 22)
|
|
|
+#define S3C2410_GPG11_TCLK1 (0x03 << 22)
|
|
|
+#define S3C2443_GPG11_CF_nIREQ (0x03 << 22)
|
|
|
+
|
|
|
+#define S3C2410_GPG12_EINT20 (0x02 << 24)
|
|
|
+#define S3C2410_GPG12_XMON (0x03 << 24)
|
|
|
+#define S3C2442_GPG12_nSPICS0 (0x03 << 24)
|
|
|
+#define S3C2443_GPG12_nINPACK (0x03 << 24)
|
|
|
+
|
|
|
+#define S3C2410_GPG13_EINT21 (0x02 << 26)
|
|
|
+#define S3C2410_GPG13_nXPON (0x03 << 26)
|
|
|
+#define S3C2443_GPG13_CF_nREG (0x03 << 26)
|
|
|
+
|
|
|
+#define S3C2410_GPG14_EINT22 (0x02 << 28)
|
|
|
+#define S3C2410_GPG14_YMON (0x03 << 28)
|
|
|
+#define S3C2443_GPG14_CF_RESET (0x03 << 28)
|
|
|
+
|
|
|
+#define S3C2410_GPG15_EINT23 (0x02 << 30)
|
|
|
+#define S3C2410_GPG15_nYPON (0x03 << 30)
|
|
|
+#define S3C2443_GPG15_CF_PWR (0x03 << 30)
|
|
|
+
|
|
|
+#define S3C2410_GPG_PUPDIS(x) (1<<(x))
|
|
|
+
|
|
|
+/* Port H consists of11 GPIO/serial/Misc pins
|
|
|
+ *
|
|
|
+ * GPHCON has 2 bits for each of the input pins on port H
|
|
|
+ * 00 = 0 input, 1 output, 2 interrupt (EINT0..7), 3 special func
|
|
|
+ *
|
|
|
+ * pull up works like all other ports.
|
|
|
+*/
|
|
|
+
|
|
|
+#define S3C2410_GPHCON S3C2410_GPIOREG(0x70)
|
|
|
+#define S3C2410_GPHDAT S3C2410_GPIOREG(0x74)
|
|
|
+#define S3C2410_GPHUP S3C2410_GPIOREG(0x78)
|
|
|
+
|
|
|
+#define S3C2410_GPH0_nCTS0 (0x02 << 0)
|
|
|
+#define S3C2416_GPH0_TXD0 (0x02 << 0)
|
|
|
+
|
|
|
+#define S3C2410_GPH1_nRTS0 (0x02 << 2)
|
|
|
+#define S3C2416_GPH1_RXD0 (0x02 << 2)
|
|
|
+
|
|
|
+#define S3C2410_GPH2_TXD0 (0x02 << 4)
|
|
|
+#define S3C2416_GPH2_TXD1 (0x02 << 4)
|
|
|
+
|
|
|
+#define S3C2410_GPH3_RXD0 (0x02 << 6)
|
|
|
+#define S3C2416_GPH3_RXD1 (0x02 << 6)
|
|
|
+
|
|
|
+#define S3C2410_GPH4_TXD1 (0x02 << 8)
|
|
|
+#define S3C2416_GPH4_TXD2 (0x02 << 8)
|
|
|
+
|
|
|
+#define S3C2410_GPH5_RXD1 (0x02 << 10)
|
|
|
+#define S3C2416_GPH5_RXD2 (0x02 << 10)
|
|
|
+
|
|
|
+#define S3C2410_GPH6_TXD2 (0x02 << 12)
|
|
|
+#define S3C2416_GPH6_TXD3 (0x02 << 12)
|
|
|
+#define S3C2410_GPH6_nRTS1 (0x03 << 12)
|
|
|
+#define S3C2416_GPH6_nRTS2 (0x03 << 12)
|
|
|
+
|
|
|
+#define S3C2410_GPH7_RXD2 (0x02 << 14)
|
|
|
+#define S3C2416_GPH7_RXD3 (0x02 << 14)
|
|
|
+#define S3C2410_GPH7_nCTS1 (0x03 << 14)
|
|
|
+#define S3C2416_GPH7_nCTS2 (0x03 << 14)
|
|
|
+
|
|
|
+#define S3C2410_GPH8_UCLK (0x02 << 16)
|