summaryrefslogtreecommitdiffstats
path: root/firmware/export/s3c2440.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-10-26 18:16:58 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-10-26 18:16:58 +0000
commit90b576f55ea6854a70c8ed77095b42e57b744723 (patch)
tree33b5a4d1b76b435ef6ec5138e7160d9d32c955c1 /firmware/export/s3c2440.h
parent6d20102a9c468135770f820a896dad3518c2093f (diff)
downloadrockbox-90b576f55ea6854a70c8ed77095b42e57b744723.tar.gz
rockbox-90b576f55ea6854a70c8ed77095b42e57b744723.tar.bz2
rockbox-90b576f55ea6854a70c8ed77095b42e57b744723.zip
Many more drivers for mini2440. Now the main binary compiles and runs.
Flyspray: FS#10725 Author: Bob Cousins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23362 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/s3c2440.h')
-rw-r--r--firmware/export/s3c2440.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h
index c783b37f29..b6ba79a34e 100644
--- a/firmware/export/s3c2440.h
+++ b/firmware/export/s3c2440.h
@@ -462,6 +462,39 @@
#define IISFCON (*(volatile unsigned long *)0x5500000C) /* IIS FIFO control */
#define IISFIFO (*(volatile unsigned short *)0x55000010) /* IIS FIFO entry */
+#define IISCON_RIGHT_CHANNEL (1 << 8)
+#define IISCON_TX_FIFO_NOT_EMPTY (1 << 7)
+#define IISCON_RX_FIFO_NOT_FULL (1 << 6)
+#define IISCON_TX_DMA_REQUEST (1 << 5)
+#define IISCON_RX_DMA_REQUEST (1 << 4)
+#define IISCON_TX_IDLE (1 << 3)
+#define IISCON_RX_IDLE (1 << 2)
+#define IISCON_IIS_PRESCALER_ENABLE (1 << 1)
+#define IISCON_IIS_INTERFACE_ENABLE (1 << 0)
+
+#define IISMOD_MASTER_CLOCK_PCLK (0 << 9)
+#define IISMOD_MASTER_CLOCK_MPLLIN (1 << 9)
+#define IISMOD_MASTER_MODE (0 << 8)
+#define IISMOD_SLAVE_MODE (1 << 8)
+#define IISMOD_NO_TRANSFER (0 << 6)
+#define IISMOD_RECEIVE_MODE (1 << 6)
+#define IISMOD_TRANSMIT_MODE (2 << 6)
+#define IISMOD_TRANSMIT_RECEIVE_MODE (3 << 6)
+#define IISMOD_LOW_LEFT (0 << 5)
+#define IISMOD_HIGH_LEFT (1 << 5)
+#define IISMOD_IIS (0 << 4)
+#define IISMOD_MSB (1 << 4)
+#define IISMOD_8_BIT (0 << 3)
+#define IISMOD_16_BIT (1 << 3)
+#define IISMOD_MASTER_CLOCK_256FS (0 << 2)
+#define IISMOD_MASTER_CLOCK_384FS (1 << 2)
+#define IISMOD_BIT_CLOCK_16FS (0 << 0)
+#define IISMOD_BIT_CLOCK_32FS (1 << 0)
+#define IISMOD_BIT_CLOCK_48FS (2 << 0)
+
+#define IISPSR_PRESCALER_A (1 << 5)
+#define IISPSR_PRESCALER_B (1 << 0)
+
/* I/O port */
#define GPACON (*(volatile unsigned long *)0x56000000) /* Port A control */