Go to the documentation of this file.
14 #ifndef __PXA2XX_REGS_H
15 #define __PXA2XX_REGS_H
17 #include <mach/hardware.h>
23 #define PMCR __REG(0x40F00000)
24 #define PSSR __REG(0x40F00004)
25 #define PSPR __REG(0x40F00008)
26 #define PWER __REG(0x40F0000C)
27 #define PRER __REG(0x40F00010)
28 #define PFER __REG(0x40F00014)
29 #define PEDR __REG(0x40F00018)
30 #define PCFR __REG(0x40F0001C)
31 #define PGSR0 __REG(0x40F00020)
32 #define PGSR1 __REG(0x40F00024)
33 #define PGSR2 __REG(0x40F00028)
34 #define PGSR3 __REG(0x40F0002C)
35 #define RCSR __REG(0x40F00030)
37 #define PSLR __REG(0x40F00034)
38 #define PSTR __REG(0x40F00038)
39 #define PSNR __REG(0x40F0003C)
40 #define PVCR __REG(0x40F00040)
41 #define PKWR __REG(0x40F00050)
42 #define PKSR __REG(0x40F00054)
43 #define PCMD(x) __REG2(0x40F00080, (x)<<2)
44 #define PCMD0 __REG(0x40F00080 + 0 * 4)
45 #define PCMD1 __REG(0x40F00080 + 1 * 4)
46 #define PCMD2 __REG(0x40F00080 + 2 * 4)
47 #define PCMD3 __REG(0x40F00080 + 3 * 4)
48 #define PCMD4 __REG(0x40F00080 + 4 * 4)
49 #define PCMD5 __REG(0x40F00080 + 5 * 4)
50 #define PCMD6 __REG(0x40F00080 + 6 * 4)
51 #define PCMD7 __REG(0x40F00080 + 7 * 4)
52 #define PCMD8 __REG(0x40F00080 + 8 * 4)
53 #define PCMD9 __REG(0x40F00080 + 9 * 4)
54 #define PCMD10 __REG(0x40F00080 + 10 * 4)
55 #define PCMD11 __REG(0x40F00080 + 11 * 4)
56 #define PCMD12 __REG(0x40F00080 + 12 * 4)
57 #define PCMD13 __REG(0x40F00080 + 13 * 4)
58 #define PCMD14 __REG(0x40F00080 + 14 * 4)
59 #define PCMD15 __REG(0x40F00080 + 15 * 4)
60 #define PCMD16 __REG(0x40F00080 + 16 * 4)
61 #define PCMD17 __REG(0x40F00080 + 17 * 4)
62 #define PCMD18 __REG(0x40F00080 + 18 * 4)
63 #define PCMD19 __REG(0x40F00080 + 19 * 4)
64 #define PCMD20 __REG(0x40F00080 + 20 * 4)
65 #define PCMD21 __REG(0x40F00080 + 21 * 4)
66 #define PCMD22 __REG(0x40F00080 + 22 * 4)
67 #define PCMD23 __REG(0x40F00080 + 23 * 4)
68 #define PCMD24 __REG(0x40F00080 + 24 * 4)
69 #define PCMD25 __REG(0x40F00080 + 25 * 4)
70 #define PCMD26 __REG(0x40F00080 + 26 * 4)
71 #define PCMD27 __REG(0x40F00080 + 27 * 4)
72 #define PCMD28 __REG(0x40F00080 + 28 * 4)
73 #define PCMD29 __REG(0x40F00080 + 29 * 4)
74 #define PCMD30 __REG(0x40F00080 + 30 * 4)
75 #define PCMD31 __REG(0x40F00080 + 31 * 4)
77 #define PCMD_MBC (1<<12)
78 #define PCMD_DCE (1<<11)
79 #define PCMD_LC (1<<10)
81 #define PCMD_SQC (3<<8)
83 #define PVCR_VCSA (0x1<<14)
84 #define PVCR_CommandDelay (0xf80)
85 #define PCFR_PI2C_EN (0x1 << 6)
87 #define PSSR_OTGPH (1 << 6)
88 #define PSSR_RDH (1 << 5)
89 #define PSSR_PH (1 << 4)
90 #define PSSR_STS (1 << 3)
91 #define PSSR_VFS (1 << 2)
92 #define PSSR_BFS (1 << 1)
93 #define PSSR_SSS (1 << 0)
95 #define PSLR_SL_ROD (1 << 20)
97 #define PCFR_RO (1 << 15)
98 #define PCFR_PO (1 << 14)
99 #define PCFR_GPROD (1 << 12)
100 #define PCFR_L1_EN (1 << 11)
101 #define PCFR_FVC (1 << 10)
102 #define PCFR_DC_EN (1 << 7)
103 #define PCFR_PI2CEN (1 << 6)
104 #define PCFR_GPR_EN (1 << 4)
105 #define PCFR_DS (1 << 3)
106 #define PCFR_FS (1 << 2)
107 #define PCFR_FP (1 << 1)
108 #define PCFR_OPDE (1 << 0)
110 #define RCSR_GPR (1 << 3)
111 #define RCSR_SMR (1 << 2)
112 #define RCSR_WDR (1 << 1)
113 #define RCSR_HWR (1 << 0)
115 #define PWER_GPIO(Nb) (1 << Nb)
116 #define PWER_GPIO0 PWER_GPIO (0)
117 #define PWER_GPIO1 PWER_GPIO (1)
118 #define PWER_GPIO2 PWER_GPIO (2)
119 #define PWER_GPIO3 PWER_GPIO (3)
120 #define PWER_GPIO4 PWER_GPIO (4)
121 #define PWER_GPIO5 PWER_GPIO (5)
122 #define PWER_GPIO6 PWER_GPIO (6)
123 #define PWER_GPIO7 PWER_GPIO (7)
124 #define PWER_GPIO8 PWER_GPIO (8)
125 #define PWER_GPIO9 PWER_GPIO (9)
126 #define PWER_GPIO10 PWER_GPIO (10)
127 #define PWER_GPIO11 PWER_GPIO (11)
128 #define PWER_GPIO12 PWER_GPIO (12)
129 #define PWER_GPIO13 PWER_GPIO (13)
130 #define PWER_GPIO14 PWER_GPIO (14)
131 #define PWER_GPIO15 PWER_GPIO (15)
132 #define PWER_RTC 0x80000000
137 #define CCCR __REG(0x41300000)
138 #define CCSR __REG(0x4130000C)
139 #define CKEN __REG(0x41300004)
140 #define OSCC __REG(0x41300008)
142 #define CCCR_N_MASK 0x0380
143 #define CCCR_M_MASK 0x0060
144 #define CCCR_L_MASK 0x001f
146 #define CKEN_AC97CONF (31)
147 #define CKEN_CAMERA (24)
148 #define CKEN_SSP1 (23)
149 #define CKEN_MEMC (22)
150 #define CKEN_MEMSTK (21)
152 #define CKEN_KEYPAD (19)
153 #define CKEN_USIM (18)
154 #define CKEN_MSL (17)
155 #define CKEN_LCD (16)
156 #define CKEN_PWRI2C (15)
157 #define CKEN_I2C (14)
158 #define CKEN_FICP (13)
159 #define CKEN_MMC (12)
160 #define CKEN_USB (11)
161 #define CKEN_ASSP (10)
162 #define CKEN_USBHOST (10)
163 #define CKEN_OSTIMER (9)
164 #define CKEN_NSSP (9)
166 #define CKEN_BTUART (7)
167 #define CKEN_FFUART (6)
168 #define CKEN_STUART (5)
169 #define CKEN_HWUART (4)
170 #define CKEN_SSP3 (4)
172 #define CKEN_SSP2 (3)
173 #define CKEN_AC97 (2)
174 #define CKEN_PWM1 (1)
175 #define CKEN_PWM0 (0)
177 #define OSCC_OON (1 << 1)
178 #define OSCC_OOK (1 << 0)
182 #define PWRMODE_IDLE 0x1
183 #define PWRMODE_STANDBY 0x2
184 #define PWRMODE_SLEEP 0x3
185 #define PWRMODE_DEEPSLEEP 0x7