Go to the documentation of this file.
24 #ifndef __ASM_FSL_LBC_H
25 #define __ASM_FSL_LBC_H
27 #include <linux/compiler.h>
28 #include <linux/types.h>
30 #include <linux/device.h>
35 #define BR_BA 0xFFFF8000
36 #define BR_BA_SHIFT 15
37 #define BR_PS 0x00001800
38 #define BR_PS_SHIFT 11
39 #define BR_PS_8 0x00000800
40 #define BR_PS_16 0x00001000
41 #define BR_PS_32 0x00001800
42 #define BR_DECC 0x00000600
43 #define BR_DECC_SHIFT 9
44 #define BR_DECC_OFF 0x00000000
45 #define BR_DECC_CHK 0x00000200
46 #define BR_DECC_CHK_GEN 0x00000400
47 #define BR_WP 0x00000100
49 #define BR_MSEL 0x000000E0
50 #define BR_MSEL_SHIFT 5
51 #define BR_MS_GPCM 0x00000000
52 #define BR_MS_FCM 0x00000020
53 #define BR_MS_SDRAM 0x00000060
54 #define BR_MS_UPMA 0x00000080
55 #define BR_MS_UPMB 0x000000A0
56 #define BR_MS_UPMC 0x000000C0
57 #define BR_V 0x00000001
59 #define BR_RES ~(BR_BA|BR_PS|BR_DECC|BR_WP|BR_MSEL|BR_V)
71 #define OR_FCM_AM 0xFFFF8000
72 #define OR_FCM_AM_SHIFT 15
73 #define OR_FCM_BCTLD 0x00001000
74 #define OR_FCM_BCTLD_SHIFT 12
75 #define OR_FCM_PGS 0x00000400
76 #define OR_FCM_PGS_SHIFT 10
77 #define OR_FCM_CSCT 0x00000200
78 #define OR_FCM_CSCT_SHIFT 9
79 #define OR_FCM_CST 0x00000100
80 #define OR_FCM_CST_SHIFT 8
81 #define OR_FCM_CHT 0x00000080
82 #define OR_FCM_CHT_SHIFT 7
83 #define OR_FCM_SCY 0x00000070
84 #define OR_FCM_SCY_SHIFT 4
85 #define OR_FCM_SCY_1 0x00000010
86 #define OR_FCM_SCY_2 0x00000020
87 #define OR_FCM_SCY_3 0x00000030
88 #define OR_FCM_SCY_4 0x00000040
89 #define OR_FCM_SCY_5 0x00000050
90 #define OR_FCM_SCY_6 0x00000060
91 #define OR_FCM_SCY_7 0x00000070
92 #define OR_FCM_RST 0x00000008
93 #define OR_FCM_RST_SHIFT 3
94 #define OR_FCM_TRLX 0x00000004
95 #define OR_FCM_TRLX_SHIFT 2
96 #define OR_FCM_EHTR 0x00000002
97 #define OR_FCM_EHTR_SHIFT 1
106 #define MxMR_OP_NO (0 << 28)
107 #define MxMR_OP_WA (1 << 28)
108 #define MxMR_OP_RA (2 << 28)
109 #define MxMR_OP_RP (3 << 28)
110 #define MxMR_MAD 0x3f
124 #define LTESR_BM 0x80000000
125 #define LTESR_FCT 0x40000000
126 #define LTESR_PAR 0x20000000
127 #define LTESR_WP 0x04000000
128 #define LTESR_ATMW 0x00800000
129 #define LTESR_ATMR 0x00400000
130 #define LTESR_CS 0x00080000
131 #define LTESR_UPM 0x00000002
132 #define LTESR_CC 0x00000001
133 #define LTESR_NAND_MASK (LTESR_FCT | LTESR_PAR | LTESR_CC)
134 #define LTESR_MASK (LTESR_BM | LTESR_FCT | LTESR_PAR | LTESR_WP \
135 | LTESR_ATMW | LTESR_ATMR | LTESR_CS | LTESR_UPM \
137 #define LTESR_CLEAR 0xFFFFFFFF
138 #define LTECCR_CLEAR 0xFFFFFFFF
139 #define LTESR_STATUS LTESR_MASK
140 #define LTEIR_ENABLE LTESR_MASK
141 #define LTEDR_ENABLE 0x00000000
149 #define LBCR_LDIS 0x80000000
150 #define LBCR_LDIS_SHIFT 31
151 #define LBCR_BCTLC 0x00C00000
152 #define LBCR_BCTLC_SHIFT 22
153 #define LBCR_AHD 0x00200000
154 #define LBCR_LPBSE 0x00020000
155 #define LBCR_LPBSE_SHIFT 17
156 #define LBCR_EPAR 0x00010000
157 #define LBCR_EPAR_SHIFT 16
158 #define LBCR_BMT 0x0000FF00
159 #define LBCR_BMT_SHIFT 8
160 #define LBCR_BMTPS 0x0000000F
161 #define LBCR_BMTPS_SHIFT 0
162 #define LBCR_INIT 0x00040000
164 #define LCRR_DBYP 0x80000000
165 #define LCRR_DBYP_SHIFT 31
166 #define LCRR_BUFCMDC 0x30000000
167 #define LCRR_BUFCMDC_SHIFT 28
168 #define LCRR_ECL 0x03000000
169 #define LCRR_ECL_SHIFT 24
170 #define LCRR_EADC 0x00030000
171 #define LCRR_EADC_SHIFT 16
172 #define LCRR_CLKDIV 0x0000000F
173 #define LCRR_CLKDIV_SHIFT 0
176 #define FMR_CWTO 0x0000F000
177 #define FMR_CWTO_SHIFT 12
178 #define FMR_BOOT 0x00000800
179 #define FMR_ECCM 0x00000100
180 #define FMR_AL 0x00000030
181 #define FMR_AL_SHIFT 4
182 #define FMR_OP 0x00000003
183 #define FMR_OP_SHIFT 0
185 #define FIR_OP0 0xF0000000
186 #define FIR_OP0_SHIFT 28
187 #define FIR_OP1 0x0F000000
188 #define FIR_OP1_SHIFT 24
189 #define FIR_OP2 0x00F00000
190 #define FIR_OP2_SHIFT 20
191 #define FIR_OP3 0x000F0000
192 #define FIR_OP3_SHIFT 16
193 #define FIR_OP4 0x0000F000
194 #define FIR_OP4_SHIFT 12
195 #define FIR_OP5 0x00000F00
196 #define FIR_OP5_SHIFT 8
197 #define FIR_OP6 0x000000F0
198 #define FIR_OP6_SHIFT 4
199 #define FIR_OP7 0x0000000F
200 #define FIR_OP7_SHIFT 0
201 #define FIR_OP_NOP 0x0
202 #define FIR_OP_CA 0x1
203 #define FIR_OP_PA 0x2
204 #define FIR_OP_UA 0x3
205 #define FIR_OP_CM0 0x4
206 #define FIR_OP_CM1 0x5
207 #define FIR_OP_CM2 0x6
208 #define FIR_OP_CM3 0x7
209 #define FIR_OP_WB 0x8
210 #define FIR_OP_WS 0x9
211 #define FIR_OP_RB 0xA
212 #define FIR_OP_RS 0xB
213 #define FIR_OP_CW0 0xC
214 #define FIR_OP_CW1 0xD
215 #define FIR_OP_RBW 0xE
216 #define FIR_OP_RSW 0xE
218 #define FCR_CMD0 0xFF000000
219 #define FCR_CMD0_SHIFT 24
220 #define FCR_CMD1 0x00FF0000
221 #define FCR_CMD1_SHIFT 16
222 #define FCR_CMD2 0x0000FF00
223 #define FCR_CMD2_SHIFT 8
224 #define FCR_CMD3 0x000000FF
225 #define FCR_CMD3_SHIFT 0
227 #define FBAR_BLK 0x00FFFFFF
229 #define FPAR_SP_PI 0x00007C00
230 #define FPAR_SP_PI_SHIFT 10
231 #define FPAR_SP_MS 0x00000200
232 #define FPAR_SP_CI 0x000001FF
233 #define FPAR_SP_CI_SHIFT 0
234 #define FPAR_LP_PI 0x0003F000
235 #define FPAR_LP_PI_SHIFT 12
236 #define FPAR_LP_MS 0x00000800
237 #define FPAR_LP_CI 0x000007FF
238 #define FPAR_LP_CI_SHIFT 0
240 #define FBCR_BC 0x00000FFF
263 static inline void fsl_upm_start_pattern(
struct fsl_upm *upm,
u8 pat_offset)
274 static inline void fsl_upm_end_pattern(
struct fsl_upm *upm)
296 #ifdef CONFIG_SUSPEND