Merge tag 'firewire-update2' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee139...
[deliverable/linux.git] / sound / soc / samsung / regs-iis.h
CommitLineData
61c66c60 1/*
dc98e414
KK
2 * Copyright (c) 2003 Simtec Electronics <linux@simtec.co.uk>
3 * http://www.simtec.co.uk/products/SWLINUX/
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * S3C2410 IIS register definition
10*/
11
61c66c60
SK
12#ifndef __SAMSUNG_REGS_IIS_H__
13#define __SAMSUNG_REGS_IIS_H__
dc98e414
KK
14
15#define S3C2410_IISCON (0x00)
16
17#define S3C2410_IISCON_LRINDEX (1 << 8)
18#define S3C2410_IISCON_TXFIFORDY (1 << 7)
19#define S3C2410_IISCON_RXFIFORDY (1 << 6)
20#define S3C2410_IISCON_TXDMAEN (1 << 5)
21#define S3C2410_IISCON_RXDMAEN (1 << 4)
22#define S3C2410_IISCON_TXIDLE (1 << 3)
23#define S3C2410_IISCON_RXIDLE (1 << 2)
24#define S3C2410_IISCON_PSCEN (1 << 1)
25#define S3C2410_IISCON_IISEN (1 << 0)
26
27#define S3C2410_IISMOD (0x04)
28
29#define S3C2440_IISMOD_MPLL (1 << 9)
30#define S3C2410_IISMOD_SLAVE (1 << 8)
31#define S3C2410_IISMOD_NOXFER (0 << 6)
32#define S3C2410_IISMOD_RXMODE (1 << 6)
33#define S3C2410_IISMOD_TXMODE (2 << 6)
34#define S3C2410_IISMOD_TXRXMODE (3 << 6)
35#define S3C2410_IISMOD_LR_LLOW (0 << 5)
36#define S3C2410_IISMOD_LR_RLOW (1 << 5)
37#define S3C2410_IISMOD_IIS (0 << 4)
38#define S3C2410_IISMOD_MSB (1 << 4)
39#define S3C2410_IISMOD_8BIT (0 << 3)
40#define S3C2410_IISMOD_16BIT (1 << 3)
41#define S3C2410_IISMOD_BITMASK (1 << 3)
42#define S3C2410_IISMOD_256FS (0 << 2)
43#define S3C2410_IISMOD_384FS (1 << 2)
44#define S3C2410_IISMOD_16FS (0 << 0)
45#define S3C2410_IISMOD_32FS (1 << 0)
46#define S3C2410_IISMOD_48FS (2 << 0)
47#define S3C2410_IISMOD_FS_MASK (3 << 0)
48
49#define S3C2410_IISPSR (0x08)
50
51#define S3C2410_IISPSR_INTMASK (31 << 5)
52#define S3C2410_IISPSR_INTSHIFT (5)
53#define S3C2410_IISPSR_EXTMASK (31 << 0)
54#define S3C2410_IISPSR_EXTSHFIT (0)
55
56#define S3C2410_IISFCON (0x0c)
57
58#define S3C2410_IISFCON_TXDMA (1 << 15)
59#define S3C2410_IISFCON_RXDMA (1 << 14)
60#define S3C2410_IISFCON_TXENABLE (1 << 13)
61#define S3C2410_IISFCON_RXENABLE (1 << 12)
62#define S3C2410_IISFCON_TXMASK (0x3f << 6)
63#define S3C2410_IISFCON_TXSHIFT (6)
64#define S3C2410_IISFCON_RXMASK (0x3f)
65#define S3C2410_IISFCON_RXSHIFT (0)
66
67#define S3C2410_IISFIFO (0x10)
68
61c66c60 69#endif /* __SAMSUNG_REGS_IIS_H__ */
This page took 0.218131 seconds and 5 git commands to generate.