|
@@ -405,3 +405,71 @@
|
|
|
#define S3C2416_GPH7_nCTS2 (0x03 << 14)
|
|
|
|
|
|
#define S3C2410_GPH8_UCLK (0x02 << 16)
|
|
|
+#define S3C2416_GPH8_nCTS0 (0x02 << 16)
|
|
|
+
|
|
|
+#define S3C2410_GPH9_CLKOUT0 (0x02 << 18)
|
|
|
+#define S3C2442_GPH9_nSPICS0 (0x03 << 18)
|
|
|
+#define S3C2416_GPH9_nRTS0 (0x02 << 18)
|
|
|
+
|
|
|
+#define S3C2410_GPH10_CLKOUT1 (0x02 << 20)
|
|
|
+#define S3C2416_GPH10_nCTS1 (0x02 << 20)
|
|
|
+
|
|
|
+#define S3C2416_GPH11_nRTS1 (0x02 << 22)
|
|
|
+
|
|
|
+#define S3C2416_GPH12_EXTUARTCLK (0x02 << 24)
|
|
|
+
|
|
|
+#define S3C2416_GPH13_CLKOUT0 (0x02 << 26)
|
|
|
+
|
|
|
+#define S3C2416_GPH14_CLKOUT1 (0x02 << 28)
|
|
|
+
|
|
|
+/* The S3C2412 and S3C2413 move the GPJ register set to after
|
|
|
+ * GPH, which means all registers after 0x80 are now offset by 0x10
|
|
|
+ * for the 2412/2413 from the 2410/2440/2442
|
|
|
+*/
|
|
|
+
|
|
|
+/*
|
|
|
+ * Port J consists of 13 GPIO/Camera pins. GPJCON has 2 bits
|
|
|
+ * for each of the pins on port J.
|
|
|
+ * 00 - input, 01 output, 10 - camera
|
|
|
+ *
|
|
|
+ * Pull up works like all other ports.
|
|
|
+ */
|
|
|
+
|
|
|
+#define S3C2413_GPJCON S3C2410_GPIOREG(0x80)
|
|
|
+#define S3C2413_GPJDAT S3C2410_GPIOREG(0x84)
|
|
|
+#define S3C2413_GPJUP S3C2410_GPIOREG(0x88)
|
|
|
+#define S3C2413_GPJSLPCON S3C2410_GPIOREG(0x8C)
|
|
|
+
|
|
|
+/* S3C2443 and above */
|
|
|
+#define S3C2440_GPJCON S3C2410_GPIOREG(0xD0)
|
|
|
+#define S3C2440_GPJDAT S3C2410_GPIOREG(0xD4)
|
|
|
+#define S3C2440_GPJUP S3C2410_GPIOREG(0xD8)
|
|
|
+
|
|
|
+#define S3C2443_GPKCON S3C2410_GPIOREG(0xE0)
|
|
|
+#define S3C2443_GPKDAT S3C2410_GPIOREG(0xE4)
|
|
|
+#define S3C2443_GPKUP S3C2410_GPIOREG(0xE8)
|
|
|
+
|
|
|
+#define S3C2443_GPLCON S3C2410_GPIOREG(0xF0)
|
|
|
+#define S3C2443_GPLDAT S3C2410_GPIOREG(0xF4)
|
|
|
+#define S3C2443_GPLUP S3C2410_GPIOREG(0xF8)
|
|
|
+
|
|
|
+#define S3C2443_GPMCON S3C2410_GPIOREG(0x100)
|
|
|
+#define S3C2443_GPMDAT S3C2410_GPIOREG(0x104)
|
|
|
+#define S3C2443_GPMUP S3C2410_GPIOREG(0x108)
|
|
|
+
|
|
|
+/* miscellaneous control */
|
|
|
+#define S3C2410_MISCCR S3C2410_GPIOREG(0x80)
|
|
|
+#define S3C2410_DCLKCON S3C2410_GPIOREG(0x84)
|
|
|
+
|
|
|
+#define S3C24XX_DCLKCON S3C24XX_GPIOREG2(0x84)
|
|
|
+
|
|
|
+/* see clock.h for dclk definitions */
|
|
|
+
|
|
|
+/* pullup control on databus */
|
|
|
+#define S3C2410_MISCCR_SPUCR_HEN (0<<0)
|
|
|
+#define S3C2410_MISCCR_SPUCR_HDIS (1<<0)
|
|
|
+#define S3C2410_MISCCR_SPUCR_LEN (0<<1)
|
|
|
+#define S3C2410_MISCCR_SPUCR_LDIS (1<<1)
|
|
|
+
|
|
|
+#define S3C2410_MISCCR_USBDEV (0<<3)
|
|
|
+#define S3C2410_MISCCR_USBHOST (1<<3)
|