1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun /****************************************************************************/ 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun /* 5*4882a593Smuzhiyun * m53xxsim.h -- ColdFire 5329 registers 6*4882a593Smuzhiyun */ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun /****************************************************************************/ 9*4882a593Smuzhiyun #ifndef m53xxsim_h 10*4882a593Smuzhiyun #define m53xxsim_h 11*4882a593Smuzhiyun /****************************************************************************/ 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun #define CPU_NAME "COLDFIRE(m53xx)" 14*4882a593Smuzhiyun #define CPU_INSTR_PER_JIFFY 3 15*4882a593Smuzhiyun #define MCF_BUSCLK (MCF_CLK / 3) 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun #include <asm/m53xxacr.h> 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun #define MCFINT_VECBASE 64 20*4882a593Smuzhiyun #define MCFINT_UART0 26 /* Interrupt number for UART0 */ 21*4882a593Smuzhiyun #define MCFINT_UART1 27 /* Interrupt number for UART1 */ 22*4882a593Smuzhiyun #define MCFINT_UART2 28 /* Interrupt number for UART2 */ 23*4882a593Smuzhiyun #define MCFINT_I2C0 30 /* Interrupt number for I2C */ 24*4882a593Smuzhiyun #define MCFINT_QSPI 31 /* Interrupt number for QSPI */ 25*4882a593Smuzhiyun #define MCFINT_FECRX0 36 /* Interrupt number for FEC */ 26*4882a593Smuzhiyun #define MCFINT_FECTX0 40 /* Interrupt number for FEC */ 27*4882a593Smuzhiyun #define MCFINT_FECENTC0 42 /* Interrupt number for FEC */ 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun #define MCF_IRQ_UART0 (MCFINT_VECBASE + MCFINT_UART0) 30*4882a593Smuzhiyun #define MCF_IRQ_UART1 (MCFINT_VECBASE + MCFINT_UART1) 31*4882a593Smuzhiyun #define MCF_IRQ_UART2 (MCFINT_VECBASE + MCFINT_UART2) 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun #define MCF_IRQ_FECRX0 (MCFINT_VECBASE + MCFINT_FECRX0) 34*4882a593Smuzhiyun #define MCF_IRQ_FECTX0 (MCFINT_VECBASE + MCFINT_FECTX0) 35*4882a593Smuzhiyun #define MCF_IRQ_FECENTC0 (MCFINT_VECBASE + MCFINT_FECENTC0) 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun #define MCF_IRQ_I2C0 (MCFINT_VECBASE + MCFINT_I2C0) 38*4882a593Smuzhiyun #define MCF_IRQ_QSPI (MCFINT_VECBASE + MCFINT_QSPI) 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun #define MCF_WTM_WCR 0xFC098000 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun /* 43*4882a593Smuzhiyun * Define the 532x SIM register set addresses. 44*4882a593Smuzhiyun */ 45*4882a593Smuzhiyun #define MCFSIM_IPRL 0xFC048004 46*4882a593Smuzhiyun #define MCFSIM_IPRH 0xFC048000 47*4882a593Smuzhiyun #define MCFSIM_IPR MCFSIM_IPRL 48*4882a593Smuzhiyun #define MCFSIM_IMRL 0xFC04800C 49*4882a593Smuzhiyun #define MCFSIM_IMRH 0xFC048008 50*4882a593Smuzhiyun #define MCFSIM_IMR MCFSIM_IMRL 51*4882a593Smuzhiyun #define MCFSIM_ICR0 0xFC048040 52*4882a593Smuzhiyun #define MCFSIM_ICR1 0xFC048041 53*4882a593Smuzhiyun #define MCFSIM_ICR2 0xFC048042 54*4882a593Smuzhiyun #define MCFSIM_ICR3 0xFC048043 55*4882a593Smuzhiyun #define MCFSIM_ICR4 0xFC048044 56*4882a593Smuzhiyun #define MCFSIM_ICR5 0xFC048045 57*4882a593Smuzhiyun #define MCFSIM_ICR6 0xFC048046 58*4882a593Smuzhiyun #define MCFSIM_ICR7 0xFC048047 59*4882a593Smuzhiyun #define MCFSIM_ICR8 0xFC048048 60*4882a593Smuzhiyun #define MCFSIM_ICR9 0xFC048049 61*4882a593Smuzhiyun #define MCFSIM_ICR10 0xFC04804A 62*4882a593Smuzhiyun #define MCFSIM_ICR11 0xFC04804B 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun /* 65*4882a593Smuzhiyun * Some symbol defines for the above... 66*4882a593Smuzhiyun */ 67*4882a593Smuzhiyun #define MCFSIM_SWDICR MCFSIM_ICR0 /* Watchdog timer ICR */ 68*4882a593Smuzhiyun #define MCFSIM_TIMER1ICR MCFSIM_ICR1 /* Timer 1 ICR */ 69*4882a593Smuzhiyun #define MCFSIM_TIMER2ICR MCFSIM_ICR2 /* Timer 2 ICR */ 70*4882a593Smuzhiyun #define MCFSIM_UART1ICR MCFSIM_ICR4 /* UART 1 ICR */ 71*4882a593Smuzhiyun #define MCFSIM_UART2ICR MCFSIM_ICR5 /* UART 2 ICR */ 72*4882a593Smuzhiyun #define MCFSIM_DMA0ICR MCFSIM_ICR6 /* DMA 0 ICR */ 73*4882a593Smuzhiyun #define MCFSIM_DMA1ICR MCFSIM_ICR7 /* DMA 1 ICR */ 74*4882a593Smuzhiyun #define MCFSIM_DMA2ICR MCFSIM_ICR8 /* DMA 2 ICR */ 75*4882a593Smuzhiyun #define MCFSIM_DMA3ICR MCFSIM_ICR9 /* DMA 3 ICR */ 76*4882a593Smuzhiyun 77*4882a593Smuzhiyun 78*4882a593Smuzhiyun #define MCFINTC0_SIMR 0xFC04801C 79*4882a593Smuzhiyun #define MCFINTC0_CIMR 0xFC04801D 80*4882a593Smuzhiyun #define MCFINTC0_ICR0 0xFC048040 81*4882a593Smuzhiyun #define MCFINTC1_SIMR 0xFC04C01C 82*4882a593Smuzhiyun #define MCFINTC1_CIMR 0xFC04C01D 83*4882a593Smuzhiyun #define MCFINTC1_ICR0 0xFC04C040 84*4882a593Smuzhiyun #define MCFINTC2_SIMR (0) 85*4882a593Smuzhiyun #define MCFINTC2_CIMR (0) 86*4882a593Smuzhiyun #define MCFINTC2_ICR0 (0) 87*4882a593Smuzhiyun 88*4882a593Smuzhiyun #define MCFSIM_ICR_TIMER1 (0xFC048040+32) 89*4882a593Smuzhiyun #define MCFSIM_ICR_TIMER2 (0xFC048040+33) 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun /* 92*4882a593Smuzhiyun * Define system peripheral IRQ usage. 93*4882a593Smuzhiyun */ 94*4882a593Smuzhiyun #define MCF_IRQ_TIMER (64 + 32) /* Timer0 */ 95*4882a593Smuzhiyun #define MCF_IRQ_PROFILER (64 + 33) /* Timer1 */ 96*4882a593Smuzhiyun 97*4882a593Smuzhiyun /* 98*4882a593Smuzhiyun * UART module. 99*4882a593Smuzhiyun */ 100*4882a593Smuzhiyun #define MCFUART_BASE0 0xFC060000 /* Base address of UART1 */ 101*4882a593Smuzhiyun #define MCFUART_BASE1 0xFC064000 /* Base address of UART2 */ 102*4882a593Smuzhiyun #define MCFUART_BASE2 0xFC068000 /* Base address of UART3 */ 103*4882a593Smuzhiyun 104*4882a593Smuzhiyun /* 105*4882a593Smuzhiyun * FEC module. 106*4882a593Smuzhiyun */ 107*4882a593Smuzhiyun #define MCFFEC_BASE0 0xFC030000 /* Base address of FEC0 */ 108*4882a593Smuzhiyun #define MCFFEC_SIZE0 0x800 /* Size of FEC0 region */ 109*4882a593Smuzhiyun 110*4882a593Smuzhiyun /* 111*4882a593Smuzhiyun * QSPI module. 112*4882a593Smuzhiyun */ 113*4882a593Smuzhiyun #define MCFQSPI_BASE 0xFC05C000 /* Base address of QSPI */ 114*4882a593Smuzhiyun #define MCFQSPI_SIZE 0x40 /* Size of QSPI region */ 115*4882a593Smuzhiyun 116*4882a593Smuzhiyun #define MCFQSPI_CS0 84 117*4882a593Smuzhiyun #define MCFQSPI_CS1 85 118*4882a593Smuzhiyun #define MCFQSPI_CS2 86 119*4882a593Smuzhiyun 120*4882a593Smuzhiyun /* 121*4882a593Smuzhiyun * Timer module. 122*4882a593Smuzhiyun */ 123*4882a593Smuzhiyun #define MCFTIMER_BASE1 0xFC070000 /* Base address of TIMER1 */ 124*4882a593Smuzhiyun #define MCFTIMER_BASE2 0xFC074000 /* Base address of TIMER2 */ 125*4882a593Smuzhiyun #define MCFTIMER_BASE3 0xFC078000 /* Base address of TIMER3 */ 126*4882a593Smuzhiyun #define MCFTIMER_BASE4 0xFC07C000 /* Base address of TIMER4 */ 127*4882a593Smuzhiyun 128*4882a593Smuzhiyun /********************************************************************* 129*4882a593Smuzhiyun * 130*4882a593Smuzhiyun * Reset Controller Module 131*4882a593Smuzhiyun * 132*4882a593Smuzhiyun *********************************************************************/ 133*4882a593Smuzhiyun 134*4882a593Smuzhiyun #define MCF_RCR 0xFC0A0000 135*4882a593Smuzhiyun #define MCF_RSR 0xFC0A0001 136*4882a593Smuzhiyun 137*4882a593Smuzhiyun #define MCF_RCR_SWRESET 0x80 /* Software reset bit */ 138*4882a593Smuzhiyun #define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */ 139*4882a593Smuzhiyun 140*4882a593Smuzhiyun 141*4882a593Smuzhiyun /* 142*4882a593Smuzhiyun * Power Management 143*4882a593Smuzhiyun */ 144*4882a593Smuzhiyun #define MCFPM_WCR 0xfc040013 145*4882a593Smuzhiyun #define MCFPM_PPMSR0 0xfc04002c 146*4882a593Smuzhiyun #define MCFPM_PPMCR0 0xfc04002d 147*4882a593Smuzhiyun #define MCFPM_PPMSR1 0xfc04002e 148*4882a593Smuzhiyun #define MCFPM_PPMCR1 0xfc04002f 149*4882a593Smuzhiyun #define MCFPM_PPMHR0 0xfc040030 150*4882a593Smuzhiyun #define MCFPM_PPMLR0 0xfc040034 151*4882a593Smuzhiyun #define MCFPM_PPMHR1 0xfc040038 152*4882a593Smuzhiyun #define MCFPM_LPCR 0xec090007 153*4882a593Smuzhiyun 154*4882a593Smuzhiyun /* 155*4882a593Smuzhiyun * The M5329EVB board needs a help getting its devices initialized 156*4882a593Smuzhiyun * at kernel start time if dBUG doesn't set it up (for example 157*4882a593Smuzhiyun * it is not used), so we need to do it manually. 158*4882a593Smuzhiyun */ 159*4882a593Smuzhiyun #ifdef __ASSEMBLER__ 160*4882a593Smuzhiyun .macro m5329EVB_setup 161*4882a593Smuzhiyun movel #0xFC098000, %a7 162*4882a593Smuzhiyun movel #0x0, (%a7) 163*4882a593Smuzhiyun #define CORE_SRAM 0x80000000 164*4882a593Smuzhiyun #define CORE_SRAM_SIZE 0x8000 165*4882a593Smuzhiyun movel #CORE_SRAM, %d0 166*4882a593Smuzhiyun addl #0x221, %d0 167*4882a593Smuzhiyun movec %d0,%RAMBAR1 168*4882a593Smuzhiyun movel #CORE_SRAM, %sp 169*4882a593Smuzhiyun addl #CORE_SRAM_SIZE, %sp 170*4882a593Smuzhiyun jsr sysinit 171*4882a593Smuzhiyun .endm 172*4882a593Smuzhiyun #define PLATFORM_SETUP m5329EVB_setup 173*4882a593Smuzhiyun 174*4882a593Smuzhiyun #endif /* __ASSEMBLER__ */ 175*4882a593Smuzhiyun 176*4882a593Smuzhiyun /********************************************************************* 177*4882a593Smuzhiyun * 178*4882a593Smuzhiyun * Chip Configuration Module (CCM) 179*4882a593Smuzhiyun * 180*4882a593Smuzhiyun *********************************************************************/ 181*4882a593Smuzhiyun 182*4882a593Smuzhiyun /* Register read/write macros */ 183*4882a593Smuzhiyun #define MCF_CCM_CCR 0xFC0A0004 184*4882a593Smuzhiyun #define MCF_CCM_RCON 0xFC0A0008 185*4882a593Smuzhiyun #define MCF_CCM_CIR 0xFC0A000A 186*4882a593Smuzhiyun #define MCF_CCM_MISCCR 0xFC0A0010 187*4882a593Smuzhiyun #define MCF_CCM_CDR 0xFC0A0012 188*4882a593Smuzhiyun #define MCF_CCM_UHCSR 0xFC0A0014 189*4882a593Smuzhiyun #define MCF_CCM_UOCSR 0xFC0A0016 190*4882a593Smuzhiyun 191*4882a593Smuzhiyun /* Bit definitions and macros for MCF_CCM_CCR */ 192*4882a593Smuzhiyun #define MCF_CCM_CCR_RESERVED (0x0001) 193*4882a593Smuzhiyun #define MCF_CCM_CCR_PLL_MODE (0x0003) 194*4882a593Smuzhiyun #define MCF_CCM_CCR_OSC_MODE (0x0005) 195*4882a593Smuzhiyun #define MCF_CCM_CCR_BOOTPS(x) (((x)&0x0003)<<3|0x0001) 196*4882a593Smuzhiyun #define MCF_CCM_CCR_LOAD (0x0021) 197*4882a593Smuzhiyun #define MCF_CCM_CCR_LIMP (0x0041) 198*4882a593Smuzhiyun #define MCF_CCM_CCR_CSC(x) (((x)&0x0003)<<8|0x0001) 199*4882a593Smuzhiyun 200*4882a593Smuzhiyun /* Bit definitions and macros for MCF_CCM_RCON */ 201*4882a593Smuzhiyun #define MCF_CCM_RCON_RESERVED (0x0001) 202*4882a593Smuzhiyun #define MCF_CCM_RCON_PLL_MODE (0x0003) 203*4882a593Smuzhiyun #define MCF_CCM_RCON_OSC_MODE (0x0005) 204*4882a593Smuzhiyun #define MCF_CCM_RCON_BOOTPS(x) (((x)&0x0003)<<3|0x0001) 205*4882a593Smuzhiyun #define MCF_CCM_RCON_LOAD (0x0021) 206*4882a593Smuzhiyun #define MCF_CCM_RCON_LIMP (0x0041) 207*4882a593Smuzhiyun #define MCF_CCM_RCON_CSC(x) (((x)&0x0003)<<8|0x0001) 208*4882a593Smuzhiyun 209*4882a593Smuzhiyun /* Bit definitions and macros for MCF_CCM_CIR */ 210*4882a593Smuzhiyun #define MCF_CCM_CIR_PRN(x) (((x)&0x003F)<<0) 211*4882a593Smuzhiyun #define MCF_CCM_CIR_PIN(x) (((x)&0x03FF)<<6) 212*4882a593Smuzhiyun 213*4882a593Smuzhiyun /* Bit definitions and macros for MCF_CCM_MISCCR */ 214*4882a593Smuzhiyun #define MCF_CCM_MISCCR_USBSRC (0x0001) 215*4882a593Smuzhiyun #define MCF_CCM_MISCCR_USBDIV (0x0002) 216*4882a593Smuzhiyun #define MCF_CCM_MISCCR_SSI_SRC (0x0010) 217*4882a593Smuzhiyun #define MCF_CCM_MISCCR_TIM_DMA (0x0020) 218*4882a593Smuzhiyun #define MCF_CCM_MISCCR_SSI_PUS (0x0040) 219*4882a593Smuzhiyun #define MCF_CCM_MISCCR_SSI_PUE (0x0080) 220*4882a593Smuzhiyun #define MCF_CCM_MISCCR_LCD_CHEN (0x0100) 221*4882a593Smuzhiyun #define MCF_CCM_MISCCR_LIMP (0x1000) 222*4882a593Smuzhiyun #define MCF_CCM_MISCCR_PLL_LOCK (0x2000) 223*4882a593Smuzhiyun 224*4882a593Smuzhiyun /* Bit definitions and macros for MCF_CCM_CDR */ 225*4882a593Smuzhiyun #define MCF_CCM_CDR_SSIDIV(x) (((x)&0x000F)<<0) 226*4882a593Smuzhiyun #define MCF_CCM_CDR_LPDIV(x) (((x)&0x000F)<<8) 227*4882a593Smuzhiyun 228*4882a593Smuzhiyun /* Bit definitions and macros for MCF_CCM_UHCSR */ 229*4882a593Smuzhiyun #define MCF_CCM_UHCSR_XPDE (0x0001) 230*4882a593Smuzhiyun #define MCF_CCM_UHCSR_UHMIE (0x0002) 231*4882a593Smuzhiyun #define MCF_CCM_UHCSR_WKUP (0x0004) 232*4882a593Smuzhiyun #define MCF_CCM_UHCSR_PORTIND(x) (((x)&0x0003)<<14) 233*4882a593Smuzhiyun 234*4882a593Smuzhiyun /* Bit definitions and macros for MCF_CCM_UOCSR */ 235*4882a593Smuzhiyun #define MCF_CCM_UOCSR_XPDE (0x0001) 236*4882a593Smuzhiyun #define MCF_CCM_UOCSR_UOMIE (0x0002) 237*4882a593Smuzhiyun #define MCF_CCM_UOCSR_WKUP (0x0004) 238*4882a593Smuzhiyun #define MCF_CCM_UOCSR_PWRFLT (0x0008) 239*4882a593Smuzhiyun #define MCF_CCM_UOCSR_SEND (0x0010) 240*4882a593Smuzhiyun #define MCF_CCM_UOCSR_VVLD (0x0020) 241*4882a593Smuzhiyun #define MCF_CCM_UOCSR_BVLD (0x0040) 242*4882a593Smuzhiyun #define MCF_CCM_UOCSR_AVLD (0x0080) 243*4882a593Smuzhiyun #define MCF_CCM_UOCSR_DPPU (0x0100) 244*4882a593Smuzhiyun #define MCF_CCM_UOCSR_DCR_VBUS (0x0200) 245*4882a593Smuzhiyun #define MCF_CCM_UOCSR_CRG_VBUS (0x0400) 246*4882a593Smuzhiyun #define MCF_CCM_UOCSR_DRV_VBUS (0x0800) 247*4882a593Smuzhiyun #define MCF_CCM_UOCSR_DMPD (0x1000) 248*4882a593Smuzhiyun #define MCF_CCM_UOCSR_DPPD (0x2000) 249*4882a593Smuzhiyun #define MCF_CCM_UOCSR_PORTIND(x) (((x)&0x0003)<<14) 250*4882a593Smuzhiyun 251*4882a593Smuzhiyun /********************************************************************* 252*4882a593Smuzhiyun * 253*4882a593Smuzhiyun * FlexBus Chip Selects (FBCS) 254*4882a593Smuzhiyun * 255*4882a593Smuzhiyun *********************************************************************/ 256*4882a593Smuzhiyun 257*4882a593Smuzhiyun /* Register read/write macros */ 258*4882a593Smuzhiyun #define MCF_FBCS0_CSAR 0xFC008000 259*4882a593Smuzhiyun #define MCF_FBCS0_CSMR 0xFC008004 260*4882a593Smuzhiyun #define MCF_FBCS0_CSCR 0xFC008008 261*4882a593Smuzhiyun #define MCF_FBCS1_CSAR 0xFC00800C 262*4882a593Smuzhiyun #define MCF_FBCS1_CSMR 0xFC008010 263*4882a593Smuzhiyun #define MCF_FBCS1_CSCR 0xFC008014 264*4882a593Smuzhiyun #define MCF_FBCS2_CSAR 0xFC008018 265*4882a593Smuzhiyun #define MCF_FBCS2_CSMR 0xFC00801C 266*4882a593Smuzhiyun #define MCF_FBCS2_CSCR 0xFC008020 267*4882a593Smuzhiyun #define MCF_FBCS3_CSAR 0xFC008024 268*4882a593Smuzhiyun #define MCF_FBCS3_CSMR 0xFC008028 269*4882a593Smuzhiyun #define MCF_FBCS3_CSCR 0xFC00802C 270*4882a593Smuzhiyun #define MCF_FBCS4_CSAR 0xFC008030 271*4882a593Smuzhiyun #define MCF_FBCS4_CSMR 0xFC008034 272*4882a593Smuzhiyun #define MCF_FBCS4_CSCR 0xFC008038 273*4882a593Smuzhiyun #define MCF_FBCS5_CSAR 0xFC00803C 274*4882a593Smuzhiyun #define MCF_FBCS5_CSMR 0xFC008040 275*4882a593Smuzhiyun #define MCF_FBCS5_CSCR 0xFC008044 276*4882a593Smuzhiyun 277*4882a593Smuzhiyun /* Bit definitions and macros for MCF_FBCS_CSAR */ 278*4882a593Smuzhiyun #define MCF_FBCS_CSAR_BA(x) ((x)&0xFFFF0000) 279*4882a593Smuzhiyun 280*4882a593Smuzhiyun /* Bit definitions and macros for MCF_FBCS_CSMR */ 281*4882a593Smuzhiyun #define MCF_FBCS_CSMR_V (0x00000001) 282*4882a593Smuzhiyun #define MCF_FBCS_CSMR_WP (0x00000100) 283*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM(x) (((x)&0x0000FFFF)<<16) 284*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_4G (0xFFFF0000) 285*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_2G (0x7FFF0000) 286*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_1G (0x3FFF0000) 287*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_1024M (0x3FFF0000) 288*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_512M (0x1FFF0000) 289*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_256M (0x0FFF0000) 290*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_128M (0x07FF0000) 291*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_64M (0x03FF0000) 292*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_32M (0x01FF0000) 293*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_16M (0x00FF0000) 294*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_8M (0x007F0000) 295*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_4M (0x003F0000) 296*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_2M (0x001F0000) 297*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_1M (0x000F0000) 298*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_1024K (0x000F0000) 299*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_512K (0x00070000) 300*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_256K (0x00030000) 301*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_128K (0x00010000) 302*4882a593Smuzhiyun #define MCF_FBCS_CSMR_BAM_64K (0x00000000) 303*4882a593Smuzhiyun 304*4882a593Smuzhiyun /* Bit definitions and macros for MCF_FBCS_CSCR */ 305*4882a593Smuzhiyun #define MCF_FBCS_CSCR_BSTW (0x00000008) 306*4882a593Smuzhiyun #define MCF_FBCS_CSCR_BSTR (0x00000010) 307*4882a593Smuzhiyun #define MCF_FBCS_CSCR_BEM (0x00000020) 308*4882a593Smuzhiyun #define MCF_FBCS_CSCR_PS(x) (((x)&0x00000003)<<6) 309*4882a593Smuzhiyun #define MCF_FBCS_CSCR_AA (0x00000100) 310*4882a593Smuzhiyun #define MCF_FBCS_CSCR_SBM (0x00000200) 311*4882a593Smuzhiyun #define MCF_FBCS_CSCR_WS(x) (((x)&0x0000003F)<<10) 312*4882a593Smuzhiyun #define MCF_FBCS_CSCR_WRAH(x) (((x)&0x00000003)<<16) 313*4882a593Smuzhiyun #define MCF_FBCS_CSCR_RDAH(x) (((x)&0x00000003)<<18) 314*4882a593Smuzhiyun #define MCF_FBCS_CSCR_ASET(x) (((x)&0x00000003)<<20) 315*4882a593Smuzhiyun #define MCF_FBCS_CSCR_SWSEN (0x00800000) 316*4882a593Smuzhiyun #define MCF_FBCS_CSCR_SWS(x) (((x)&0x0000003F)<<26) 317*4882a593Smuzhiyun #define MCF_FBCS_CSCR_PS_8 (0x0040) 318*4882a593Smuzhiyun #define MCF_FBCS_CSCR_PS_16 (0x0080) 319*4882a593Smuzhiyun #define MCF_FBCS_CSCR_PS_32 (0x0000) 320*4882a593Smuzhiyun 321*4882a593Smuzhiyun /********************************************************************* 322*4882a593Smuzhiyun * 323*4882a593Smuzhiyun * General Purpose I/O (GPIO) 324*4882a593Smuzhiyun * 325*4882a593Smuzhiyun *********************************************************************/ 326*4882a593Smuzhiyun 327*4882a593Smuzhiyun /* Register read/write macros */ 328*4882a593Smuzhiyun #define MCFGPIO_PODR_FECH (0xFC0A4000) 329*4882a593Smuzhiyun #define MCFGPIO_PODR_FECL (0xFC0A4001) 330*4882a593Smuzhiyun #define MCFGPIO_PODR_SSI (0xFC0A4002) 331*4882a593Smuzhiyun #define MCFGPIO_PODR_BUSCTL (0xFC0A4003) 332*4882a593Smuzhiyun #define MCFGPIO_PODR_BE (0xFC0A4004) 333*4882a593Smuzhiyun #define MCFGPIO_PODR_CS (0xFC0A4005) 334*4882a593Smuzhiyun #define MCFGPIO_PODR_PWM (0xFC0A4006) 335*4882a593Smuzhiyun #define MCFGPIO_PODR_FECI2C (0xFC0A4007) 336*4882a593Smuzhiyun #define MCFGPIO_PODR_UART (0xFC0A4009) 337*4882a593Smuzhiyun #define MCFGPIO_PODR_QSPI (0xFC0A400A) 338*4882a593Smuzhiyun #define MCFGPIO_PODR_TIMER (0xFC0A400B) 339*4882a593Smuzhiyun #define MCFGPIO_PODR_LCDDATAH (0xFC0A400D) 340*4882a593Smuzhiyun #define MCFGPIO_PODR_LCDDATAM (0xFC0A400E) 341*4882a593Smuzhiyun #define MCFGPIO_PODR_LCDDATAL (0xFC0A400F) 342*4882a593Smuzhiyun #define MCFGPIO_PODR_LCDCTLH (0xFC0A4010) 343*4882a593Smuzhiyun #define MCFGPIO_PODR_LCDCTLL (0xFC0A4011) 344*4882a593Smuzhiyun #define MCFGPIO_PDDR_FECH (0xFC0A4014) 345*4882a593Smuzhiyun #define MCFGPIO_PDDR_FECL (0xFC0A4015) 346*4882a593Smuzhiyun #define MCFGPIO_PDDR_SSI (0xFC0A4016) 347*4882a593Smuzhiyun #define MCFGPIO_PDDR_BUSCTL (0xFC0A4017) 348*4882a593Smuzhiyun #define MCFGPIO_PDDR_BE (0xFC0A4018) 349*4882a593Smuzhiyun #define MCFGPIO_PDDR_CS (0xFC0A4019) 350*4882a593Smuzhiyun #define MCFGPIO_PDDR_PWM (0xFC0A401A) 351*4882a593Smuzhiyun #define MCFGPIO_PDDR_FECI2C (0xFC0A401B) 352*4882a593Smuzhiyun #define MCFGPIO_PDDR_UART (0xFC0A401C) 353*4882a593Smuzhiyun #define MCFGPIO_PDDR_QSPI (0xFC0A401E) 354*4882a593Smuzhiyun #define MCFGPIO_PDDR_TIMER (0xFC0A401F) 355*4882a593Smuzhiyun #define MCFGPIO_PDDR_LCDDATAH (0xFC0A4021) 356*4882a593Smuzhiyun #define MCFGPIO_PDDR_LCDDATAM (0xFC0A4022) 357*4882a593Smuzhiyun #define MCFGPIO_PDDR_LCDDATAL (0xFC0A4023) 358*4882a593Smuzhiyun #define MCFGPIO_PDDR_LCDCTLH (0xFC0A4024) 359*4882a593Smuzhiyun #define MCFGPIO_PDDR_LCDCTLL (0xFC0A4025) 360*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_FECH (0xFC0A4028) 361*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_FECL (0xFC0A4029) 362*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_SSI (0xFC0A402A) 363*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_BUSCTL (0xFC0A402B) 364*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_BE (0xFC0A402C) 365*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_CS (0xFC0A402D) 366*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_PWM (0xFC0A402E) 367*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_FECI2C (0xFC0A402F) 368*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_UART (0xFC0A4031) 369*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_QSPI (0xFC0A4032) 370*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_TIMER (0xFC0A4033) 371*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_LCDDATAH (0xFC0A4035) 372*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_LCDDATAM (0xFC0A4036) 373*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_LCDDATAL (0xFC0A4037) 374*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_LCDCTLH (0xFC0A4038) 375*4882a593Smuzhiyun #define MCFGPIO_PPDSDR_LCDCTLL (0xFC0A4039) 376*4882a593Smuzhiyun #define MCFGPIO_PCLRR_FECH (0xFC0A403C) 377*4882a593Smuzhiyun #define MCFGPIO_PCLRR_FECL (0xFC0A403D) 378*4882a593Smuzhiyun #define MCFGPIO_PCLRR_SSI (0xFC0A403E) 379*4882a593Smuzhiyun #define MCFGPIO_PCLRR_BUSCTL (0xFC0A403F) 380*4882a593Smuzhiyun #define MCFGPIO_PCLRR_BE (0xFC0A4040) 381*4882a593Smuzhiyun #define MCFGPIO_PCLRR_CS (0xFC0A4041) 382*4882a593Smuzhiyun #define MCFGPIO_PCLRR_PWM (0xFC0A4042) 383*4882a593Smuzhiyun #define MCFGPIO_PCLRR_FECI2C (0xFC0A4043) 384*4882a593Smuzhiyun #define MCFGPIO_PCLRR_UART (0xFC0A4045) 385*4882a593Smuzhiyun #define MCFGPIO_PCLRR_QSPI (0xFC0A4046) 386*4882a593Smuzhiyun #define MCFGPIO_PCLRR_TIMER (0xFC0A4047) 387*4882a593Smuzhiyun #define MCFGPIO_PCLRR_LCDDATAH (0xFC0A4049) 388*4882a593Smuzhiyun #define MCFGPIO_PCLRR_LCDDATAM (0xFC0A404A) 389*4882a593Smuzhiyun #define MCFGPIO_PCLRR_LCDDATAL (0xFC0A404B) 390*4882a593Smuzhiyun #define MCFGPIO_PCLRR_LCDCTLH (0xFC0A404C) 391*4882a593Smuzhiyun #define MCFGPIO_PCLRR_LCDCTLL (0xFC0A404D) 392*4882a593Smuzhiyun #define MCFGPIO_PAR_FEC (0xFC0A4050) 393*4882a593Smuzhiyun #define MCFGPIO_PAR_PWM (0xFC0A4051) 394*4882a593Smuzhiyun #define MCFGPIO_PAR_BUSCTL (0xFC0A4052) 395*4882a593Smuzhiyun #define MCFGPIO_PAR_FECI2C (0xFC0A4053) 396*4882a593Smuzhiyun #define MCFGPIO_PAR_BE (0xFC0A4054) 397*4882a593Smuzhiyun #define MCFGPIO_PAR_CS (0xFC0A4055) 398*4882a593Smuzhiyun #define MCFGPIO_PAR_SSI (0xFC0A4056) 399*4882a593Smuzhiyun #define MCFGPIO_PAR_UART (0xFC0A4058) 400*4882a593Smuzhiyun #define MCFGPIO_PAR_QSPI (0xFC0A405A) 401*4882a593Smuzhiyun #define MCFGPIO_PAR_TIMER (0xFC0A405C) 402*4882a593Smuzhiyun #define MCFGPIO_PAR_LCDDATA (0xFC0A405D) 403*4882a593Smuzhiyun #define MCFGPIO_PAR_LCDCTL (0xFC0A405E) 404*4882a593Smuzhiyun #define MCFGPIO_PAR_IRQ (0xFC0A4060) 405*4882a593Smuzhiyun #define MCFGPIO_MSCR_FLEXBUS (0xFC0A4064) 406*4882a593Smuzhiyun #define MCFGPIO_MSCR_SDRAM (0xFC0A4065) 407*4882a593Smuzhiyun #define MCFGPIO_DSCR_I2C (0xFC0A4068) 408*4882a593Smuzhiyun #define MCFGPIO_DSCR_PWM (0xFC0A4069) 409*4882a593Smuzhiyun #define MCFGPIO_DSCR_FEC (0xFC0A406A) 410*4882a593Smuzhiyun #define MCFGPIO_DSCR_UART (0xFC0A406B) 411*4882a593Smuzhiyun #define MCFGPIO_DSCR_QSPI (0xFC0A406C) 412*4882a593Smuzhiyun #define MCFGPIO_DSCR_TIMER (0xFC0A406D) 413*4882a593Smuzhiyun #define MCFGPIO_DSCR_SSI (0xFC0A406E) 414*4882a593Smuzhiyun #define MCFGPIO_DSCR_LCD (0xFC0A406F) 415*4882a593Smuzhiyun #define MCFGPIO_DSCR_DEBUG (0xFC0A4070) 416*4882a593Smuzhiyun #define MCFGPIO_DSCR_CLKRST (0xFC0A4071) 417*4882a593Smuzhiyun #define MCFGPIO_DSCR_IRQ (0xFC0A4072) 418*4882a593Smuzhiyun 419*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_FECH */ 420*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECH_PODR_FECH0 (0x01) 421*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECH_PODR_FECH1 (0x02) 422*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECH_PODR_FECH2 (0x04) 423*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECH_PODR_FECH3 (0x08) 424*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECH_PODR_FECH4 (0x10) 425*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECH_PODR_FECH5 (0x20) 426*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECH_PODR_FECH6 (0x40) 427*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECH_PODR_FECH7 (0x80) 428*4882a593Smuzhiyun 429*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_FECL */ 430*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECL_PODR_FECL0 (0x01) 431*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECL_PODR_FECL1 (0x02) 432*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECL_PODR_FECL2 (0x04) 433*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECL_PODR_FECL3 (0x08) 434*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECL_PODR_FECL4 (0x10) 435*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECL_PODR_FECL5 (0x20) 436*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECL_PODR_FECL6 (0x40) 437*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECL_PODR_FECL7 (0x80) 438*4882a593Smuzhiyun 439*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_SSI */ 440*4882a593Smuzhiyun #define MCF_GPIO_PODR_SSI_PODR_SSI0 (0x01) 441*4882a593Smuzhiyun #define MCF_GPIO_PODR_SSI_PODR_SSI1 (0x02) 442*4882a593Smuzhiyun #define MCF_GPIO_PODR_SSI_PODR_SSI2 (0x04) 443*4882a593Smuzhiyun #define MCF_GPIO_PODR_SSI_PODR_SSI3 (0x08) 444*4882a593Smuzhiyun #define MCF_GPIO_PODR_SSI_PODR_SSI4 (0x10) 445*4882a593Smuzhiyun 446*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_BUSCTL */ 447*4882a593Smuzhiyun #define MCF_GPIO_PODR_BUSCTL_POSDR_BUSCTL0 (0x01) 448*4882a593Smuzhiyun #define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL1 (0x02) 449*4882a593Smuzhiyun #define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL2 (0x04) 450*4882a593Smuzhiyun #define MCF_GPIO_PODR_BUSCTL_PODR_BUSCTL3 (0x08) 451*4882a593Smuzhiyun 452*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_BE */ 453*4882a593Smuzhiyun #define MCF_GPIO_PODR_BE_PODR_BE0 (0x01) 454*4882a593Smuzhiyun #define MCF_GPIO_PODR_BE_PODR_BE1 (0x02) 455*4882a593Smuzhiyun #define MCF_GPIO_PODR_BE_PODR_BE2 (0x04) 456*4882a593Smuzhiyun #define MCF_GPIO_PODR_BE_PODR_BE3 (0x08) 457*4882a593Smuzhiyun 458*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_CS */ 459*4882a593Smuzhiyun #define MCF_GPIO_PODR_CS_PODR_CS1 (0x02) 460*4882a593Smuzhiyun #define MCF_GPIO_PODR_CS_PODR_CS2 (0x04) 461*4882a593Smuzhiyun #define MCF_GPIO_PODR_CS_PODR_CS3 (0x08) 462*4882a593Smuzhiyun #define MCF_GPIO_PODR_CS_PODR_CS4 (0x10) 463*4882a593Smuzhiyun #define MCF_GPIO_PODR_CS_PODR_CS5 (0x20) 464*4882a593Smuzhiyun 465*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_PWM */ 466*4882a593Smuzhiyun #define MCF_GPIO_PODR_PWM_PODR_PWM2 (0x04) 467*4882a593Smuzhiyun #define MCF_GPIO_PODR_PWM_PODR_PWM3 (0x08) 468*4882a593Smuzhiyun #define MCF_GPIO_PODR_PWM_PODR_PWM4 (0x10) 469*4882a593Smuzhiyun #define MCF_GPIO_PODR_PWM_PODR_PWM5 (0x20) 470*4882a593Smuzhiyun 471*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_FECI2C */ 472*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECI2C_PODR_FECI2C0 (0x01) 473*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECI2C_PODR_FECI2C1 (0x02) 474*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECI2C_PODR_FECI2C2 (0x04) 475*4882a593Smuzhiyun #define MCF_GPIO_PODR_FECI2C_PODR_FECI2C3 (0x08) 476*4882a593Smuzhiyun 477*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_UART */ 478*4882a593Smuzhiyun #define MCF_GPIO_PODR_UART_PODR_UART0 (0x01) 479*4882a593Smuzhiyun #define MCF_GPIO_PODR_UART_PODR_UART1 (0x02) 480*4882a593Smuzhiyun #define MCF_GPIO_PODR_UART_PODR_UART2 (0x04) 481*4882a593Smuzhiyun #define MCF_GPIO_PODR_UART_PODR_UART3 (0x08) 482*4882a593Smuzhiyun #define MCF_GPIO_PODR_UART_PODR_UART4 (0x10) 483*4882a593Smuzhiyun #define MCF_GPIO_PODR_UART_PODR_UART5 (0x20) 484*4882a593Smuzhiyun #define MCF_GPIO_PODR_UART_PODR_UART6 (0x40) 485*4882a593Smuzhiyun #define MCF_GPIO_PODR_UART_PODR_UART7 (0x80) 486*4882a593Smuzhiyun 487*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_QSPI */ 488*4882a593Smuzhiyun #define MCF_GPIO_PODR_QSPI_PODR_QSPI0 (0x01) 489*4882a593Smuzhiyun #define MCF_GPIO_PODR_QSPI_PODR_QSPI1 (0x02) 490*4882a593Smuzhiyun #define MCF_GPIO_PODR_QSPI_PODR_QSPI2 (0x04) 491*4882a593Smuzhiyun #define MCF_GPIO_PODR_QSPI_PODR_QSPI3 (0x08) 492*4882a593Smuzhiyun #define MCF_GPIO_PODR_QSPI_PODR_QSPI4 (0x10) 493*4882a593Smuzhiyun #define MCF_GPIO_PODR_QSPI_PODR_QSPI5 (0x20) 494*4882a593Smuzhiyun 495*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_TIMER */ 496*4882a593Smuzhiyun #define MCF_GPIO_PODR_TIMER_PODR_TIMER0 (0x01) 497*4882a593Smuzhiyun #define MCF_GPIO_PODR_TIMER_PODR_TIMER1 (0x02) 498*4882a593Smuzhiyun #define MCF_GPIO_PODR_TIMER_PODR_TIMER2 (0x04) 499*4882a593Smuzhiyun #define MCF_GPIO_PODR_TIMER_PODR_TIMER3 (0x08) 500*4882a593Smuzhiyun 501*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAH */ 502*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH0 (0x01) 503*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAH_PODR_LCDDATAH1 (0x02) 504*4882a593Smuzhiyun 505*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAM */ 506*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM0 (0x01) 507*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM1 (0x02) 508*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM2 (0x04) 509*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM3 (0x08) 510*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM4 (0x10) 511*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM5 (0x20) 512*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM6 (0x40) 513*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAM_PODR_LCDDATAM7 (0x80) 514*4882a593Smuzhiyun 515*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_LCDDATAL */ 516*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL0 (0x01) 517*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL1 (0x02) 518*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL2 (0x04) 519*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL3 (0x08) 520*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL4 (0x10) 521*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL5 (0x20) 522*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL6 (0x40) 523*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDDATAL_PODR_LCDDATAL7 (0x80) 524*4882a593Smuzhiyun 525*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLH */ 526*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLH_PODR_LCDCTLH0 (0x01) 527*4882a593Smuzhiyun 528*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PODR_LCDCTLL */ 529*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL0 (0x01) 530*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL1 (0x02) 531*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL2 (0x04) 532*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL3 (0x08) 533*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL4 (0x10) 534*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL5 (0x20) 535*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL6 (0x40) 536*4882a593Smuzhiyun #define MCF_GPIO_PODR_LCDCTLL_PODR_LCDCTLL7 (0x80) 537*4882a593Smuzhiyun 538*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_FECH */ 539*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECH_PDDR_FECH0 (0x01) 540*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECH_PDDR_FECH1 (0x02) 541*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECH_PDDR_FECH2 (0x04) 542*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECH_PDDR_FECH3 (0x08) 543*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECH_PDDR_FECH4 (0x10) 544*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECH_PDDR_FECH5 (0x20) 545*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECH_PDDR_FECH6 (0x40) 546*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECH_PDDR_FECH7 (0x80) 547*4882a593Smuzhiyun 548*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_FECL */ 549*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECL_PDDR_FECL0 (0x01) 550*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECL_PDDR_FECL1 (0x02) 551*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECL_PDDR_FECL2 (0x04) 552*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECL_PDDR_FECL3 (0x08) 553*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECL_PDDR_FECL4 (0x10) 554*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECL_PDDR_FECL5 (0x20) 555*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECL_PDDR_FECL6 (0x40) 556*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECL_PDDR_FECL7 (0x80) 557*4882a593Smuzhiyun 558*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_SSI */ 559*4882a593Smuzhiyun #define MCF_GPIO_PDDR_SSI_PDDR_SSI0 (0x01) 560*4882a593Smuzhiyun #define MCF_GPIO_PDDR_SSI_PDDR_SSI1 (0x02) 561*4882a593Smuzhiyun #define MCF_GPIO_PDDR_SSI_PDDR_SSI2 (0x04) 562*4882a593Smuzhiyun #define MCF_GPIO_PDDR_SSI_PDDR_SSI3 (0x08) 563*4882a593Smuzhiyun #define MCF_GPIO_PDDR_SSI_PDDR_SSI4 (0x10) 564*4882a593Smuzhiyun 565*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_BUSCTL */ 566*4882a593Smuzhiyun #define MCF_GPIO_PDDR_BUSCTL_POSDR_BUSCTL0 (0x01) 567*4882a593Smuzhiyun #define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL1 (0x02) 568*4882a593Smuzhiyun #define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL2 (0x04) 569*4882a593Smuzhiyun #define MCF_GPIO_PDDR_BUSCTL_PDDR_BUSCTL3 (0x08) 570*4882a593Smuzhiyun 571*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_BE */ 572*4882a593Smuzhiyun #define MCF_GPIO_PDDR_BE_PDDR_BE0 (0x01) 573*4882a593Smuzhiyun #define MCF_GPIO_PDDR_BE_PDDR_BE1 (0x02) 574*4882a593Smuzhiyun #define MCF_GPIO_PDDR_BE_PDDR_BE2 (0x04) 575*4882a593Smuzhiyun #define MCF_GPIO_PDDR_BE_PDDR_BE3 (0x08) 576*4882a593Smuzhiyun 577*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_CS */ 578*4882a593Smuzhiyun #define MCF_GPIO_PDDR_CS_PDDR_CS1 (0x02) 579*4882a593Smuzhiyun #define MCF_GPIO_PDDR_CS_PDDR_CS2 (0x04) 580*4882a593Smuzhiyun #define MCF_GPIO_PDDR_CS_PDDR_CS3 (0x08) 581*4882a593Smuzhiyun #define MCF_GPIO_PDDR_CS_PDDR_CS4 (0x10) 582*4882a593Smuzhiyun #define MCF_GPIO_PDDR_CS_PDDR_CS5 (0x20) 583*4882a593Smuzhiyun 584*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_PWM */ 585*4882a593Smuzhiyun #define MCF_GPIO_PDDR_PWM_PDDR_PWM2 (0x04) 586*4882a593Smuzhiyun #define MCF_GPIO_PDDR_PWM_PDDR_PWM3 (0x08) 587*4882a593Smuzhiyun #define MCF_GPIO_PDDR_PWM_PDDR_PWM4 (0x10) 588*4882a593Smuzhiyun #define MCF_GPIO_PDDR_PWM_PDDR_PWM5 (0x20) 589*4882a593Smuzhiyun 590*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_FECI2C */ 591*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C0 (0x01) 592*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C1 (0x02) 593*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C2 (0x04) 594*4882a593Smuzhiyun #define MCF_GPIO_PDDR_FECI2C_PDDR_FECI2C3 (0x08) 595*4882a593Smuzhiyun 596*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_UART */ 597*4882a593Smuzhiyun #define MCF_GPIO_PDDR_UART_PDDR_UART0 (0x01) 598*4882a593Smuzhiyun #define MCF_GPIO_PDDR_UART_PDDR_UART1 (0x02) 599*4882a593Smuzhiyun #define MCF_GPIO_PDDR_UART_PDDR_UART2 (0x04) 600*4882a593Smuzhiyun #define MCF_GPIO_PDDR_UART_PDDR_UART3 (0x08) 601*4882a593Smuzhiyun #define MCF_GPIO_PDDR_UART_PDDR_UART4 (0x10) 602*4882a593Smuzhiyun #define MCF_GPIO_PDDR_UART_PDDR_UART5 (0x20) 603*4882a593Smuzhiyun #define MCF_GPIO_PDDR_UART_PDDR_UART6 (0x40) 604*4882a593Smuzhiyun #define MCF_GPIO_PDDR_UART_PDDR_UART7 (0x80) 605*4882a593Smuzhiyun 606*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_QSPI */ 607*4882a593Smuzhiyun #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI0 (0x01) 608*4882a593Smuzhiyun #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI1 (0x02) 609*4882a593Smuzhiyun #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI2 (0x04) 610*4882a593Smuzhiyun #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI3 (0x08) 611*4882a593Smuzhiyun #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI4 (0x10) 612*4882a593Smuzhiyun #define MCF_GPIO_PDDR_QSPI_PDDR_QSPI5 (0x20) 613*4882a593Smuzhiyun 614*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_TIMER */ 615*4882a593Smuzhiyun #define MCF_GPIO_PDDR_TIMER_PDDR_TIMER0 (0x01) 616*4882a593Smuzhiyun #define MCF_GPIO_PDDR_TIMER_PDDR_TIMER1 (0x02) 617*4882a593Smuzhiyun #define MCF_GPIO_PDDR_TIMER_PDDR_TIMER2 (0x04) 618*4882a593Smuzhiyun #define MCF_GPIO_PDDR_TIMER_PDDR_TIMER3 (0x08) 619*4882a593Smuzhiyun 620*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAH */ 621*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH0 (0x01) 622*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAH_PDDR_LCDDATAH1 (0x02) 623*4882a593Smuzhiyun 624*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAM */ 625*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM0 (0x01) 626*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM1 (0x02) 627*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM2 (0x04) 628*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM3 (0x08) 629*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM4 (0x10) 630*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM5 (0x20) 631*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM6 (0x40) 632*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAM_PDDR_LCDDATAM7 (0x80) 633*4882a593Smuzhiyun 634*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_LCDDATAL */ 635*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL0 (0x01) 636*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL1 (0x02) 637*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL2 (0x04) 638*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL3 (0x08) 639*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL4 (0x10) 640*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL5 (0x20) 641*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL6 (0x40) 642*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDDATAL_PDDR_LCDDATAL7 (0x80) 643*4882a593Smuzhiyun 644*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLH */ 645*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLH_PDDR_LCDCTLH0 (0x01) 646*4882a593Smuzhiyun 647*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PDDR_LCDCTLL */ 648*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL0 (0x01) 649*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL1 (0x02) 650*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL2 (0x04) 651*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL3 (0x08) 652*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL4 (0x10) 653*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL5 (0x20) 654*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL6 (0x40) 655*4882a593Smuzhiyun #define MCF_GPIO_PDDR_LCDCTLL_PDDR_LCDCTLL7 (0x80) 656*4882a593Smuzhiyun 657*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_FECH */ 658*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH0 (0x01) 659*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH1 (0x02) 660*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH2 (0x04) 661*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH3 (0x08) 662*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH4 (0x10) 663*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH5 (0x20) 664*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH6 (0x40) 665*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECH_PPDSDR_FECH7 (0x80) 666*4882a593Smuzhiyun 667*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_FECL */ 668*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL0 (0x01) 669*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL1 (0x02) 670*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL2 (0x04) 671*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL3 (0x08) 672*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL4 (0x10) 673*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL5 (0x20) 674*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL6 (0x40) 675*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECL_PPDSDR_FECL7 (0x80) 676*4882a593Smuzhiyun 677*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_SSI */ 678*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI0 (0x01) 679*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI1 (0x02) 680*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI2 (0x04) 681*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI3 (0x08) 682*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_SSI_PPDSDR_SSI4 (0x10) 683*4882a593Smuzhiyun 684*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_BUSCTL */ 685*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_BUSCTL_POSDR_BUSCTL0 (0x01) 686*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL1 (0x02) 687*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL2 (0x04) 688*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_BUSCTL_PPDSDR_BUSCTL3 (0x08) 689*4882a593Smuzhiyun 690*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_BE */ 691*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_BE_PPDSDR_BE0 (0x01) 692*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_BE_PPDSDR_BE1 (0x02) 693*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_BE_PPDSDR_BE2 (0x04) 694*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_BE_PPDSDR_BE3 (0x08) 695*4882a593Smuzhiyun 696*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_CS */ 697*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS1 (0x02) 698*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS2 (0x04) 699*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS3 (0x08) 700*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS4 (0x10) 701*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_CS_PPDSDR_CS5 (0x20) 702*4882a593Smuzhiyun 703*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_PWM */ 704*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM2 (0x04) 705*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM3 (0x08) 706*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM4 (0x10) 707*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_PWM_PPDSDR_PWM5 (0x20) 708*4882a593Smuzhiyun 709*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_FECI2C */ 710*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C0 (0x01) 711*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C1 (0x02) 712*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C2 (0x04) 713*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_FECI2C_PPDSDR_FECI2C3 (0x08) 714*4882a593Smuzhiyun 715*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_UART */ 716*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART0 (0x01) 717*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART1 (0x02) 718*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART2 (0x04) 719*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART3 (0x08) 720*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART4 (0x10) 721*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART5 (0x20) 722*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART6 (0x40) 723*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_UART_PPDSDR_UART7 (0x80) 724*4882a593Smuzhiyun 725*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_QSPI */ 726*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI0 (0x01) 727*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI1 (0x02) 728*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI2 (0x04) 729*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI3 (0x08) 730*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI4 (0x10) 731*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_QSPI_PPDSDR_QSPI5 (0x20) 732*4882a593Smuzhiyun 733*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_TIMER */ 734*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER0 (0x01) 735*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER1 (0x02) 736*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER2 (0x04) 737*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_TIMER_PPDSDR_TIMER3 (0x08) 738*4882a593Smuzhiyun 739*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAH */ 740*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH0 (0x01) 741*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAH_PPDSDR_LCDDATAH1 (0x02) 742*4882a593Smuzhiyun 743*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAM */ 744*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM0 (0x01) 745*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM1 (0x02) 746*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM2 (0x04) 747*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM3 (0x08) 748*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM4 (0x10) 749*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM5 (0x20) 750*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM6 (0x40) 751*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAM_PPDSDR_LCDDATAM7 (0x80) 752*4882a593Smuzhiyun 753*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDDATAL */ 754*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL0 (0x01) 755*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL1 (0x02) 756*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL2 (0x04) 757*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL3 (0x08) 758*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL4 (0x10) 759*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL5 (0x20) 760*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL6 (0x40) 761*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDDATAL_PPDSDR_LCDDATAL7 (0x80) 762*4882a593Smuzhiyun 763*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLH */ 764*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLH_PPDSDR_LCDCTLH0 (0x01) 765*4882a593Smuzhiyun 766*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PPDSDR_LCDCTLL */ 767*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL0 (0x01) 768*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL1 (0x02) 769*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL2 (0x04) 770*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL3 (0x08) 771*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL4 (0x10) 772*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL5 (0x20) 773*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL6 (0x40) 774*4882a593Smuzhiyun #define MCF_GPIO_PPDSDR_LCDCTLL_PPDSDR_LCDCTLL7 (0x80) 775*4882a593Smuzhiyun 776*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_FECH */ 777*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH0 (0x01) 778*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH1 (0x02) 779*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH2 (0x04) 780*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH3 (0x08) 781*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH4 (0x10) 782*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH5 (0x20) 783*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH6 (0x40) 784*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECH_PCLRR_FECH7 (0x80) 785*4882a593Smuzhiyun 786*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_FECL */ 787*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL0 (0x01) 788*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL1 (0x02) 789*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL2 (0x04) 790*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL3 (0x08) 791*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL4 (0x10) 792*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL5 (0x20) 793*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL6 (0x40) 794*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECL_PCLRR_FECL7 (0x80) 795*4882a593Smuzhiyun 796*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_SSI */ 797*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI0 (0x01) 798*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI1 (0x02) 799*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI2 (0x04) 800*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI3 (0x08) 801*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_SSI_PCLRR_SSI4 (0x10) 802*4882a593Smuzhiyun 803*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_BUSCTL */ 804*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_BUSCTL_POSDR_BUSCTL0 (0x01) 805*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL1 (0x02) 806*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL2 (0x04) 807*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_BUSCTL_PCLRR_BUSCTL3 (0x08) 808*4882a593Smuzhiyun 809*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_BE */ 810*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_BE_PCLRR_BE0 (0x01) 811*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_BE_PCLRR_BE1 (0x02) 812*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_BE_PCLRR_BE2 (0x04) 813*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_BE_PCLRR_BE3 (0x08) 814*4882a593Smuzhiyun 815*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_CS */ 816*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_CS_PCLRR_CS1 (0x02) 817*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_CS_PCLRR_CS2 (0x04) 818*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_CS_PCLRR_CS3 (0x08) 819*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_CS_PCLRR_CS4 (0x10) 820*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_CS_PCLRR_CS5 (0x20) 821*4882a593Smuzhiyun 822*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_PWM */ 823*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_PWM_PCLRR_PWM2 (0x04) 824*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_PWM_PCLRR_PWM3 (0x08) 825*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_PWM_PCLRR_PWM4 (0x10) 826*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_PWM_PCLRR_PWM5 (0x20) 827*4882a593Smuzhiyun 828*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_FECI2C */ 829*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C0 (0x01) 830*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C1 (0x02) 831*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C2 (0x04) 832*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_FECI2C_PCLRR_FECI2C3 (0x08) 833*4882a593Smuzhiyun 834*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_UART */ 835*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_UART_PCLRR_UART0 (0x01) 836*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_UART_PCLRR_UART1 (0x02) 837*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_UART_PCLRR_UART2 (0x04) 838*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_UART_PCLRR_UART3 (0x08) 839*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_UART_PCLRR_UART4 (0x10) 840*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_UART_PCLRR_UART5 (0x20) 841*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_UART_PCLRR_UART6 (0x40) 842*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_UART_PCLRR_UART7 (0x80) 843*4882a593Smuzhiyun 844*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_QSPI */ 845*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI0 (0x01) 846*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI1 (0x02) 847*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI2 (0x04) 848*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI3 (0x08) 849*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI4 (0x10) 850*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_QSPI_PCLRR_QSPI5 (0x20) 851*4882a593Smuzhiyun 852*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_TIMER */ 853*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER0 (0x01) 854*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER1 (0x02) 855*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER2 (0x04) 856*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_TIMER_PCLRR_TIMER3 (0x08) 857*4882a593Smuzhiyun 858*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAH */ 859*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH0 (0x01) 860*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAH_PCLRR_LCDDATAH1 (0x02) 861*4882a593Smuzhiyun 862*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAM */ 863*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM0 (0x01) 864*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM1 (0x02) 865*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM2 (0x04) 866*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM3 (0x08) 867*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM4 (0x10) 868*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM5 (0x20) 869*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM6 (0x40) 870*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAM_PCLRR_LCDDATAM7 (0x80) 871*4882a593Smuzhiyun 872*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDDATAL */ 873*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL0 (0x01) 874*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL1 (0x02) 875*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL2 (0x04) 876*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL3 (0x08) 877*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL4 (0x10) 878*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL5 (0x20) 879*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL6 (0x40) 880*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDDATAL_PCLRR_LCDDATAL7 (0x80) 881*4882a593Smuzhiyun 882*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLH */ 883*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLH_PCLRR_LCDCTLH0 (0x01) 884*4882a593Smuzhiyun 885*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PCLRR_LCDCTLL */ 886*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL0 (0x01) 887*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL1 (0x02) 888*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL2 (0x04) 889*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL3 (0x08) 890*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL4 (0x10) 891*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL5 (0x20) 892*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL6 (0x40) 893*4882a593Smuzhiyun #define MCF_GPIO_PCLRR_LCDCTLL_PCLRR_LCDCTLL7 (0x80) 894*4882a593Smuzhiyun 895*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_FEC */ 896*4882a593Smuzhiyun #define MCF_GPIO_PAR_FEC_PAR_FEC_MII(x) (((x)&0x03)<<0) 897*4882a593Smuzhiyun #define MCF_GPIO_PAR_FEC_PAR_FEC_7W(x) (((x)&0x03)<<2) 898*4882a593Smuzhiyun #define MCF_GPIO_PAR_FEC_PAR_FEC_7W_GPIO (0x00) 899*4882a593Smuzhiyun #define MCF_GPIO_PAR_FEC_PAR_FEC_7W_URTS1 (0x04) 900*4882a593Smuzhiyun #define MCF_GPIO_PAR_FEC_PAR_FEC_7W_FEC (0x0C) 901*4882a593Smuzhiyun #define MCF_GPIO_PAR_FEC_PAR_FEC_MII_GPIO (0x00) 902*4882a593Smuzhiyun #define MCF_GPIO_PAR_FEC_PAR_FEC_MII_UART (0x01) 903*4882a593Smuzhiyun #define MCF_GPIO_PAR_FEC_PAR_FEC_MII_FEC (0x03) 904*4882a593Smuzhiyun 905*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_PWM */ 906*4882a593Smuzhiyun #define MCF_GPIO_PAR_PWM_PAR_PWM1(x) (((x)&0x03)<<0) 907*4882a593Smuzhiyun #define MCF_GPIO_PAR_PWM_PAR_PWM3(x) (((x)&0x03)<<2) 908*4882a593Smuzhiyun #define MCF_GPIO_PAR_PWM_PAR_PWM5 (0x10) 909*4882a593Smuzhiyun #define MCF_GPIO_PAR_PWM_PAR_PWM7 (0x20) 910*4882a593Smuzhiyun 911*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_BUSCTL */ 912*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_TS(x) (((x)&0x03)<<3) 913*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_RWB (0x20) 914*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_TA (0x40) 915*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_OE (0x80) 916*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_OE_GPIO (0x00) 917*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_OE_OE (0x80) 918*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_TA_GPIO (0x00) 919*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_TA_TA (0x40) 920*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_RWB_GPIO (0x00) 921*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_RWB_RWB (0x20) 922*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_TS_GPIO (0x00) 923*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_TS_DACK0 (0x10) 924*4882a593Smuzhiyun #define MCF_GPIO_PAR_BUSCTL_PAR_TS_TS (0x18) 925*4882a593Smuzhiyun 926*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_FECI2C */ 927*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_SDA(x) (((x)&0x03)<<0) 928*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_SCL(x) (((x)&0x03)<<2) 929*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDIO(x) (((x)&0x03)<<4) 930*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDC(x) (((x)&0x03)<<6) 931*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDC_GPIO (0x00) 932*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDC_UTXD2 (0x40) 933*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDC_SCL (0x80) 934*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDC_EMDC (0xC0) 935*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDIO_GPIO (0x00) 936*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDIO_URXD2 (0x10) 937*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDIO_SDA (0x20) 938*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_MDIO_EMDIO (0x30) 939*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_SCL_GPIO (0x00) 940*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_SCL_UTXD2 (0x04) 941*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_SCL_SCL (0x0C) 942*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_SDA_GPIO (0x00) 943*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_SDA_URXD2 (0x02) 944*4882a593Smuzhiyun #define MCF_GPIO_PAR_FECI2C_PAR_SDA_SDA (0x03) 945*4882a593Smuzhiyun 946*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_BE */ 947*4882a593Smuzhiyun #define MCF_GPIO_PAR_BE_PAR_BE0 (0x01) 948*4882a593Smuzhiyun #define MCF_GPIO_PAR_BE_PAR_BE1 (0x02) 949*4882a593Smuzhiyun #define MCF_GPIO_PAR_BE_PAR_BE2 (0x04) 950*4882a593Smuzhiyun #define MCF_GPIO_PAR_BE_PAR_BE3 (0x08) 951*4882a593Smuzhiyun 952*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_CS */ 953*4882a593Smuzhiyun #define MCF_GPIO_PAR_CS_PAR_CS1 (0x02) 954*4882a593Smuzhiyun #define MCF_GPIO_PAR_CS_PAR_CS2 (0x04) 955*4882a593Smuzhiyun #define MCF_GPIO_PAR_CS_PAR_CS3 (0x08) 956*4882a593Smuzhiyun #define MCF_GPIO_PAR_CS_PAR_CS4 (0x10) 957*4882a593Smuzhiyun #define MCF_GPIO_PAR_CS_PAR_CS5 (0x20) 958*4882a593Smuzhiyun #define MCF_GPIO_PAR_CS_PAR_CS_CS1_GPIO (0x00) 959*4882a593Smuzhiyun #define MCF_GPIO_PAR_CS_PAR_CS_CS1_SDCS1 (0x01) 960*4882a593Smuzhiyun #define MCF_GPIO_PAR_CS_PAR_CS_CS1_CS1 (0x03) 961*4882a593Smuzhiyun 962*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_SSI */ 963*4882a593Smuzhiyun #define MCF_GPIO_PAR_SSI_PAR_MCLK (0x0080) 964*4882a593Smuzhiyun #define MCF_GPIO_PAR_SSI_PAR_TXD(x) (((x)&0x0003)<<8) 965*4882a593Smuzhiyun #define MCF_GPIO_PAR_SSI_PAR_RXD(x) (((x)&0x0003)<<10) 966*4882a593Smuzhiyun #define MCF_GPIO_PAR_SSI_PAR_FS(x) (((x)&0x0003)<<12) 967*4882a593Smuzhiyun #define MCF_GPIO_PAR_SSI_PAR_BCLK(x) (((x)&0x0003)<<14) 968*4882a593Smuzhiyun 969*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_UART */ 970*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UTXD0 (0x0001) 971*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URXD0 (0x0002) 972*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URTS0 (0x0004) 973*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UCTS0 (0x0008) 974*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UTXD1(x) (((x)&0x0003)<<4) 975*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URXD1(x) (((x)&0x0003)<<6) 976*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URTS1(x) (((x)&0x0003)<<8) 977*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UCTS1(x) (((x)&0x0003)<<10) 978*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UCTS1_GPIO (0x0000) 979*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UCTS1_SSI_BCLK (0x0800) 980*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UCTS1_ULPI_D7 (0x0400) 981*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UCTS1_UCTS1 (0x0C00) 982*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URTS1_GPIO (0x0000) 983*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URTS1_SSI_FS (0x0200) 984*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URTS1_ULPI_D6 (0x0100) 985*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URTS1_URTS1 (0x0300) 986*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URXD1_GPIO (0x0000) 987*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URXD1_SSI_RXD (0x0080) 988*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URXD1_ULPI_D5 (0x0040) 989*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_URXD1_URXD1 (0x00C0) 990*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UTXD1_GPIO (0x0000) 991*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UTXD1_SSI_TXD (0x0020) 992*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UTXD1_ULPI_D4 (0x0010) 993*4882a593Smuzhiyun #define MCF_GPIO_PAR_UART_PAR_UTXD1_UTXD1 (0x0030) 994*4882a593Smuzhiyun 995*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_QSPI */ 996*4882a593Smuzhiyun #define MCF_GPIO_PAR_QSPI_PAR_SCK(x) (((x)&0x0003)<<4) 997*4882a593Smuzhiyun #define MCF_GPIO_PAR_QSPI_PAR_DOUT(x) (((x)&0x0003)<<6) 998*4882a593Smuzhiyun #define MCF_GPIO_PAR_QSPI_PAR_DIN(x) (((x)&0x0003)<<8) 999*4882a593Smuzhiyun #define MCF_GPIO_PAR_QSPI_PAR_PCS0(x) (((x)&0x0003)<<10) 1000*4882a593Smuzhiyun #define MCF_GPIO_PAR_QSPI_PAR_PCS1(x) (((x)&0x0003)<<12) 1001*4882a593Smuzhiyun #define MCF_GPIO_PAR_QSPI_PAR_PCS2(x) (((x)&0x0003)<<14) 1002*4882a593Smuzhiyun 1003*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_TIMER */ 1004*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN0(x) (((x)&0x03)<<0) 1005*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN1(x) (((x)&0x03)<<2) 1006*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN2(x) (((x)&0x03)<<4) 1007*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN3(x) (((x)&0x03)<<6) 1008*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN3_GPIO (0x00) 1009*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN3_TOUT3 (0x80) 1010*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN3_URXD2 (0x40) 1011*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN3_TIN3 (0xC0) 1012*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN2_GPIO (0x00) 1013*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN2_TOUT2 (0x20) 1014*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN2_UTXD2 (0x10) 1015*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN2_TIN2 (0x30) 1016*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN1_GPIO (0x00) 1017*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN1_TOUT1 (0x08) 1018*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN1_DACK1 (0x04) 1019*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN1_TIN1 (0x0C) 1020*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN0_GPIO (0x00) 1021*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN0_TOUT0 (0x02) 1022*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN0_DREQ0 (0x01) 1023*4882a593Smuzhiyun #define MCF_GPIO_PAR_TIMER_PAR_TIN0_TIN0 (0x03) 1024*4882a593Smuzhiyun 1025*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_LCDDATA */ 1026*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDDATA_PAR_LD7_0(x) (((x)&0x03)<<0) 1027*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDDATA_PAR_LD15_8(x) (((x)&0x03)<<2) 1028*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDDATA_PAR_LD16(x) (((x)&0x03)<<4) 1029*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDDATA_PAR_LD17(x) (((x)&0x03)<<6) 1030*4882a593Smuzhiyun 1031*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_LCDCTL */ 1032*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_CLS (0x0001) 1033*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_PS (0x0002) 1034*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_REV (0x0004) 1035*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_SPL_SPR (0x0008) 1036*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_CONTRAST (0x0010) 1037*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_LSCLK (0x0020) 1038*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_LP_HSYNC (0x0040) 1039*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_FLM_VSYNC (0x0080) 1040*4882a593Smuzhiyun #define MCF_GPIO_PAR_LCDCTL_PAR_ACD_OE (0x0100) 1041*4882a593Smuzhiyun 1042*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_PAR_IRQ */ 1043*4882a593Smuzhiyun #define MCF_GPIO_PAR_IRQ_PAR_IRQ1(x) (((x)&0x0003)<<4) 1044*4882a593Smuzhiyun #define MCF_GPIO_PAR_IRQ_PAR_IRQ2(x) (((x)&0x0003)<<6) 1045*4882a593Smuzhiyun #define MCF_GPIO_PAR_IRQ_PAR_IRQ4(x) (((x)&0x0003)<<8) 1046*4882a593Smuzhiyun #define MCF_GPIO_PAR_IRQ_PAR_IRQ5(x) (((x)&0x0003)<<10) 1047*4882a593Smuzhiyun #define MCF_GPIO_PAR_IRQ_PAR_IRQ6(x) (((x)&0x0003)<<12) 1048*4882a593Smuzhiyun 1049*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_MSCR_FLEXBUS */ 1050*4882a593Smuzhiyun #define MCF_GPIO_MSCR_FLEXBUS_MSCR_ADDRCTL(x) (((x)&0x03)<<0) 1051*4882a593Smuzhiyun #define MCF_GPIO_MSCR_FLEXBUS_MSCR_DLOWER(x) (((x)&0x03)<<2) 1052*4882a593Smuzhiyun #define MCF_GPIO_MSCR_FLEXBUS_MSCR_DUPPER(x) (((x)&0x03)<<4) 1053*4882a593Smuzhiyun 1054*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_MSCR_SDRAM */ 1055*4882a593Smuzhiyun #define MCF_GPIO_MSCR_SDRAM_MSCR_SDRAM(x) (((x)&0x03)<<0) 1056*4882a593Smuzhiyun #define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLK(x) (((x)&0x03)<<2) 1057*4882a593Smuzhiyun #define MCF_GPIO_MSCR_SDRAM_MSCR_SDCLKB(x) (((x)&0x03)<<4) 1058*4882a593Smuzhiyun 1059*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_I2C */ 1060*4882a593Smuzhiyun #define MCF_GPIO_DSCR_I2C_I2C_DSE(x) (((x)&0x03)<<0) 1061*4882a593Smuzhiyun 1062*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_PWM */ 1063*4882a593Smuzhiyun #define MCF_GPIO_DSCR_PWM_PWM_DSE(x) (((x)&0x03)<<0) 1064*4882a593Smuzhiyun 1065*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_FEC */ 1066*4882a593Smuzhiyun #define MCF_GPIO_DSCR_FEC_FEC_DSE(x) (((x)&0x03)<<0) 1067*4882a593Smuzhiyun 1068*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_UART */ 1069*4882a593Smuzhiyun #define MCF_GPIO_DSCR_UART_UART0_DSE(x) (((x)&0x03)<<0) 1070*4882a593Smuzhiyun #define MCF_GPIO_DSCR_UART_UART1_DSE(x) (((x)&0x03)<<2) 1071*4882a593Smuzhiyun 1072*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_QSPI */ 1073*4882a593Smuzhiyun #define MCF_GPIO_DSCR_QSPI_QSPI_DSE(x) (((x)&0x03)<<0) 1074*4882a593Smuzhiyun 1075*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_TIMER */ 1076*4882a593Smuzhiyun #define MCF_GPIO_DSCR_TIMER_TIMER_DSE(x) (((x)&0x03)<<0) 1077*4882a593Smuzhiyun 1078*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_SSI */ 1079*4882a593Smuzhiyun #define MCF_GPIO_DSCR_SSI_SSI_DSE(x) (((x)&0x03)<<0) 1080*4882a593Smuzhiyun 1081*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_LCD */ 1082*4882a593Smuzhiyun #define MCF_GPIO_DSCR_LCD_LCD_DSE(x) (((x)&0x03)<<0) 1083*4882a593Smuzhiyun 1084*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_DEBUG */ 1085*4882a593Smuzhiyun #define MCF_GPIO_DSCR_DEBUG_DEBUG_DSE(x) (((x)&0x03)<<0) 1086*4882a593Smuzhiyun 1087*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_CLKRST */ 1088*4882a593Smuzhiyun #define MCF_GPIO_DSCR_CLKRST_CLKRST_DSE(x) (((x)&0x03)<<0) 1089*4882a593Smuzhiyun 1090*4882a593Smuzhiyun /* Bit definitions and macros for MCF_GPIO_DSCR_IRQ */ 1091*4882a593Smuzhiyun #define MCF_GPIO_DSCR_IRQ_IRQ_DSE(x) (((x)&0x03)<<0) 1092*4882a593Smuzhiyun 1093*4882a593Smuzhiyun /* 1094*4882a593Smuzhiyun * Generic GPIO support 1095*4882a593Smuzhiyun */ 1096*4882a593Smuzhiyun #define MCFGPIO_PODR MCFGPIO_PODR_FECH 1097*4882a593Smuzhiyun #define MCFGPIO_PDDR MCFGPIO_PDDR_FECH 1098*4882a593Smuzhiyun #define MCFGPIO_PPDR MCFGPIO_PPDSDR_FECH 1099*4882a593Smuzhiyun #define MCFGPIO_SETR MCFGPIO_PPDSDR_FECH 1100*4882a593Smuzhiyun #define MCFGPIO_CLRR MCFGPIO_PCLRR_FECH 1101*4882a593Smuzhiyun 1102*4882a593Smuzhiyun #define MCFGPIO_PIN_MAX 136 1103*4882a593Smuzhiyun #define MCFGPIO_IRQ_MAX 8 1104*4882a593Smuzhiyun #define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE 1105*4882a593Smuzhiyun 1106*4882a593Smuzhiyun /********************************************************************* 1107*4882a593Smuzhiyun * 1108*4882a593Smuzhiyun * Phase Locked Loop (PLL) 1109*4882a593Smuzhiyun * 1110*4882a593Smuzhiyun *********************************************************************/ 1111*4882a593Smuzhiyun 1112*4882a593Smuzhiyun /* Register read/write macros */ 1113*4882a593Smuzhiyun #define MCF_PLL_PODR 0xFC0C0000 1114*4882a593Smuzhiyun #define MCF_PLL_PLLCR 0xFC0C0004 1115*4882a593Smuzhiyun #define MCF_PLL_PMDR 0xFC0C0008 1116*4882a593Smuzhiyun #define MCF_PLL_PFDR 0xFC0C000C 1117*4882a593Smuzhiyun 1118*4882a593Smuzhiyun /* Bit definitions and macros for MCF_PLL_PODR */ 1119*4882a593Smuzhiyun #define MCF_PLL_PODR_BUSDIV(x) (((x)&0x0F)<<0) 1120*4882a593Smuzhiyun #define MCF_PLL_PODR_CPUDIV(x) (((x)&0x0F)<<4) 1121*4882a593Smuzhiyun 1122*4882a593Smuzhiyun /* Bit definitions and macros for MCF_PLL_PLLCR */ 1123*4882a593Smuzhiyun #define MCF_PLL_PLLCR_DITHDEV(x) (((x)&0x07)<<0) 1124*4882a593Smuzhiyun #define MCF_PLL_PLLCR_DITHEN (0x80) 1125*4882a593Smuzhiyun 1126*4882a593Smuzhiyun /* Bit definitions and macros for MCF_PLL_PMDR */ 1127*4882a593Smuzhiyun #define MCF_PLL_PMDR_MODDIV(x) (((x)&0xFF)<<0) 1128*4882a593Smuzhiyun 1129*4882a593Smuzhiyun /* Bit definitions and macros for MCF_PLL_PFDR */ 1130*4882a593Smuzhiyun #define MCF_PLL_PFDR_MFD(x) (((x)&0xFF)<<0) 1131*4882a593Smuzhiyun 1132*4882a593Smuzhiyun /********************************************************************* 1133*4882a593Smuzhiyun * 1134*4882a593Smuzhiyun * System Control Module Registers (SCM) 1135*4882a593Smuzhiyun * 1136*4882a593Smuzhiyun *********************************************************************/ 1137*4882a593Smuzhiyun 1138*4882a593Smuzhiyun /* Register read/write macros */ 1139*4882a593Smuzhiyun #define MCF_SCM_MPR 0xFC000000 1140*4882a593Smuzhiyun #define MCF_SCM_PACRA 0xFC000020 1141*4882a593Smuzhiyun #define MCF_SCM_PACRB 0xFC000024 1142*4882a593Smuzhiyun #define MCF_SCM_PACRC 0xFC000028 1143*4882a593Smuzhiyun #define MCF_SCM_PACRD 0xFC00002C 1144*4882a593Smuzhiyun #define MCF_SCM_PACRE 0xFC000040 1145*4882a593Smuzhiyun #define MCF_SCM_PACRF 0xFC000044 1146*4882a593Smuzhiyun 1147*4882a593Smuzhiyun #define MCF_SCM_BCR 0xFC040024 1148*4882a593Smuzhiyun 1149*4882a593Smuzhiyun /********************************************************************* 1150*4882a593Smuzhiyun * 1151*4882a593Smuzhiyun * SDRAM Controller (SDRAMC) 1152*4882a593Smuzhiyun * 1153*4882a593Smuzhiyun *********************************************************************/ 1154*4882a593Smuzhiyun 1155*4882a593Smuzhiyun /* Register read/write macros */ 1156*4882a593Smuzhiyun #define MCF_SDRAMC_SDMR 0xFC0B8000 1157*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR 0xFC0B8004 1158*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG1 0xFC0B8008 1159*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG2 0xFC0B800C 1160*4882a593Smuzhiyun #define MCF_SDRAMC_LIMP_FIX 0xFC0B8080 1161*4882a593Smuzhiyun #define MCF_SDRAMC_SDDS 0xFC0B8100 1162*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS0 0xFC0B8110 1163*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS1 0xFC0B8114 1164*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS2 0xFC0B8118 1165*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS3 0xFC0B811C 1166*4882a593Smuzhiyun 1167*4882a593Smuzhiyun /* Bit definitions and macros for MCF_SDRAMC_SDMR */ 1168*4882a593Smuzhiyun #define MCF_SDRAMC_SDMR_CMD (0x00010000) 1169*4882a593Smuzhiyun #define MCF_SDRAMC_SDMR_AD(x) (((x)&0x00000FFF)<<18) 1170*4882a593Smuzhiyun #define MCF_SDRAMC_SDMR_BNKAD(x) (((x)&0x00000003)<<30) 1171*4882a593Smuzhiyun #define MCF_SDRAMC_SDMR_BNKAD_LMR (0x00000000) 1172*4882a593Smuzhiyun #define MCF_SDRAMC_SDMR_BNKAD_LEMR (0x40000000) 1173*4882a593Smuzhiyun 1174*4882a593Smuzhiyun /* Bit definitions and macros for MCF_SDRAMC_SDCR */ 1175*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_IPALL (0x00000002) 1176*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_IREF (0x00000004) 1177*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_DQS_OE(x) (((x)&0x0000000F)<<8) 1178*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_PS(x) (((x)&0x00000003)<<12) 1179*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_RCNT(x) (((x)&0x0000003F)<<16) 1180*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_OE_RULE (0x00400000) 1181*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_MUX(x) (((x)&0x00000003)<<24) 1182*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_REF (0x10000000) 1183*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_DDR (0x20000000) 1184*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_CKE (0x40000000) 1185*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_MODE_EN (0x80000000) 1186*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_PS_16 (0x00002000) 1187*4882a593Smuzhiyun #define MCF_SDRAMC_SDCR_PS_32 (0x00000000) 1188*4882a593Smuzhiyun 1189*4882a593Smuzhiyun /* Bit definitions and macros for MCF_SDRAMC_SDCFG1 */ 1190*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG1_WTLAT(x) (((x)&0x00000007)<<4) 1191*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG1_REF2ACT(x) (((x)&0x0000000F)<<8) 1192*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG1_PRE2ACT(x) (((x)&0x00000007)<<12) 1193*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG1_ACT2RW(x) (((x)&0x00000007)<<16) 1194*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG1_RDLAT(x) (((x)&0x0000000F)<<20) 1195*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG1_SWT2RD(x) (((x)&0x00000007)<<24) 1196*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG1_SRD2RW(x) (((x)&0x0000000F)<<28) 1197*4882a593Smuzhiyun 1198*4882a593Smuzhiyun /* Bit definitions and macros for MCF_SDRAMC_SDCFG2 */ 1199*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG2_BL(x) (((x)&0x0000000F)<<16) 1200*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG2_BRD2WT(x) (((x)&0x0000000F)<<20) 1201*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG2_BWT2RW(x) (((x)&0x0000000F)<<24) 1202*4882a593Smuzhiyun #define MCF_SDRAMC_SDCFG2_BRD2PRE(x) (((x)&0x0000000F)<<28) 1203*4882a593Smuzhiyun 1204*4882a593Smuzhiyun /* Device Errata - LIMP mode work around */ 1205*4882a593Smuzhiyun #define MCF_SDRAMC_REFRESH (0x40000000) 1206*4882a593Smuzhiyun 1207*4882a593Smuzhiyun /* Bit definitions and macros for MCF_SDRAMC_SDDS */ 1208*4882a593Smuzhiyun #define MCF_SDRAMC_SDDS_SB_D(x) (((x)&0x00000003)<<0) 1209*4882a593Smuzhiyun #define MCF_SDRAMC_SDDS_SB_S(x) (((x)&0x00000003)<<2) 1210*4882a593Smuzhiyun #define MCF_SDRAMC_SDDS_SB_A(x) (((x)&0x00000003)<<4) 1211*4882a593Smuzhiyun #define MCF_SDRAMC_SDDS_SB_C(x) (((x)&0x00000003)<<6) 1212*4882a593Smuzhiyun #define MCF_SDRAMC_SDDS_SB_E(x) (((x)&0x00000003)<<8) 1213*4882a593Smuzhiyun 1214*4882a593Smuzhiyun /* Bit definitions and macros for MCF_SDRAMC_SDCS */ 1215*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ(x) (((x)&0x0000001F)<<0) 1216*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_BASE(x) (((x)&0x00000FFF)<<20) 1217*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_BA(x) ((x)&0xFFF00000) 1218*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_DIABLE (0x00000000) 1219*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_1MBYTE (0x00000013) 1220*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_2MBYTE (0x00000014) 1221*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_4MBYTE (0x00000015) 1222*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_8MBYTE (0x00000016) 1223*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_16MBYTE (0x00000017) 1224*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_32MBYTE (0x00000018) 1225*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_64MBYTE (0x00000019) 1226*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_128MBYTE (0x0000001A) 1227*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_256MBYTE (0x0000001B) 1228*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_512MBYTE (0x0000001C) 1229*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_1GBYTE (0x0000001D) 1230*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_2GBYTE (0x0000001E) 1231*4882a593Smuzhiyun #define MCF_SDRAMC_SDCS_CSSZ_4GBYTE (0x0000001F) 1232*4882a593Smuzhiyun 1233*4882a593Smuzhiyun /* 1234*4882a593Smuzhiyun * Edge Port Module (EPORT) 1235*4882a593Smuzhiyun */ 1236*4882a593Smuzhiyun #define MCFEPORT_EPPAR (0xFC094000) 1237*4882a593Smuzhiyun #define MCFEPORT_EPDDR (0xFC094002) 1238*4882a593Smuzhiyun #define MCFEPORT_EPIER (0xFC094003) 1239*4882a593Smuzhiyun #define MCFEPORT_EPDR (0xFC094004) 1240*4882a593Smuzhiyun #define MCFEPORT_EPPDR (0xFC094005) 1241*4882a593Smuzhiyun #define MCFEPORT_EPFR (0xFC094006) 1242*4882a593Smuzhiyun 1243*4882a593Smuzhiyun /* 1244*4882a593Smuzhiyun * I2C Module 1245*4882a593Smuzhiyun */ 1246*4882a593Smuzhiyun #define MCFI2C_BASE0 (0xFc058000) 1247*4882a593Smuzhiyun #define MCFI2C_SIZE0 0x40 1248*4882a593Smuzhiyun 1249*4882a593Smuzhiyun /********************************************************************/ 1250*4882a593Smuzhiyun #endif /* m53xxsim_h */ 1251