liquidLevelDataOperation.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. /****************************************************************************/
  2. /*
  3. * m532xsim.h -- ColdFire 5329 registers
  4. */
  5. /****************************************************************************/
  6. #ifndef m532xsim_h
  7. #define m532xsim_h
  8. /****************************************************************************/
  9. #define CPU_NAME "COLDFIRE(m532x)"
  10. #define CPU_INSTR_PER_JIFFY 3
  11. #define MCF_BUSCLK (MCF_CLK / 3)
  12. #include <asm/m53xxacr.h>
  13. #define MCFINT_VECBASE 64
  14. #define MCFINT_UART0 26 /* Interrupt number for UART0 */
  15. #define MCFINT_UART1 27 /* Interrupt number for UART1 */
  16. #define MCFINT_UART2 28 /* Interrupt number for UART2 */
  17. #define MCFINT_QSPI 31 /* Interrupt number for QSPI */
  18. #define MCFINT_FECRX0 36 /* Interrupt number for FEC */
  19. #define MCFINT_FECTX0 40 /* Interrupt number for FEC */
  20. #define MCFINT_FECENTC0 42 /* Interrupt number for FEC */
  21. #define MCF_IRQ_UART0 (MCFINT_VECBASE + MCFINT_UART0)
  22. #define MCF_IRQ_UART1 (MCFINT_VECBASE + MCFINT_UART1)
  23. #define MCF_IRQ_UART2 (MCFINT_VECBASE + MCFINT_UART2)
  24. #define MCF_IRQ_FECRX0 (MCFINT_VECBASE + MCFINT_FECRX0)
  25. #define MCF_IRQ_FECTX0 (MCFINT_VECBASE + MCFINT_FECTX0)
  26. #define MCF_IRQ_FECENTC0 (MCFINT_VECBASE + MCFINT_FECENTC0)
  27. #define MCF_IRQ_QSPI (MCFINT_VECBASE + MCFINT_QSPI)
  28. #define MCF_WTM_WCR 0xFC098000
  29. /*
  30. * Define the 532x SIM register set addresses.
  31. */
  32. #define MCFSIM_IPRL 0xFC048004
  33. #define MCFSIM_IPRH 0xFC048000
  34. #define MCFSIM_IPR MCFSIM_IPRL
  35. #define MCFSIM_IMRL 0xFC04800C
  36. #define MCFSIM_IMRH 0xFC048008
  37. #define MCFSIM_IMR MCFSIM_IMRL
  38. #define MCFSIM_ICR0 0xFC048040
  39. #define MCFSIM_ICR1 0xFC048041
  40. #define MCFSIM_ICR2 0xFC048042
  41. #define MCFSIM_ICR3 0xFC048043
  42. #define MCFSIM_ICR4 0xFC048044
  43. #define MCFSIM_ICR5 0xFC048045
  44. #define MCFSIM_ICR6 0xFC048046
  45. #define MCFSIM_ICR7 0xFC048047
  46. #define MCFSIM_ICR8 0xFC048048
  47. #define MCFSIM_ICR9 0xFC048049
  48. #define MCFSIM_ICR10 0xFC04804A
  49. #define MCFSIM_ICR11 0xFC04804B
  50. /*
  51. * Some symbol defines for the above...
  52. */
  53. #define MCFSIM_SWDICR MCFSIM_ICR0 /* Watchdog timer ICR */
  54. #define MCFSIM_TIMER1ICR MCFSIM_ICR1 /* Timer 1 ICR */
  55. #define MCFSIM_TIMER2ICR MCFSIM_ICR2 /* Timer 2 ICR */
  56. #define MCFSIM_UART1ICR MCFSIM_ICR4 /* UART 1 ICR */
  57. #define MCFSIM_UART2ICR MCFSIM_ICR5 /* UART 2 ICR */
  58. #define MCFSIM_DMA0ICR MCFSIM_ICR6 /* DMA 0 ICR */
  59. #define MCFSIM_DMA1ICR MCFSIM_ICR7 /* DMA 1 ICR */
  60. #define MCFSIM_DMA2ICR MCFSIM_ICR8 /* DMA 2 ICR */
  61. #define MCFSIM_DMA3ICR MCFSIM_ICR9 /* DMA 3 ICR */
  62. #define MCFINTC0_SIMR 0xFC04801C
  63. #define MCFINTC0_CIMR 0xFC04801D
  64. #define MCFINTC0_ICR0 0xFC048040
  65. #define MCFINTC1_SIMR 0xFC04C01C
  66. #define MCFINTC1_CIMR 0xFC04C01D
  67. #define MCFINTC1_ICR0 0xFC04C040
  68. #define MCFINTC2_SIMR (0)
  69. #define MCFINTC2_CIMR (0)
  70. #define MCFINTC2_ICR0 (0)
  71. #define MCFSIM_ICR_TIMER1 (0xFC048040+32)
  72. #define MCFSIM_ICR_TIMER2 (0xFC048040+33)
  73. /*
  74. * Define system peripheral IRQ usage.
  75. */
  76. #define MCF_IRQ_TIMER (64 + 32) /* Timer0 */
  77. #define MCF_IRQ_PROFILER (64 + 33) /* Timer1 */
  78. /*
  79. * UART module.
  80. */
  81. #define MCFUART_BASE0 0xFC060000 /* Base address of UART1 */
  82. #define MCFUART_BASE1 0xFC064000 /* Base address of UART2 */
  83. #define MCFUART_BASE2 0xFC068000 /* Base address of UART3 */
  84. /*
  85. * FEC module.
  86. */
  87. #define MCFFEC_BASE0 0xFC030000 /* Base address of FEC0 */
  88. #define MCFFEC_SIZE0 0x800 /* Size of FEC0 region */
  89. /*
  90. * QSPI module.
  91. */
  92. #define MCFQSPI_BASE 0xFC058000 /* Base address of QSPI */
  93. #define MCFQSPI_SIZE 0x40 /* Size of QSPI region */
  94. #define MCFQSPI_CS0 84
  95. #define MCFQSPI_CS1 85
  96. #define MCFQSPI_CS2 86
  97. /*
  98. * Timer module.
  99. */
  100. #define MCFTIMER_BASE1 0xFC070000 /* Base address of TIMER1 */
  101. #define MCFTIMER_BASE2 0xFC074000 /* Base address of TIMER2 */
  102. #define MCFTIMER_BASE3 0xFC078000 /* Base address of TIMER3 */
  103. #define MCFTIMER_BASE4 0xFC07C000 /* Base address of TIMER4 */
  104. /*********************************************************************
  105. *
  106. * Reset Controller Module
  107. *
  108. *********************************************************************/
  109. #define MCF_RCR 0xFC0A0000
  110. #define MCF_RSR 0xFC0A0001
  111. #define MCF_RCR_SWRESET 0x80 /* Software reset bit */
  112. #define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */
  113. /*
  114. * Power Management
  115. */
  116. #define MCFPM_WCR 0xfc040013
  117. #define MCFPM_PPMSR0 0xfc04002c
  118. #define MCFPM_PPMCR0 0xfc04002d
  119. #define MCFPM_PPMSR1 0xfc04002e
  120. #define MCFPM_PPMCR1 0xfc04002f
  121. #define MCFPM_PPMHR0 0xfc040030
  122. #define MCFPM_PPMLR0 0xfc040034
  123. #define MCFPM_PPMHR1 0xfc040038
  124. #define MCFPM_LPCR 0xec090007
  125. /*
  126. * The M5329EVB board needs a help getting its devices initialized
  127. * at kernel start time if dBUG doesn't set it up (for example
  128. * it is not used), so we need to do it manually.
  129. */
  130. #ifdef __ASSEMBLER__
  131. .macro m5329EVB_setup
  132. movel #0xFC098000, %a7
  133. movel #0x0, (%a7)
  134. #define CORE_SRAM 0x80000000
  135. #define CORE_SRAM_SIZE 0x8000
  136. movel #CORE_SRAM, %d0
  137. addl #0x221, %d0
  138. movec %d0,%RAMBAR1
  139. movel #CORE_SRAM, %sp
  140. addl #CORE_SRAM_SIZE, %sp
  141. jsr sysinit
  142. .endm
  143. #define PLATFORM_SETUP m5329EVB_setup
  144. #endif /* __ASSEMBLER__ */
  145. /*********************************************************************
  146. *
  147. * Chip Configuration Module (CCM)
  148. *
  149. *********************************************************************/
  150. /* Register read/write macros */
  151. #define MCF_CCM_CCR 0xFC0A0004
  152. #define MCF_CCM_RCON 0xFC0A0008
  153. #define MCF_CCM_CIR 0xFC0A000A
  154. #define MCF_CCM_MISCCR 0xFC0A0010
  155. #define MCF_CCM_CDR 0xFC0A0012
  156. #define MCF_CCM_UHCSR 0xFC0A0014
  157. #define MCF_CCM_UOCSR 0xFC0A0016
  158. /* Bit definitions and macros for MCF_CCM_CCR */
  159. #define MCF_CCM_CCR_RESERVED (0x0001)
  160. #define MCF_CCM_CCR_PLL_MODE (0x0003)
  161. #define MCF_CCM_CCR_OSC_MODE (0x0005)
  162. #define MCF_CCM_CCR_BOOTPS(x) (((x)&0x0003)<<3|0x0001)
  163. #define MCF_CCM_CCR_LOAD (0x0021)
  164. #define MCF_CCM_CCR_LIMP (0x0041)
  165. #define MCF_CCM_CCR_CSC(x) (((x)&0x0003)<<8|0x0001)
  166. /* Bit definitions and macros for MCF_CCM_RCON */
  167. #define MCF_CCM_RCON_RESERVED (0x0001)
  168. #define MCF_CCM_RCON_PLL_MODE (0x0003)
  169. #define MCF_CCM_RCON_OSC_MODE (0x0005)
  170. #define MCF_CCM_RCON_BOOTPS(x) (((x)&0x0003)<<3|0x0001)
  171. #define MCF_CCM_RCON_LOAD (0x0021)
  172. #define MCF_CCM_RCON_LIMP (0x0041)
  173. #define MCF_CCM_RCON_CSC(x) (((x)&0x0003)<<8|0x0001)
  174. /* Bit definitions and macros for MCF_CCM_CIR */
  175. #define MCF_CCM_CIR_PRN(x) (((x)&0x003F)<<0)
  176. #define MCF_CCM_CIR_PIN(x) (((x)&0x03FF)<<6)
  177. /* Bit definitions and macros for MCF_CCM_MISCCR */
  178. #define MCF_CCM_MISCCR_USBSRC (0x0001)
  179. #define MCF_CCM_MISCCR_USBDIV (0x0002)
  180. #define MCF_CCM_MISCCR_SSI_SRC (0x0010)
  181. #define MCF_CCM_MISCCR_TIM_DMA (0x0020)
  182. #define MCF_CCM_MISCCR_SSI_PUS (0x0040)
  183. #define MCF_CCM_MISCCR_SSI_PUE (0x0080)
  184. #define MCF_CCM_MISCCR_LCD_CHEN (0x0100)
  185. #define MCF_CCM_MISCCR_LIMP (0x1000)
  186. #define MCF_CCM_MISCCR_PLL_LOCK (0x2000)
  187. /* Bit definitions and macros for MCF_CCM_CDR */
  188. #define MCF_CCM_CDR_SSIDIV(x) (((x)&0x000F)<<0)
  189. #define MCF_CCM_CDR_LPDIV(x) (((x)&0x000F)<<8)
  190. /* Bit definitions and macros for MCF_CCM_UHCSR */
  191. #define MCF_CCM_UHCSR_XPDE (0x0001)
  192. #define MCF_CCM_UHCSR_UHMIE (0x0002)
  193. #define MCF_CCM_UHCSR_WKUP (0x0004)
  194. #define MCF_CCM_UHCSR_PORTIND(x) (((x)&0x0003)<<14)
  195. /* Bit definitions and macros for MCF_CCM_UOCSR */
  196. #define MCF_CCM_UOCSR_XPDE (0x0001)
  197. #define MCF_CCM_UOCSR_UOMIE (0x0002)
  198. #define MCF_CCM_UOCSR_WKUP (0x0004)
  199. #define MCF_CCM_UOCSR_PWRFLT (0x0008)
  200. #define MCF_CCM_UOCSR_SEND (0x0010)
  201. #define MCF_CCM_UOCSR_VVLD (0x0020)
  202. #define MCF_CCM_UOCSR_BVLD (0x0040)
  203. #define MCF_CCM_UOCSR_AVLD (0x0080)
  204. #define MCF_CCM_UOCSR_DPPU (0x0100)
  205. #define MCF_CCM_UOCSR_DCR_VBUS (0x0200)
  206. #define MCF_CCM_UOCSR_CRG_VBUS (0x0400)
  207. #define MCF_CCM_UOCSR_DRV_VBUS (0x0800)
  208. #define MCF_CCM_UOCSR_DMPD (0x1000)
  209. #define MCF_CCM_UOCSR_DPPD (0x2000)
  210. #define MCF_CCM_UOCSR_PORTIND(x) (((x)&0x0003)<<14)
  211. /*********************************************************************
  212. *
  213. * FlexBus Chip Selects (FBCS)
  214. *
  215. *********************************************************************/
  216. /* Register read/write macros */
  217. #define MCF_FBCS0_CSAR 0xFC008000
  218. #define MCF_FBCS0_CSMR 0xFC008004
  219. #define MCF_FBCS0_CSCR 0xFC008008
  220. #define MCF_FBCS1_CSAR 0xFC00800C
  221. #define MCF_FBCS1_CSMR 0xFC008010
  222. #define MCF_FBCS1_CSCR 0xFC008014
  223. #define MCF_FBCS2_CSAR 0xFC008018
  224. #define MCF_FBCS2_CSMR 0xFC00801C
  225. #define MCF_FBCS2_CSCR 0xFC008020
  226. #define MCF_FBCS3_CSAR 0xFC008024
  227. #define MCF_FBCS3_CSMR 0xFC008028
  228. #define MCF_FBCS3_CSCR 0xFC00802C
  229. #define MCF_FBCS4_CSAR 0xFC008030
  230. #define MCF_FBCS4_CSMR 0xFC008034
  231. #define MCF_FBCS4_CSCR 0xFC008038
  232. #define MCF_FBCS5_CSAR 0xFC00803C
  233. #define MCF_FBCS5_CSMR 0xFC008040
  234. #define MCF_FBCS5_CSCR 0xFC008044
  235. /* Bit definitions and macros for MCF_FBCS_CSAR */
  236. #define MCF_FBCS_CSAR_BA(x) ((x)&0xFFFF0000)
  237. /* Bit definitions and macros for MCF_FBCS_CSMR */
  238. #define MCF_FBCS_CSMR_V (0x00000001)
  239. #define MCF_FBCS_CSMR_WP (0x00000100)
  240. #define MCF_FBCS_CSMR_BAM(x) (((x)&0x0000FFFF)<<16)
  241. #define MCF_FBCS_CSMR_BAM_4G (0xFFFF0000)
  242. #define MCF_FBCS_CSMR_BAM_2G (0x7FFF0000)
  243. #define MCF_FBCS_CSMR_BAM_1G (0x3FFF0000)
  244. #define MCF_FBCS_CSMR_BAM_1024M (0x3FFF0000)
  245. #define MCF_FBCS_CSMR_BAM_512M (0x1FFF0000)
  246. #define MCF_FBCS_CSMR_BAM_256M (0x0FFF0000)
  247. #define MCF_FBCS_CSMR_BAM_128M (0x07FF0000)
  248. #define MCF_FBCS_CSMR_BAM_64M (0x03FF0000)
  249. #define MCF_FBCS_CSMR_BAM_32M (0x01FF0000)
  250. #define MCF_FBCS_CSMR_BAM_16M (0x00FF0000)
  251. #define MCF_FBCS_CSMR_BAM_8M (0x007F0000)
  252. #define MCF_FBCS_CSMR_BAM_4M (0x003F0000)
  253. #define MCF_FBCS_CSMR_BAM_2M (0x001F0000)
  254. #define MCF_FBCS_CSMR_BAM_1M (0x000F0000)
  255. #define MCF_FBCS_CSMR_BAM_1024K (0x000F0000)
  256. #define MCF_FBCS_CSMR_BAM_512K (0x00070000)
  257. #define MCF_FBCS_CSMR_BAM_256K (0x00030000)
  258. #define MCF_FBCS_CSMR_BAM_128K (0x00010000)
  259. #define MCF_FBCS_CSMR_BAM_64K (0x00000000)
  260. /* Bit definitions and macros for MCF_FBCS_CSCR */
  261. #define MCF_FBCS_CSCR_BSTW (0x00000008)
  262. #define MCF_FBCS_CSCR_BSTR (0x00000010)
  263. #define MCF_FBCS_CSCR_BEM (0x00000020)
  264. #define MCF_FBCS_CSCR_PS(x) (((x)&0x00000003)<<6)
  265. #define MCF_FBCS_CSCR_AA (0x00000100)
  266. #define MCF_FBCS_CSCR_SBM (0x00000200)
  267. #define MCF_FBCS_CSCR_WS(x) (((x)&0x0000003F)<<10)
  268. #define MCF_FBCS_CSCR_WRAH(x) (((x)&0x00000003)<<16)
  269. #define MCF_FBCS_CSCR_RDAH(x) (((x)&0x00000003)<<18)
  270. #define MCF_FBCS_CSCR_ASET(x) (((x)&0x00000003)<<20)
  271. #define MCF_FBCS_CSCR_SWSEN (0x00800000)
  272. #define MCF_FBCS_CSCR_SWS(x) (((x)&0x0000003F)<<26)
  273. #define MCF_FBCS_CSCR_PS_8 (0x0040)
  274. #define MCF_FBCS_CSCR_PS_16 (0x0080)
  275. #define MCF_FBCS_CSCR_PS_32 (0x0000)
  276. /*********************************************************************
  277. *
  278. * General Purpose I/O (GPIO)
  279. *
  280. *********************************************************************/
  281. /* Register read/write macros */
  282. #define MCFGPIO_PODR_FECH (0xFC0A4000)
  283. #define MCFGPIO_PODR_FECL (0xFC0A4001)
  284. #define MCFGPIO_PODR_SSI (0xFC0A4002)
  285. #define MCFGPIO_PODR_BUSCTL (0xFC0A4003)
  286. #define MCFGPIO_PODR_BE (0xFC0A4004)
  287. #define MCFGPIO_PODR_CS (0xFC0A4005)
  288. #define MCFGPIO_PODR_PWM (0xFC0A4006)
  289. #define MCFGPIO_PODR_FECI2C (0xFC0A4007)
  290. #define MCFGPIO_PODR_UART (0xFC0A4009)
  291. #define MCFGPIO_PODR_QSPI (0xFC0A400A)
  292. #define MCFGPIO_PODR_TIMER (0xFC0A400B)
  293. #define MCFGPIO_PODR_LCDDATAH (0xFC0A400D)
  294. #define MCFGPIO_PODR_LCDDATAM (0xFC0A400E)
  295. #define MCFGPIO_PODR_LCDDATAL (0xFC0A400F)
  296. #define MCFGPIO_PODR_LCDCTLH (0xFC0A4010)
  297. #define MCFGPIO_PODR_LCDCTLL (0xFC0A4011)
  298. #define MCFGPIO_PDDR_FECH (0xFC0A4014)
  299. #define MCFGPIO_PDDR_FECL (0xFC0A4015)
  300. #define MCFGPIO_PDDR_SSI (0xFC0A4016)
  301. #define MCFGPIO_PDDR_BUSCTL (0xFC0A4017)
  302. #define MCFGPIO_PDDR_BE (0xFC0A4018)
  303. #define MCFGPIO_PDDR_CS (0xFC0A4019)
  304. #define MCFGPIO_PDDR_PWM (0xFC0A401A)
  305. #define MCFGPIO_PDDR_FECI2C (0xFC0A401B)
  306. #define MCFGPIO_PDDR_UART (0xFC0A401C)
  307. #define MCFGPIO_PDDR_QSPI (0xFC0A401E)
  308. #define MCFGPIO_PDDR_TIMER (0xFC0A401F)
  309. #define MCFGPIO_PDDR_LCDDATAH (0xFC0A4021)
  310. #define MCFGPIO_PDDR_LCDDATAM (0xFC0A4022)
  311. #define MCFGPIO_PDDR_LCDDATAL (0xFC0A4023)
  312. #define MCFGPIO_PDDR_LCDCTLH (0xFC0A4024)
  313. #define MCFGPIO_PDDR_LCDCTLL (0xFC0A4025)
  314. #define MCFGPIO_PPDSDR_FECH (0xFC0A4028)
  315. #define MCFGPIO_PPDSDR_FECL (0xFC0A4029)
  316. #define MCFGPIO_PPDSDR_SSI (0xFC0A402A)
  317. #define MCFGPIO_PPDSDR_BUSCTL (0xFC0A402B)
  318. #define MCFGPIO_PPDSDR_BE (0xFC0A402C)
  319. #define MCFGPIO_PPDSDR_CS (0xFC0A402D)
  320. #define MCFGPIO_PPDSDR_PWM (0xFC0A402E)
  321. #define MCFGPIO_PPDSDR_FECI2C (0xFC0A402F)
  322. #define MCFGPIO_PPDSDR_UART (0xFC0A4031)
  323. #define MCFGPIO_PPDSDR_QSPI (0xFC0A4032)
  324. #define MCFGPIO_PPDSDR_TIMER (0xFC0A4033)
  325. #define MCFGPIO_PPDSDR_LCDDATAH (0xFC0A4035)
  326. #define MCFGPIO_PPDSDR_LCDDATAM (0xFC0A4036)
  327. #define MCFGPIO_PPDSDR_LCDDATAL (0xFC0A4037)
  328. #define MCFGPIO_PPDSDR_LCDCTLH (0xFC0A4038)
  329. #define MCFGPIO_PPDSDR_LCDCTLL (0xFC0A4039)
  330. #define MCFGPIO_PCLRR_FECH (0xFC0A403C)
  331. #define MCFGPIO_PCLRR_FECL (0xFC0A403D)
  332. #define MCFGPIO_PCLRR_SSI (0xFC0A403E)
  333. #define MCFGPIO_PCLRR_BUSCTL (0xFC0A403F)
  334. #define MCFGPIO_PCLRR_BE (0xFC0A4040)
  335. #define MCFGPIO_PCLRR_CS (0xFC0A4041)
  336. #define MCFGPIO_PCLRR_PWM (0xFC0A4042)
  337. #define MCFGPIO_PCLRR_FECI2C (0xFC0A4043)
  338. #define MCFGPIO_PCLRR_UART (0xFC0A4045)
  339. #define MCFGPIO_PCLRR_QSPI (0xFC0A4046)
  340. #define MCFGPIO_PCLRR_TIMER (0xFC0A4047)
  341. #define MCFGPIO_PCLRR_LCDDATAH (0xFC0A4049)
  342. #define MCFGPIO_PCLRR_LCDDATAM (0xFC0A404A)
  343. #define MCFGPIO_PCLRR_LCDDATAL (0xFC0A404B)
  344. #define MCFGPIO_PCLRR_LCDCTLH (0xFC0A404C)
  345. #define MCFGPIO_PCLRR_LCDCTLL (0xFC0A404D)
  346. #define MCFGPIO_PAR_FEC (0xFC0A4050)
  347. #define MCFGPIO_PAR_PWM (0xFC0A4051)
  348. #define MCFGPIO_PAR_BUSCTL (0xFC0A4052)
  349. #define MCFGPIO_PAR_FECI2C (0xFC0A4053)
  350. #define MCFGPIO_PAR_BE (0xFC0A4054)
  351. #define MCFGPIO_PAR_CS (0xFC0A4055)
  352. #define MCFGPIO_PAR_SSI (0xFC0A4056)
  353. #define MCFGPIO_PAR_UART (0xFC0A4058)
  354. #define MCFGPIO_PAR_QSPI (0xFC0A405A)
  355. #define MCFGPIO_PAR_TIMER (0xFC0A405C)
  356. #define MCFGPIO_PAR_LCDDATA (0xFC0A405D)
  357. #define MCFGPIO_PAR_LCDCTL (0xFC0A405E)
  358. #define MCFGPIO_PAR_IRQ (0xFC0A4060)
  359. #define MCFGPIO_MSCR_FLEXBUS (0xFC0A4064)
  360. #define MCFGPIO_MSCR_SDRAM (0xFC0A4065)
  361. #define MCFGPIO_DSCR_I2C (0xFC0A4068)
  362. #define MCFGPIO_DSCR_PWM (0xFC0A4069)
  363. #define MCFGPIO_DSCR_FEC (0xFC0A406A)
  364. #define MCFGPIO_DSCR_UART (0xFC0A406B)
  365. #define MCFGPIO_DSCR_QSPI (0xFC0A406C)
  366. #define MCFGPIO_DSCR_TIMER (0xFC0A406D)
  367. #define MCFGPIO_DSCR_SSI (0xFC0A406E)
  368. #define MCFGPIO_DSCR_LCD (0xFC0A406F)
  369. #define MCFGPIO_DSCR_DEBUG (0xFC0A4070)
  370. #define MCFGPIO_DSCR_CLKRST (0xFC0A4071)
  371. #define MCFGPIO_DSCR_IRQ (0xFC0A4072)
  372. /* Bit definitions and macros for MCF_GPIO_PODR_FECH */
  373. #define MCF_GPIO_PODR_FECH_PODR_FECH0 (0x01)
  374. #define MCF_GPIO_PODR_FECH_PODR_FECH1 (0x02)
  375. #define MCF_GPIO_PODR_FECH_PODR_FECH2 (0x04)
  376. #define MCF_GPIO_PODR_FECH_PODR_FECH3 (0x08)
  377. #define MCF_GPIO_PODR_FECH_PODR_FECH4 (0x10)
  378. #define MCF_GPIO_PODR_FECH_PODR_FECH5 (0x20)
  379. #define MCF_GPIO_PODR_FECH_PODR_FECH6 (0x40)