1#ifndef __ASM_ARCH_REGS_AC97_H
2#define __ASM_ARCH_REGS_AC97_H
3
4#include <mach/hardware.h>
5
6
7
8
9
10#define POCR __REG(0x40500000)
11#define POCR_FEIE (1 << 3)
12#define POCR_FSRIE (1 << 1)
13
14#define PICR __REG(0x40500004)
15#define PICR_FEIE (1 << 3)
16#define PICR_FSRIE (1 << 1)
17
18#define MCCR __REG(0x40500008)
19#define MCCR_FEIE (1 << 3)
20#define MCCR_FSRIE (1 << 1)
21
22#define GCR __REG(0x4050000C)
23#ifdef CONFIG_PXA3xx
24#define GCR_CLKBPB (1 << 31)
25#endif
26#define GCR_nDMAEN (1 << 24)
27#define GCR_CDONE_IE (1 << 19)
28#define GCR_SDONE_IE (1 << 18)
29#define GCR_SECRDY_IEN (1 << 9)
30#define GCR_PRIRDY_IEN (1 << 8)
31#define GCR_SECRES_IEN (1 << 5)
32#define GCR_PRIRES_IEN (1 << 4)
33#define GCR_ACLINK_OFF (1 << 3)
34#define GCR_WARM_RST (1 << 2)
35#define GCR_COLD_RST (1 << 1)
36#define GCR_GIE (1 << 0)
37
38#define POSR __REG(0x40500010)
39#define POSR_FIFOE (1 << 4)
40#define POSR_FSR (1 << 2)
41
42#define PISR __REG(0x40500014)
43#define PISR_FIFOE (1 << 4)
44#define PISR_EOC (1 << 3)
45#define PISR_FSR (1 << 2)
46
47#define MCSR __REG(0x40500018)
48#define MCSR_FIFOE (1 << 4)
49#define MCSR_EOC (1 << 3)
50#define MCSR_FSR (1 << 2)
51
52#define GSR __REG(0x4050001C)
53#define GSR_CDONE (1 << 19)
54#define GSR_SDONE (1 << 18)
55#define GSR_RDCS (1 << 15)
56#define GSR_BIT3SLT12 (1 << 14)
57#define GSR_BIT2SLT12 (1 << 13)
58#define GSR_BIT1SLT12 (1 << 12)
59#define GSR_SECRES (1 << 11)
60#define GSR_PRIRES (1 << 10)
61#define GSR_SCR (1 << 9)
62#define GSR_PCR (1 << 8)
63#define GSR_MCINT (1 << 7)
64#define GSR_POINT (1 << 6)
65#define GSR_PIINT (1 << 5)
66#define GSR_ACOFFD (1 << 3)
67#define GSR_MOINT (1 << 2)
68#define GSR_MIINT (1 << 1)
69#define GSR_GSCI (1 << 0)
70
71#define CAR __REG(0x40500020)
72#define CAR_CAIP (1 << 0)
73
74#define PCDR __REG(0x40500040)
75#define MCDR __REG(0x40500060)
76
77#define MOCR __REG(0x40500100)
78#define MOCR_FEIE (1 << 3)
79#define MOCR_FSRIE (1 << 1)
80
81#define MICR __REG(0x40500108)
82#define MICR_FEIE (1 << 3)
83#define MICR_FSRIE (1 << 1)
84
85#define MOSR __REG(0x40500110)
86#define MOSR_FIFOE (1 << 4)
87#define MOSR_FSR (1 << 2)
88
89#define MISR __REG(0x40500118)
90#define MISR_FIFOE (1 << 4)
91#define MISR_EOC (1 << 3)
92#define MISR_FSR (1 << 2)
93
94#define MODR __REG(0x40500140)
95
96#define PAC_REG_BASE __REG(0x40500200)
97#define SAC_REG_BASE __REG(0x40500300)
98#define PMC_REG_BASE __REG(0x40500400)
99#define SMC_REG_BASE __REG(0x40500500)
100
101#endif
102