ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-arm / arch-s3c2410 / regs-iis.h
1 /* linux/include/asm/arch-s3c2410/regs-iis.h
2  *
3  * Copyright (c) 2003 Simtec Electronics <linux@simtec.co.uk>
4  *                    http://www.simtec.co.uk/products/SWLINUX/
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * S3C2410 IIS register definition
11  *
12  *  Changelog:
13  *    19-06-2003     BJD     Created file
14  *    26-06-2003     BJD     Finished off definitions for register addresses
15  *    12-03-2004     BJD     Updated include protection
16  */
17
18 #ifndef __ASM_ARCH_REGS_IIS_H
19 #define __ASM_ARCH_REGS_IIS_H
20
21 #define S3C2410_IISCON   (S3C2410_VA_IIS + 0x00)
22
23 #define S3C2410_IISCON_LRINDEX    (1<<8)
24 #define S3C2410_IISCON_TXFIFORDY  (1<<7)
25 #define S3C2410_IISCON_RXFIFORDY  (1<<6)
26 #define S3C2410_IISCON_TXDMAEN    (1<<5)
27 #define S3C2410_IISCON_RXDMAEN    (1<<4)
28 #define S3C2410_IISCON_TXIDLE     (1<<3)
29 #define S3C2410_IISCON_RXIDLE     (1<<2)
30 #define S3C2410_IISCON_IISEN      (1<<0)
31
32 #define S3C2410_IISMOD   (S3C2410_VA_IIS + 0x04)
33
34 #define S3C2410_IISMOD_SLAVE      (1<<8)
35 #define S3C2410_IISMOD_NOXFER     (0<<6)
36 #define S3C2410_IISMOD_RXMODE     (1<<6)
37 #define S3C2410_IISMOD_TXMODE     (2<<6)
38 #define S3C2410_IISMOD_TXRXMODE   (3<<6)
39 #define S3C2410_IISMOD_LR_LLOW    (0<<5)
40 #define S3C2410_IISMOD_LR_RLOW    (1<<5)
41 #define S3C2410_IISMOD_IIS        (0<<4)
42 #define S3C2410_IISMOD_MSB        (1<<4)
43 #define S3C2410_IISMOD_8BIT       (0<<3)
44 #define S3C2410_IISMOD_16BIT      (1<<3)
45 #define S3C2410_IISMOD_256FS      (0<<1)
46 #define S3C2410_IISMOD_384FS      (1<<1)
47 #define S3C2410_IISMOD_16FS       (0<<0)
48 #define S3C2410_IISMOD_32FS       (1<<0)
49 #define S3C2410_IISMOD_48FS       (2<<0)
50
51 #define S3C2410_IISPSR   (S3C2410_VA_IIS + 0x08)
52
53 #define S3C2410_IISFCON  (S3C2410_VA_IIS + 0x0c)
54
55 #define S3C2410_IISFCON_TXDMA     (1<<15)
56 #define S3C2410_IISFCON_RXDMA     (1<<14)
57 #define S3C2410_IISFCON_TXENABLE  (1<<13)
58 #define S3C2410_IISFCON_RXENABLE  (1<<12)
59
60 #define S3C2410_IISFIFO  (S3C2410_VA_IIS + 0x10)
61
62 #endif /* __ASM_ARCH_REGS_IIS_H */
63