diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2009-10-26 18:16:58 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2009-10-26 18:16:58 +0000 |
commit | 90b576f55ea6854a70c8ed77095b42e57b744723 (patch) | |
tree | 33b5a4d1b76b435ef6ec5138e7160d9d32c955c1 /firmware/export/s3c2440.h | |
parent | 6d20102a9c468135770f820a896dad3518c2093f (diff) | |
download | rockbox-90b576f55ea6854a70c8ed77095b42e57b744723.tar.gz 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.h | 33 |
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 @@ | |||
462 | #define IISFCON (*(volatile unsigned long *)0x5500000C) /* IIS FIFO control */ | 462 | #define IISFCON (*(volatile unsigned long *)0x5500000C) /* IIS FIFO control */ |
463 | #define IISFIFO (*(volatile unsigned short *)0x55000010) /* IIS FIFO entry */ | 463 | #define IISFIFO (*(volatile unsigned short *)0x55000010) /* IIS FIFO entry */ |
464 | 464 | ||
465 | #define IISCON_RIGHT_CHANNEL (1 << 8) | ||
466 | #define IISCON_TX_FIFO_NOT_EMPTY (1 << 7) | ||
467 | #define IISCON_RX_FIFO_NOT_FULL (1 << 6) | ||
468 | #define IISCON_TX_DMA_REQUEST (1 << 5) | ||
469 | #define IISCON_RX_DMA_REQUEST (1 << 4) | ||
470 | #define IISCON_TX_IDLE (1 << 3) | ||
471 | #define IISCON_RX_IDLE (1 << 2) | ||
472 | #define IISCON_IIS_PRESCALER_ENABLE (1 << 1) | ||
473 | #define IISCON_IIS_INTERFACE_ENABLE (1 << 0) | ||
474 | |||
475 | #define IISMOD_MASTER_CLOCK_PCLK (0 << 9) | ||
476 | #define IISMOD_MASTER_CLOCK_MPLLIN (1 << 9) | ||
477 | #define IISMOD_MASTER_MODE (0 << 8) | ||
478 | #define IISMOD_SLAVE_MODE (1 << 8) | ||
479 | #define IISMOD_NO_TRANSFER (0 << 6) | ||
480 | #define IISMOD_RECEIVE_MODE (1 << 6) | ||
481 | #define IISMOD_TRANSMIT_MODE (2 << 6) | ||
482 | #define IISMOD_TRANSMIT_RECEIVE_MODE (3 << 6) | ||
483 | #define IISMOD_LOW_LEFT (0 << 5) | ||
484 | #define IISMOD_HIGH_LEFT (1 << 5) | ||
485 | #define IISMOD_IIS (0 << 4) | ||
486 | #define IISMOD_MSB (1 << 4) | ||
487 | #define IISMOD_8_BIT (0 << 3) | ||
488 | #define IISMOD_16_BIT (1 << 3) | ||
489 | #define IISMOD_MASTER_CLOCK_256FS (0 << 2) | ||
490 | #define IISMOD_MASTER_CLOCK_384FS (1 << 2) | ||
491 | #define IISMOD_BIT_CLOCK_16FS (0 << 0) | ||
492 | #define IISMOD_BIT_CLOCK_32FS (1 << 0) | ||
493 | #define IISMOD_BIT_CLOCK_48FS (2 << 0) | ||
494 | |||
495 | #define IISPSR_PRESCALER_A (1 << 5) | ||
496 | #define IISPSR_PRESCALER_B (1 << 0) | ||
497 | |||
465 | /* I/O port */ | 498 | /* I/O port */ |
466 | 499 | ||
467 | #define GPACON (*(volatile unsigned long *)0x56000000) /* Port A control */ | 500 | #define GPACON (*(volatile unsigned long *)0x56000000) /* Port A control */ |