Lines Matching +full:0 +full:x0000000f
14 #define INT0_LO_RSVD0 (0)
88 #define RCM_RCR_FRCRSTOUT (0x40)
89 #define RCM_RCR_SOFTRST (0x80)
92 #define RCM_RSR_LOL (0x01)
93 #define RCM_RSR_WDR_CORE (0x02)
94 #define RCM_RSR_EXT (0x04)
95 #define RCM_RSR_POR (0x08)
96 #define RCM_RSR_SOFT (0x20)
103 #define CCM_CCR_DRAMSEL (0x0100)
104 #define CCM_CCR_CSC_UNMASK (0xFF3F)
105 #define CCM_CCR_CSC_FBCS5_CS4 (0x00C0)
106 #define CCM_CCR_CSC_FBCS5_A22 (0x0080)
107 #define CCM_CCR_CSC_FB_A23_A22 (0x0040)
108 #define CCM_CCR_LIMP (0x0020)
109 #define CCM_CCR_LOAD (0x0010)
110 #define CCM_CCR_BOOTPS_UNMASK (0xFFF3)
111 #define CCM_CCR_BOOTPS_PS16 (0x0008)
112 #define CCM_CCR_BOOTPS_PS8 (0x0004)
113 #define CCM_CCR_BOOTPS_PS32 (0x0000)
114 #define CCM_CCR_OSCMODE_OSCBYPASS (0x0002)
117 #define CCM_RCON_CSC_UNMASK (0xFF3F)
118 #define CCM_RCON_CSC_FBCS5_CS4 (0x00C0)
119 #define CCM_RCON_CSC_FBCS5_A22 (0x0080)
120 #define CCM_RCON_CSC_FB_A23_A22 (0x0040)
121 #define CCM_RCON_LIMP (0x0020)
122 #define CCM_RCON_LOAD (0x0010)
123 #define CCM_RCON_BOOTPS_UNMASK (0xFFF3)
124 #define CCM_RCON_BOOTPS_PS16 (0x0008)
125 #define CCM_RCON_BOOTPS_PS8 (0x0004)
126 #define CCM_RCON_BOOTPS_PS32 (0x0000)
127 #define CCM_RCON_OSCMODE_OSCBYPASS (0x0002)
130 #define CCM_CIR_PIN(x) (((x) & 0xFFC0) >> 6)
131 #define CCM_CIR_PRN(x) ((x) & 0x003F)
132 #define CCM_CIR_PIN_MCF52277 (0x0000)
135 #define CCM_MISCCR_RTCSRC (0x4000)
136 #define CCM_MISCCR_USBPUE (0x2000) /* USB transceiver pull-up */
137 #define CCM_MISCCR_LIMP (0x1000) /* Limp mode enable */
139 #define CCM_MISCCR_BME (0x0800) /* Bus monitor ext en bit */
140 #define CCM_MISCCR_BMT_65536 (0)
149 #define CCM_MISCCR_SSIPUE (0x0080) /* SSI RXD/TXD pull enable */
150 #define CCM_MISCCR_SSIPUS (0x0040) /* SSI RXD/TXD pull select */
151 #define CCM_MISCCR_TIMDMA (0x0020) /* Timer DMA mux selection */
152 #define CCM_MISCCR_SSISRC (0x0010) /* SSI clock source */
153 #define CCM_MISCCR_LCDCHEN (0x0004) /* LCD Int CLK en */
154 #define CCM_MISCCR_USBOC (0x0002) /* USB VBUS over-current sense pol */
155 #define CCM_MISCCR_USBSRC (0x0001) /* USB clock source */
158 #define CCM_CDR_USBDIV(x) (((x)&0x0003)<<12)
159 #define CCM_CDR_LPDIV(x) (((x)&0x000F)<<8) /* Low power clk div */
160 #define CCM_CDR_SSIDIV(x) (((x)&0x00FF)) /* SSI oversampling clk div */
163 #define CCM_UOCSR_DPPD (0x2000) /* D+ 15Kohm pull-down (rd-only) */
164 #define CCM_UOCSR_DMPD (0x1000) /* D- 15Kohm pull-down (rd-only) */
165 #define CCM_UOCSR_CRG_VBUS (0x0400) /* VBUS charge resistor enabled (rd-only) */
166 #define CCM_UOCSR_DCR_VBUS (0x0200) /* VBUS discharge resistor en (rd-only) */
167 #define CCM_UOCSR_DPPU (0x0100) /* D+ pull-up for FS enabled (rd-only) */
168 #define CCM_UOCSR_AVLD (0x0080) /* A-peripheral valid indicator */
169 #define CCM_UOCSR_BVLD (0x0040) /* B-peripheral valid indicator */
170 #define CCM_UOCSR_VVLD (0x0020) /* VBUS valid indicator */
171 #define CCM_UOCSR_SEND (0x0010) /* Session end */
172 #define CCM_UOCSR_WKUP (0x0004) /* USB OTG controller wake-up event */
173 #define CCM_UOCSR_UOMIE (0x0002) /* USB OTG misc interrupt en */
174 #define CCM_UOCSR_XPDE (0x0001) /* On-chip transceiver pull-down en */
180 #define GPIO_PAR_BE_UNMASK (0x0F)
181 #define GPIO_PAR_BE_BE3_BE3 (0x08)
182 #define GPIO_PAR_BE_BE3_GPIO (0x00)
183 #define GPIO_PAR_BE_BE2_BE2 (0x04)
184 #define GPIO_PAR_BE_BE2_GPIO (0x00)
185 #define GPIO_PAR_BE_BE1_BE1 (0x02)
186 #define GPIO_PAR_BE_BE1_GPIO (0x00)
187 #define GPIO_PAR_BE_BE0_BE0 (0x01)
188 #define GPIO_PAR_BE_BE0_GPIO (0x00)
191 #define GPIO_PAR_CS_CS3 (0x10)
192 #define GPIO_PAR_CS_CS2 (0x08)
193 #define GPIO_PAR_CS_CS1_FBCS1 (0x06)
194 #define GPIO_PAR_CS_CS1_SDCS1 (0x04)
195 #define GPIO_PAR_CS_CS1_GPIO (0x00)
196 #define GPIO_PAR_CS_CS0 (0x01)
199 #define GPIO_PAR_FBCTL_OE (0x80)
200 #define GPIO_PAR_FBCTL_TA (0x40)
201 #define GPIO_PAR_FBCTL_RW (0x20)
202 #define GPIO_PAR_FBCTL_TS_UNMASK (0xE7)
203 #define GPIO_PAR_FBCTL_TS_FBTS (0x18)
204 #define GPIO_PAR_FBCTL_TS_DMAACK (0x10)
205 #define GPIO_PAR_FBCTL_TS_GPIO (0x00)
208 #define GPIO_PAR_I2C_SCL_UNMASK (0xF3)
209 #define GPIO_PAR_I2C_SCL_SCL (0x0C)
210 #define GPIO_PAR_I2C_SCL_CANTXD (0x08)
211 #define GPIO_PAR_I2C_SCL_U2TXD (0x04)
212 #define GPIO_PAR_I2C_SCL_GPIO (0x00)
214 #define GPIO_PAR_I2C_SDA_UNMASK (0xFC)
215 #define GPIO_PAR_I2C_SDA_SDA (0x03)
216 #define GPIO_PAR_I2C_SDA_CANRXD (0x02)
217 #define GPIO_PAR_I2C_SDA_U2RXD (0x01)
218 #define GPIO_PAR_I2C_SDA_GPIO (0x00)
221 #define GPIO_PAR_UART_U1CTS_UNMASK (0x3FFF)
222 #define GPIO_PAR_UART_U1CTS_U1CTS (0xC000)
223 #define GPIO_PAR_UART_U1CTS_SSIBCLK (0x8000)
224 #define GPIO_PAR_UART_U1CTS_LCDCLS (0x4000)
225 #define GPIO_PAR_UART_U1CTS_GPIO (0x0000)
227 #define GPIO_PAR_UART_U1RTS_UNMASK (0xCFFF)
228 #define GPIO_PAR_UART_U1RTS_U1RTS (0x3000)
229 #define GPIO_PAR_UART_U1RTS_SSIFS (0x2000)
230 #define GPIO_PAR_UART_U1RTS_LCDPS (0x1000)
231 #define GPIO_PAR_UART_U1RTS_GPIO (0x0000)
233 #define GPIO_PAR_UART_U1RXD_UNMASK (0xF3FF)
234 #define GPIO_PAR_UART_U1RXD_U1RXD (0x0C00)
235 #define GPIO_PAR_UART_U1RXD_SSIRXD (0x0800)
236 #define GPIO_PAR_UART_U1RXD_GPIO (0x0000)
238 #define GPIO_PAR_UART_U1TXD_UNMASK (0xFCFF)
239 #define GPIO_PAR_UART_U1TXD_U1TXD (0x0300)
240 #define GPIO_PAR_UART_U1TXD_SSITXD (0x0200)
241 #define GPIO_PAR_UART_U1TXD_GPIO (0x0000)
243 #define GPIO_PAR_UART_U0CTS_UNMASK (0xFF3F)
244 #define GPIO_PAR_UART_U0CTS_U0CTS (0x00C0)
245 #define GPIO_PAR_UART_U0CTS_T1OUT (0x0080)
246 #define GPIO_PAR_UART_U0CTS_USBVBUSEN (0x0040)
247 #define GPIO_PAR_UART_U0CTS_GPIO (0x0000)
249 #define GPIO_PAR_UART_U0RTS_UNMASK (0xFFCF)
250 #define GPIO_PAR_UART_U0RTS_U0RTS (0x0030)
251 #define GPIO_PAR_UART_U0RTS_T1IN (0x0020)
252 #define GPIO_PAR_UART_U0RTS_USBVBUSOC (0x0010)
253 #define GPIO_PAR_UART_U0RTS_GPIO (0x0000)
255 #define GPIO_PAR_UART_U0RXD_UNMASK (0xFFF3)
256 #define GPIO_PAR_UART_U0RXD_U0RXD (0x000C)
257 #define GPIO_PAR_UART_U0RXD_CANRX (0x0008)
258 #define GPIO_PAR_UART_U0RXD_GPIO (0x0000)
260 #define GPIO_PAR_UART_U0TXD_UNMASK (0xFFFC)
261 #define GPIO_PAR_UART_U0TXD_U0TXD (0x0003)
262 #define GPIO_PAR_UART_U0TXD_CANTX (0x0002)
263 #define GPIO_PAR_UART_U0TXD_GPIO (0x0000)
266 #define GPIO_PAR_DSPI_PCS0_UNMASK (0x3F)
267 #define GPIO_PAR_DSPI_PCS0_PCS0 (0xC0)
268 #define GPIO_PAR_DSPI_PCS0_U2RTS (0x80)
269 #define GPIO_PAR_DSPI_PCS0_GPIO (0x00)
270 #define GPIO_PAR_DSPI_SIN_UNMASK (0xCF)
271 #define GPIO_PAR_DSPI_SIN_SIN (0x30)
272 #define GPIO_PAR_DSPI_SIN_U2RXD (0x20)
273 #define GPIO_PAR_DSPI_SIN_GPIO (0x00)
274 #define GPIO_PAR_DSPI_SOUT_UNMASK (0xF3)
275 #define GPIO_PAR_DSPI_SOUT_SOUT (0x0C)
276 #define GPIO_PAR_DSPI_SOUT_U2TXD (0x08)
277 #define GPIO_PAR_DSPI_SOUT_GPIO (0x00)
278 #define GPIO_PAR_DSPI_SCK_UNMASK (0xFC)
279 #define GPIO_PAR_DSPI_SCK_SCK (0x03)
280 #define GPIO_PAR_DSPI_SCK_U2CTS (0x02)
281 #define GPIO_PAR_DSPI_SCK_GPIO (0x00)
284 #define GPIO_PAR_TIMER_T3IN_UNMASK (0x3F)
285 #define GPIO_PAR_TIMER_T3IN_T3IN (0xC0)
286 #define GPIO_PAR_TIMER_T3IN_T3OUT (0x80)
287 #define GPIO_PAR_TIMER_T3IN_SSIMCLK (0x40)
288 #define GPIO_PAR_TIMER_T3IN_GPIO (0x00)
289 #define GPIO_PAR_TIMER_T2IN_UNMASK (0xCF)
290 #define GPIO_PAR_TIMER_T2IN_T2IN (0x30)
291 #define GPIO_PAR_TIMER_T2IN_T2OUT (0x20)
292 #define GPIO_PAR_TIMER_T2IN_DSPIPCS2 (0x10)
293 #define GPIO_PAR_TIMER_T2IN_GPIO (0x00)
294 #define GPIO_PAR_TIMER_T1IN_UNMASK (0xF3)
295 #define GPIO_PAR_TIMER_T1IN_T1IN (0x0C)
296 #define GPIO_PAR_TIMER_T1IN_T1OUT (0x08)
297 #define GPIO_PAR_TIMER_T1IN_LCDCONTRAST (0x04)
298 #define GPIO_PAR_TIMER_T1IN_GPIO (0x00)
299 #define GPIO_PAR_TIMER_T0IN_UNMASK (0xFC)
300 #define GPIO_PAR_TIMER_T0IN_T0IN (0x03)
301 #define GPIO_PAR_TIMER_T0IN_T0OUT (0x02)
302 #define GPIO_PAR_TIMER_T0IN_LCDREV (0x01)
303 #define GPIO_PAR_TIMER_T0IN_GPIO (0x00)
306 #define GPIO_PAR_LCDCTL_ACDOE_UNMASK (0xE7)
307 #define GPIO_PAR_LCDCTL_ACDOE_ACDOE (0x18)
308 #define GPIO_PAR_LCDCTL_ACDOE_SPLSPR (0x10)
309 #define GPIO_PAR_LCDCTL_ACDOE_GPIO (0x00)
310 #define GPIO_PAR_LCDCTL_FLM_VSYNC (0x04)
311 #define GPIO_PAR_LCDCTL_LP_HSYNC (0x02)
312 #define GPIO_PAR_LCDCTL_LSCLK (0x01)
315 #define GPIO_PAR_IRQ_IRQ4_UNMASK (0xF3)
316 #define GPIO_PAR_IRQ_IRQ4_SSIINPCLK (0x0C)
317 #define GPIO_PAR_IRQ_IRQ4_DMAREQ0 (0x08)
318 #define GPIO_PAR_IRQ_IRQ4_GPIO (0x00)
319 #define GPIO_PAR_IRQ_IRQ1_UNMASK (0xFC)
320 #define GPIO_PAR_IRQ_IRQ1_PCIINT (0x03)
321 #define GPIO_PAR_IRQ_IRQ1_USBCLKIN (0x02)
322 #define GPIO_PAR_IRQ_IRQ1_SSICLKIN (0x01)
323 #define GPIO_PAR_IRQ_IRQ1_GPIO (0x00)
326 #define GPIO_PAR_LCDH_LD17_UNMASK (0xFFFFF3FF)
327 #define GPIO_PAR_LCDH_LD17_LD17 (0x00000C00)
328 #define GPIO_PAR_LCDH_LD17_LD11 (0x00000800)
329 #define GPIO_PAR_LCDH_LD17_GPIO (0x00000000)
331 #define GPIO_PAR_LCDH_LD16_UNMASK (0xFFFFFCFF)
332 #define GPIO_PAR_LCDH_LD16_LD16 (0x00000300)
333 #define GPIO_PAR_LCDH_LD16_LD10 (0x00000200)
334 #define GPIO_PAR_LCDH_LD16_GPIO (0x00000000)
336 #define GPIO_PAR_LCDH_LD15_UNMASK (0xFFFFFF3F)
337 #define GPIO_PAR_LCDH_LD15_LD15 (0x000000C0)
338 #define GPIO_PAR_LCDH_LD15_LD9 (0x00000080)
339 #define GPIO_PAR_LCDH_LD15_GPIO (0x00000000)
341 #define GPIO_PAR_LCDH_LD14_UNMASK (0xFFFFFFCF)
342 #define GPIO_PAR_LCDH_LD14_LD14 (0x00000030)
343 #define GPIO_PAR_LCDH_LD14_LD8 (0x00000020)
344 #define GPIO_PAR_LCDH_LD14_GPIO (0x00000000)
346 #define GPIO_PAR_LCDH_LD13_UNMASK (0xFFFFFFF3)
347 #define GPIO_PAR_LCDH_LD13_LD13 (0x0000000C)
348 #define GPIO_PAR_LCDH_LD13_CANTX (0x00000008)
349 #define GPIO_PAR_LCDH_LD13_GPIO (0x00000000)
351 #define GPIO_PAR_LCDH_LD12_UNMASK (0xFFFFFFFC)
352 #define GPIO_PAR_LCDH_LD12_LD12 (0x00000003)
353 #define GPIO_PAR_LCDH_LD12_CANRX (0x00000002)
354 #define GPIO_PAR_LCDH_LD12_GPIO (0x00000000)
357 #define GPIO_PAR_LCDL_LD11_UNMASK (0x3FFFFFFF)
358 #define GPIO_PAR_LCDL_LD11_LD11 (0xC0000000)
359 #define GPIO_PAR_LCDL_LD11_LD7 (0x80000000)
360 #define GPIO_PAR_LCDL_LD11_GPIO (0x00000000)
362 #define GPIO_PAR_LCDL_LD10_UNMASK (0xCFFFFFFF)
363 #define GPIO_PAR_LCDL_LD10_LD10 (0x30000000)
364 #define GPIO_PAR_LCDL_LD10_LD6 (0x20000000)
365 #define GPIO_PAR_LCDL_LD10_GPIO (0x00000000)
367 #define GPIO_PAR_LCDL_LD9_UNMASK (0xF3FFFFFF)
368 #define GPIO_PAR_LCDL_LD9_LD9 (0x0C000000)
369 #define GPIO_PAR_LCDL_LD9_LD5 (0x08000000)
370 #define GPIO_PAR_LCDL_LD9_GPIO (0x00000000)
372 #define GPIO_PAR_LCDL_LD8_UNMASK (0xFCFFFFFF)
373 #define GPIO_PAR_LCDL_LD8_LD8 (0x03000000)
374 #define GPIO_PAR_LCDL_LD8_LD4 (0x02000000)
375 #define GPIO_PAR_LCDL_LD8_GPIO (0x00000000)
377 #define GPIO_PAR_LCDL_LD7_UNMASK (0xFF3FFFFF)
378 #define GPIO_PAR_LCDL_LD7_LD7 (0x00C00000)
379 #define GPIO_PAR_LCDL_LD7_PWM7 (0x00800000)
380 #define GPIO_PAR_LCDL_LD7_GPIO (0x00000000)
382 #define GPIO_PAR_LCDL_LD6_UNMASK (0xFFCFFFFF)
383 #define GPIO_PAR_LCDL_LD6_LD6 (0x00300000)
384 #define GPIO_PAR_LCDL_LD6_PWM5 (0x00200000)
385 #define GPIO_PAR_LCDL_LD6_GPIO (0x00000000)
387 #define GPIO_PAR_LCDL_LD5_UNMASK (0xFFF3FFFF)
388 #define GPIO_PAR_LCDL_LD5_LD5 (0x000C0000)
389 #define GPIO_PAR_LCDL_LD5_LD3 (0x00080000)
390 #define GPIO_PAR_LCDL_LD5_GPIO (0x00000000)
392 #define GPIO_PAR_LCDL_LD4_UNMASK (0xFFFCFFFF)
393 #define GPIO_PAR_LCDL_LD4_LD4 (0x00030000)
394 #define GPIO_PAR_LCDL_LD4_LD2 (0x00020000)
395 #define GPIO_PAR_LCDL_LD4_GPIO (0x00000000)
397 #define GPIO_PAR_LCDL_LD3_UNMASK (0xFFFF3FFF)
398 #define GPIO_PAR_LCDL_LD3_LD3 (0x0000C000)
399 #define GPIO_PAR_LCDL_LD3_LD1 (0x00008000)
400 #define GPIO_PAR_LCDL_LD3_GPIO (0x00000000)
402 #define GPIO_PAR_LCDL_LD2_UNMASK (0xFFFFCFFF)
403 #define GPIO_PAR_LCDL_LD2_LD2 (0x00003000)
404 #define GPIO_PAR_LCDL_LD2_LD0 (0x00002000)
405 #define GPIO_PAR_LCDL_LD2_GPIO (0x00000000)
407 #define GPIO_PAR_LCDL_LD1_UNMASK (0xFFFFF3FF)
408 #define GPIO_PAR_LCDL_LD1_LD1 (0x00000C00)
409 #define GPIO_PAR_LCDL_LD1_PWM3 (0x00000800)
410 #define GPIO_PAR_LCDL_LD1_GPIO (0x00000000)
412 #define GPIO_PAR_LCDL_LD0_UNMASK (0xFFFFFCFF)
413 #define GPIO_PAR_LCDL_LD0_LD0 (0x00000300)
414 #define GPIO_PAR_LCDL_LD0_PWM1 (0x00000200)
415 #define GPIO_PAR_LCDL_LD0_GPIO (0x00000000)
418 #define GPIO_MSCR_FB_DUPPER_UNMASK (0xCF)
419 #define GPIO_MSCR_FB_DUPPER_25V_33V (0x30)
420 #define GPIO_MSCR_FB_DUPPER_FULL_18V (0x20)
421 #define GPIO_MSCR_FB_DUPPER_OD (0x10)
422 #define GPIO_MSCR_FB_DUPPER_HALF_18V (0x00)
424 #define GPIO_MSCR_FB_DLOWER_UNMASK (0xF3)
425 #define GPIO_MSCR_FB_DLOWER_25V_33V (0x0C)
426 #define GPIO_MSCR_FB_DLOWER_FULL_18V (0x08)
427 #define GPIO_MSCR_FB_DLOWER_OD (0x04)
428 #define GPIO_MSCR_FB_DLOWER_HALF_18V (0x00)
430 #define GPIO_MSCR_FB_ADDRCTL_UNMASK (0xFC)
431 #define GPIO_MSCR_FB_ADDRCTL_25V_33V (0x03)
432 #define GPIO_MSCR_FB_ADDRCTL_FULL_18V (0x02)
433 #define GPIO_MSCR_FB_ADDRCTL_OD (0x01)
434 #define GPIO_MSCR_FB_ADDRCTL_HALF_18V (0x00)
437 #define GPIO_MSCR_SDRAM_SDCLKB_UNMASK (0xCF)
438 #define GPIO_MSCR_SDRAM_SDCLKB_25V_33V (0x30)
439 #define GPIO_MSCR_SDRAM_SDCLKB_FULL_18V (0x20)
440 #define GPIO_MSCR_SDRAM_SDCLKB_OD (0x10)
441 #define GPIO_MSCR_SDRAM_SDCLKB_HALF_18V (0x00)
443 #define GPIO_MSCR_SDRAM_SDCLK_UNMASK (0xF3)
444 #define GPIO_MSCR_SDRAM_SDCLK_25V_33V (0x0C)
445 #define GPIO_MSCR_SDRAM_SDCLK_FULL_18V (0x08)
446 #define GPIO_MSCR_SDRAM_SDCLK_OPD (0x04)
447 #define GPIO_MSCR_SDRAM_SDCLK_HALF_18V (0x00)
449 #define GPIO_MSCR_SDRAM_SDCTL_UNMASK (0xFC)
450 #define GPIO_MSCR_SDRAM_SDCTL_25V_33V (0x03)
451 #define GPIO_MSCR_SDRAM_SDCTL_FULL_18V (0x02)
452 #define GPIO_MSCR_SDRAM_SDCTL_OPD (0x01)
453 #define GPIO_MSCR_SDRAM_SDCTL_HALF_18V (0x00)
456 #define DSCR_LOAD_50PF (0x03)
457 #define DSCR_LOAD_30PF (0x02)
458 #define DSCR_LOAD_20PF (0x01)
459 #define DSCR_LOAD_10PF (0x00)
466 #define SDRAMC_SDMR_DDR2_AD(x) (((x)&0x00003FFF)) /* Address for DDR2 */
467 #define SDRAMC_SDMR_CMD (0x00010000) /* Command */
468 #define SDRAMC_SDMR_AD(x) (((x)&0x00000FFF)<<18) /* Address */
469 #define SDRAMC_SDMR_BK(x) (((x)&0x00000003)<<30) /* Bank Address */
470 #define SDRAMC_SDMR_BK_LMR (0x00000000)
471 #define SDRAMC_SDMR_BK_LEMR (0x40000000)
474 #define SDRAMC_SDCR_DPD (0x00000001) /* Deep Power-Down Mode */
475 #define SDRAMC_SDCR_IPALL (0x00000002) /* Initiate Precharge All */
476 #define SDRAMC_SDCR_IREF (0x00000004) /* Initiate Refresh */
477 #define SDRAMC_SDCR_DQS_OE(x) (((x)&0x00000003)<<10) /* DQS Output Enable */
478 #define SDRAMC_SDCR_MEM_PS (0x00002000) /* Data Port Size */
479 #define SDRAMC_SDCR_REF_CNT(x) (((x)&0x0000003F)<<16) /* Periodic Refresh Counter */
480 #define SDRAMC_SDCR_OE_RULE (0x00400000) /* Drive Rule Selection */
481 #define SDRAMC_SDCR_ADDR_MUX(x) (((x)&0x00000003)<<24) /* Internal Address Mux Select */
482 #define SDRAMC_SDCR_DDR2_MODE (0x08000000) /* DDR2 Mode Select */
483 #define SDRAMC_SDCR_REF_EN (0x10000000) /* Refresh Enable */
484 #define SDRAMC_SDCR_DDR_MODE (0x20000000) /* DDR Mode Select */
485 #define SDRAMC_SDCR_CKE (0x40000000) /* Clock Enable */
486 #define SDRAMC_SDCR_MODE_EN (0x80000000) /* SDRAM Mode Register Programming Enable */
487 #define SDRAMC_SDCR_DQS_OE_BOTH (0x00000C000)
490 #define SDRAMC_SDCFG1_WT_LAT(x) (((x)&0x00000007)<<4) /* Write Latency */
491 #define SDRAMC_SDCFG1_REF2ACT(x) (((x)&0x0000000F)<<8) /* Refresh to active delay */
492 #define SDRAMC_SDCFG1_PRE2ACT(x) (((x)&0x00000007)<<12) /* Precharge to active delay */
493 #define SDRAMC_SDCFG1_ACT2RW(x) (((x)&0x00000007)<<16) /* Active to read/write delay */
494 #define SDRAMC_SDCFG1_RD_LAT(x) (((x)&0x0000000F)<<20) /* Read CAS Latency */
495 #define SDRAMC_SDCFG1_SWT2RWP(x) (((x)&0x00000007)<<24) /* Single write to read/write/precharge del…
496 #define SDRAMC_SDCFG1_SRD2RWP(x) (((x)&0x0000000F)<<28) /* Single read to read/write/precharge dela…
499 #define SDRAMC_SDCFG2_BL(x) (((x)&0x0000000F)<<16) /* Burst Length */
500 #define SDRAMC_SDCFG2_BRD2W(x) (((x)&0x0000000F)<<20) /* Burst read to write delay */
501 #define SDRAMC_SDCFG2_BWT2RWP(x) (((x)&0x0000000F)<<24) /* Burst write to read/write/precharge dela…
502 #define SDRAMC_SDCFG2_BRD2RP(x) (((x)&0x0000000F)<<28) /* Burst read to read/precharge delay */
505 #define SDRAMC_SDCS_CSSZ(x) (((x)&0x0000001F)) /* Chip-Select Size */
506 #define SDRAMC_SDCS_CSBA(x) (((x)&0x00000FFF)<<20) /* Chip-Select Base Address */
507 #define SDRAMC_SDCS_BA(x) ((x)&0xFFF00000)
508 #define SDRAMC_SDCS_CSSZ_DISABLE (0x00000000)
509 #define SDRAMC_SDCS_CSSZ_1MBYTE (0x00000013)
510 #define SDRAMC_SDCS_CSSZ_2MBYTE (0x00000014)
511 #define SDRAMC_SDCS_CSSZ_4MBYTE (0x00000015)
512 #define SDRAMC_SDCS_CSSZ_8MBYTE (0x00000016)
513 #define SDRAMC_SDCS_CSSZ_16MBYTE (0x00000017)
514 #define SDRAMC_SDCS_CSSZ_32MBYTE (0x00000018)
515 #define SDRAMC_SDCS_CSSZ_64MBYTE (0x00000019)
516 #define SDRAMC_SDCS_CSSZ_128MBYTE (0x0000001A)
517 #define SDRAMC_SDCS_CSSZ_256MBYTE (0x0000001B)
518 #define SDRAMC_SDCS_CSSZ_512MBYTE (0x0000001C)
519 #define SDRAMC_SDCS_CSSZ_1GBYTE (0x0000001D)
520 #define SDRAMC_SDCS_CSSZ_2GBYTE (0x0000001E)
521 #define SDRAMC_SDCS_CSSZ_4GBYTE (0x0000001F)
528 #define PLL_PCR_OUTDIV1(x) (((x)&0x0000000F)) /* Output divider for CPU clock frequency */
529 #define PLL_PCR_OUTDIV2(x) (((x)&0x0000000F)<<4) /* Output divider for bus/flexbus clock frequency…
530 #define PLL_PCR_OUTDIV3(x) (((x)&0x0000000F)<<8) /* Output divider for SDRAM clock frequency */
531 #define PLL_PCR_OUTDIV5(x) (((x)&0x0000000F)<<16) /* Output divider for USB clock frequency */
532 #define PLL_PCR_PFDR(x) (((x)&0x000000FF)<<24) /* Feedback divider for VCO frequency */
533 #define PLL_PCR_PFDR_MASK (0x000F0000)
534 #define PLL_PCR_OUTDIV5_MASK (0x000F0000)
535 #define PLL_PCR_OUTDIV3_MASK (0x00000F00)
536 #define PLL_PCR_OUTDIV2_MASK (0x000000F0)
537 #define PLL_PCR_OUTDIV1_MASK (0x0000000F)
540 #define PLL_PSR_LOCKS (0x00000001) /* PLL lost lock - sticky */
541 #define PLL_PSR_LOCK (0x00000002) /* PLL lock status */
542 #define PLL_PSR_LOLIRQ (0x00000004) /* PLL loss-of-lock interrupt enable */
543 #define PLL_PSR_LOLRE (0x00000008) /* PLL loss-of-lock reset enable */