Go to the documentation of this file.
30 #define PCM990_CTRL_INT_IRQ_GPIO 9
31 #define PCM990_CTRL_INT_IRQ PXA_GPIO_TO_IRQ(PCM990_CTRL_INT_IRQ_GPIO)
32 #define PCM990_CTRL_INT_IRQ_EDGE IRQ_TYPE_EDGE_RISING
33 #define PCM990_CTRL_PHYS PXA_CS1_PHYS
34 #define PCM990_CTRL_SIZE (1*1024*1024)
36 #define PCM990_CTRL_PWR_IRQ_GPIO 14
37 #define PCM990_CTRL_PWR_IRQ PXA_GPIO_TO_IRQ(PCM990_CTRL_PWR_IRQ_GPIO)
38 #define PCM990_CTRL_PWR_IRQ_EDGE IRQ_TYPE_EDGE_RISING
41 #define PCM990_CTRL_REG0 0x0000
42 #define PCM990_CTRL_SYSRES 0x0001
43 #define PCM990_CTRL_RESOUT 0x0002
44 #define PCM990_CTRL_RESGPIO 0x0004
46 #define PCM990_CTRL_REG1 0x0002
47 #define PCM990_CTRL_5VOFF 0x0001
48 #define PCM990_CTRL_CANPWR 0x0004
49 #define PCM990_CTRL_PM_5V 0x0008
51 #define PCM990_CTRL_REG2 0x0004
52 #define PCM990_CTRL_LEDPWR 0x0001
53 #define PCM990_CTRL_LEDBAS 0x0002
54 #define PCM990_CTRL_LEDUSR 0x0004
56 #define PCM990_CTRL_REG3 0x0006
57 #define PCM990_CTRL_LCDPWR 0x0001
58 #define PCM990_CTRL_LCDON 0x0002
59 #define PCM990_CTRL_LCDPOS1 0x0004
60 #define PCM990_CTRL_LCDPOS2 0x0008
62 #define PCM990_CTRL_REG4 0x0008
63 #define PCM990_CTRL_MMC1PWR 0x0001
65 #define PCM990_CTRL_REG5 0x000A
66 #define PCM990_CTRL_MMC2PWR 0x0001
67 #define PCM990_CTRL_MMC2LED 0x0002
68 #define PCM990_CTRL_MMC2DE 0x0004
69 #define PCM990_CTRL_MMC2WP 0x0008
71 #define PCM990_CTRL_INTSETCLR 0x000C
72 #define PCM990_CTRL_INTC0 0x0001
73 #define PCM990_CTRL_INTC1 0x0002
74 #define PCM990_CTRL_INTC2 0x0004
75 #define PCM990_CTRL_INTC3 0x0008
77 #define PCM990_CTRL_INTMSKENA 0x000E
78 #define PCM990_CTRL_ENAINT0 0x0001
79 #define PCM990_CTRL_ENAINT1 0x0002
80 #define PCM990_CTRL_ENAINT2 0x0004
81 #define PCM990_CTRL_ENAINT3 0x0008
83 #define PCM990_CTRL_REG8 0x0014
84 #define PCM990_CTRL_FFSD 0x0001
85 #define PCM990_CTRL_BTSD 0x0002
86 #define PCM990_CTRL_FFRI 0x0004
87 #define PCM990_CTRL_BTRX 0x0008
89 #define PCM990_CTRL_REG9 0x0010
90 #define PCM990_CTRL_FLWP 0x0001
91 #define PCM990_CTRL_FLDIS 0x0002
92 #define PCM990_CTRL_AC97ENA 0x0004
94 #define PCM990_CTRL_REG10 0x0012
95 #define PCM990_CTRL_GPSPWR 0x0004
96 #define PCM990_CTRL_GPSENA 0x0008
98 #define PCM990_CTRL_REG11 0x0014
99 #define PCM990_CTRL_ACENA 0x0001
100 #define PCM990_CTRL_ACSEL 0x0002
101 #define PCM990_CTRL_ACPRES 0x0004
102 #define PCM990_CTRL_ACALARM 0x0008
107 #define PCM990_IDE_IRQ_GPIO 13
108 #define PCM990_IDE_IRQ PXA_GPIO_TO_IRQ(PCM990_IDE_IRQ_GPIO)
109 #define PCM990_IDE_IRQ_EDGE IRQ_TYPE_EDGE_RISING
110 #define PCM990_IDE_PLD_PHYS 0x20000000
111 #define PCM990_IDE_PLD_BASE 0xee000000
112 #define PCM990_IDE_PLD_SIZE (1*1024*1024)
115 #define PCM990_IDE_PLD_REG0 0x1000
116 #define PCM990_IDE_PM5V 0x0004
117 #define PCM990_IDE_STBY 0x0008
119 #define PCM990_IDE_PLD_REG1 0x1002
120 #define PCM990_IDE_IDEMODE 0x0001
121 #define PCM990_IDE_DMAENA 0x0004
122 #define PCM990_IDE_DMA1_0 0x0008
124 #define PCM990_IDE_PLD_REG2 0x1004
125 #define PCM990_IDE_RESENA 0x0001
126 #define PCM990_IDE_RES 0x0002
127 #define PCM990_IDE_RDY 0x0008
129 #define PCM990_IDE_PLD_REG3 0x1006
130 #define PCM990_IDE_IDEOE 0x0001
131 #define PCM990_IDE_IDEON 0x0002
132 #define PCM990_IDE_IDEIN 0x0004
134 #define PCM990_IDE_PLD_REG4 0x1008
135 #define PCM990_IDE_PWRENA 0x0001
136 #define PCM990_IDE_5V 0x0002
137 #define PCM990_IDE_PWG 0x0008
139 #define PCM990_IDE_PLD_P2V(x) ((x) - PCM990_IDE_PLD_PHYS + PCM990_IDE_PLD_BASE)
140 #define PCM990_IDE_PLD_V2P(x) ((x) - PCM990_IDE_PLD_BASE + PCM990_IDE_PLD_PHYS)
145 #define PCM990_CF_IRQ_GPIO 11
146 #define PCM990_CF_IRQ PXA_GPIO_TO_IRQ(PCM990_CF_IRQ_GPIO)
147 #define PCM990_CF_IRQ_EDGE IRQ_TYPE_EDGE_RISING
149 #define PCM990_CF_CD_GPIO 12
150 #define PCM990_CF_CD PXA_GPIO_TO_IRQ(PCM990_CF_CD_GPIO)
151 #define PCM990_CF_CD_EDGE IRQ_TYPE_EDGE_RISING
153 #define PCM990_CF_PLD_PHYS 0x30000000
156 #define PCM990_CF_PLD_REG0 0x1000
157 #define PCM990_CF_REG0_LED 0x0001
158 #define PCM990_CF_REG0_BLK 0x0002
159 #define PCM990_CF_REG0_PM5V 0x0004
160 #define PCM990_CF_REG0_STBY 0x0008
162 #define PCM990_CF_PLD_REG1 0x1002
163 #define PCM990_CF_REG1_IDEMODE 0x0001
164 #define PCM990_CF_REG1_CF0 0x0002
166 #define PCM990_CF_PLD_REG2 0x1004
167 #define PCM990_CF_REG2_RES 0x0002
168 #define PCM990_CF_REG2_RDYENA 0x0004
169 #define PCM990_CF_REG2_RDY 0x0008
171 #define PCM990_CF_PLD_REG3 0x1006
172 #define PCM990_CF_REG3_CFOE 0x0001
173 #define PCM990_CF_REG3_CFON 0x0002
174 #define PCM990_CF_REG3_CFIN 0x0004
175 #define PCM990_CF_REG3_CFCD 0x0008
177 #define PCM990_CF_PLD_REG4 0x1008
178 #define PCM990_CF_REG4_PWRENA 0x0001
179 #define PCM990_CF_REG4_5_3V 0x0002
180 #define PCM990_CF_REG4_3B 0x0004
181 #define PCM990_CF_REG4_PWG 0x0008
183 #define PCM990_CF_PLD_REG5 0x100A
184 #define PCM990_CF_REG5_BVD1 0x0001
185 #define PCM990_CF_REG5_BVD2 0x0002
186 #define PCM990_CF_REG5_VS1 0x0004
187 #define PCM990_CF_REG5_VS2 0x0008
189 #define PCM990_CF_PLD_REG6 0x100C
190 #define PCM990_CF_REG6_CD1 0x0001
191 #define PCM990_CF_REG6_CD2 0x0002
196 #define PCM990_AC97_IRQ_GPIO 10
197 #define PCM990_AC97_IRQ PXA_GPIO_TO_IRQ(PCM990_AC97_IRQ_GPIO)
198 #define PCM990_AC97_IRQ_EDGE IRQ_TYPE_EDGE_RISING
203 #define PCM990_MMC0_IRQ_GPIO 9
204 #define PCM990_MMC0_IRQ PXA_GPIO_TO_IRQ(PCM990_MMC0_IRQ_GPIO)
205 #define PCM990_MMC0_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
210 #define PCM990_USB_OVERCURRENT (88 | GPIO_ALT_FN_1_IN)
211 #define PCM990_USB_PWR_EN (89 | GPIO_ALT_FN_2_OUT)