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