aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-09-08 03:37:50 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-10-07 14:12:56 -0400
commit52358ba3a89012c54712c24074ceb4b1c669af52 (patch)
tree856804ad95548a3e1dcf577366308cf0ebcc1369 /arch/arm/mach-pxa
parent87f3dd77974cba1ba0798abd741ede50f56b3eb3 (diff)
[ARM] pxa: move I2S register and bit definitions into pxa2xx-i2s.c
Signed-off-by: Eric Miao <eric.miao@marvell.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/include/mach/pxa-regs.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/arch/arm/mach-pxa/include/mach/pxa-regs.h b/arch/arm/mach-pxa/include/mach/pxa-regs.h
index 4cac9269fdf2..98ded450d0fe 100644
--- a/arch/arm/mach-pxa/include/mach/pxa-regs.h
+++ b/arch/arm/mach-pxa/include/mach/pxa-regs.h
@@ -269,46 +269,9 @@
269 */ 269 */
270 270
271/* 271/*
272 * Serial Audio Controller 272 * Serial Audio Controller - moved into sound/soc/pxa/pxa2xx-i2s.c
273 */ 273 */
274 274
275#define SACR0 __REG(0x40400000) /* Global Control Register */
276#define SACR1 __REG(0x40400004) /* Serial Audio I 2 S/MSB-Justified Control Register */
277#define SASR0 __REG(0x4040000C) /* Serial Audio I 2 S/MSB-Justified Interface and FIFO Status Register */
278#define SAIMR __REG(0x40400014) /* Serial Audio Interrupt Mask Register */
279#define SAICR __REG(0x40400018) /* Serial Audio Interrupt Clear Register */
280#define SADIV __REG(0x40400060) /* Audio Clock Divider Register. */
281#define SADR __REG(0x40400080) /* Serial Audio Data Register (TX and RX FIFO access Register). */
282
283#define SACR0_RFTH(x) ((x) << 12) /* Rx FIFO Interrupt or DMA Trigger Threshold */
284#define SACR0_TFTH(x) ((x) << 8) /* Tx FIFO Interrupt or DMA Trigger Threshold */
285#define SACR0_STRF (1 << 5) /* FIFO Select for EFWR Special Function */
286#define SACR0_EFWR (1 << 4) /* Enable EFWR Function */
287#define SACR0_RST (1 << 3) /* FIFO, i2s Register Reset */
288#define SACR0_BCKD (1 << 2) /* Bit Clock Direction */
289#define SACR0_ENB (1 << 0) /* Enable I2S Link */
290#define SACR1_ENLBF (1 << 5) /* Enable Loopback */
291#define SACR1_DRPL (1 << 4) /* Disable Replaying Function */
292#define SACR1_DREC (1 << 3) /* Disable Recording Function */
293#define SACR1_AMSL (1 << 0) /* Specify Alternate Mode */
294
295#define SASR0_I2SOFF (1 << 7) /* Controller Status */
296#define SASR0_ROR (1 << 6) /* Rx FIFO Overrun */
297#define SASR0_TUR (1 << 5) /* Tx FIFO Underrun */
298#define SASR0_RFS (1 << 4) /* Rx FIFO Service Request */
299#define SASR0_TFS (1 << 3) /* Tx FIFO Service Request */
300#define SASR0_BSY (1 << 2) /* I2S Busy */
301#define SASR0_RNE (1 << 1) /* Rx FIFO Not Empty */
302#define SASR0_TNF (1 << 0) /* Tx FIFO Not Empty */
303
304#define SAICR_ROR (1 << 6) /* Clear Rx FIFO Overrun Interrupt */
305#define SAICR_TUR (1 << 5) /* Clear Tx FIFO Underrun Interrupt */
306
307#define SAIMR_ROR (1 << 6) /* Enable Rx FIFO Overrun Condition Interrupt */
308#define SAIMR_TUR (1 << 5) /* Enable Tx FIFO Underrun Condition Interrupt */
309#define SAIMR_RFS (1 << 4) /* Enable Rx FIFO Service Interrupt */
310#define SAIMR_TFS (1 << 3) /* Enable Tx FIFO Service Interrupt */
311
312/* 275/*
313 * AC97 Controller registers 276 * AC97 Controller registers
314 */ 277 */