[ARM] 3795/1: S3C24XX: add base AC97 registers
authorBen Dooks <ben-linux@fluff.org>
Fri, 15 Sep 2006 22:34:34 +0000 (23:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 25 Sep 2006 09:25:14 +0000 (10:25 +0100)
Add base definitions for the AC97 register
definitions.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-s3c2410/map.h
include/asm-arm/arch-s3c2410/regs-ac97.h [new file with mode: 0644]

index 27ba0ac3fdd5ad48f5d8e9e40e610189d86bc421..7895042d176b3f4710514c7e6593484b709bf937 100644 (file)
 #define S3C2440_PA_CAMIF   (0x4F000000)
 #define S3C2440_SZ_CAMIF   SZ_1M
 
+/* AC97 */
+
+#define S3C2440_PA_AC97           (0x5B000000)
+#define S3C2440_SZ_AC97           SZ_1M
+
 /* ISA style IO, for each machine to sort out mappings for, if it
  * implements it. We reserve two 16M regions for ISA.
  */
diff --git a/include/asm-arm/arch-s3c2410/regs-ac97.h b/include/asm-arm/arch-s3c2410/regs-ac97.h
new file mode 100644 (file)
index 0000000..bdd6a4f
--- /dev/null
@@ -0,0 +1,23 @@
+/* linux/include/asm-arm/arch-s3c2410/regs-ac97.h
+ *
+ * Copyright (c) 2006 Simtec Electronics <linux@simtec.co.uk>
+ *             http://www.simtec.co.uk/products/SWLINUX/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * S3C2440 AC97 Controller
+*/
+
+#ifndef __ASM_ARCH_REGS_AC97_H
+#define __ASM_ARCH_REGS_AC97_H __FILE__
+
+#define S3C_AC97_GLBCTRL       (0x00)
+#define S3C_AC97_GLBSTAT       (0x04)
+#define S3C_AC97_CODEC_CMD     (0x08)
+#define S3C_AC97_PCM_ADDR      (0x10)
+#define S3C_AC97_PCM_DATA      (0x18)
+#define S3C_AC97_MIC_DATA      (0x1C)
+
+#endif /* __ASM_ARCH_REGS_AC97_H */