|
@@ -194,9 +194,23 @@
|
|
|
#define MCFGPIO_IRQ_MAX 8
|
|
|
#define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE
|
|
|
|
|
|
+/*
|
|
|
+ * Port Pin Assignment registers.
|
|
|
+ */
|
|
|
+#define MCFGPIO_PAR_AD (MCF_IPSBAR + 0x100040)
|
|
|
+#define MCFGPIO_PAR_BUSCTL (MCF_IPSBAR + 0x100042)
|
|
|
+#define MCFGPIO_PAR_BS (MCF_IPSBAR + 0x100044)
|
|
|
+#define MCFGPIO_PAR_CS (MCF_IPSBAR + 0x100045)
|
|
|
+#define MCFGPIO_PAR_SDRAM (MCF_IPSBAR + 0x100046)
|
|
|
+#define MCFGPIO_PAR_FECI2C (MCF_IPSBAR + 0x100047)
|
|
|
+#define MCFGPIO_PAR_UART (MCF_IPSBAR + 0x100048)
|
|
|
#define MCFGPIO_PAR_QSPI (MCF_IPSBAR + 0x10004A)
|
|
|
#define MCFGPIO_PAR_TIMER (MCF_IPSBAR + 0x10004C)
|
|
|
-#endif
|
|
|
+
|
|
|
+#define UART0_ENABLE_MASK 0x000f
|
|
|
+#define UART1_ENABLE_MASK 0x0ff0
|
|
|
+#define UART2_ENABLE_MASK 0x3000
|
|
|
+#endif /* CONFIG_M5271 */
|
|
|
|
|
|
#ifdef CONFIG_M5275
|
|
|
#define MCFGPIO_PODR_BUSCTL (MCF_IPSBAR + 0x100004)
|
|
@@ -289,8 +303,26 @@
|
|
|
#define MCFGPIO_IRQ_MAX 8
|
|
|
#define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE
|
|
|
|
|
|
+/*
|
|
|
+ * Port Pin Assignment registers.
|
|
|
+ */
|
|
|
+#define MCFGPIO_PAR_AD (MCF_IPSBAR + 0x100070)
|
|
|
+#define MCFGPIO_PAR_CS (MCF_IPSBAR + 0x100071)
|
|
|
+#define MCFGPIO_PAR_BUSCTL (MCF_IPSBAR + 0x100072)
|
|
|
+#define MCFGPIO_PAR_USB (MCF_IPSBAR + 0x100076)
|
|
|
+#define MCFGPIO_PAR_FEC0HL (MCF_IPSBAR + 0x100078)
|
|
|
+#define MCFGPIO_PAR_FEC1HL (MCF_IPSBAR + 0x100079)
|
|
|
+#define MCFGPIO_PAR_TIMER (MCF_IPSBAR + 0x10007A)
|
|
|
+#define MCFGPIO_PAR_UART (MCF_IPSBAR + 0x10007C)
|
|
|
#define MCFGPIO_PAR_QSPI (MCF_IPSBAR + 0x10007E)
|
|
|
-#endif
|
|
|
+#define MCFGPIO_PAR_SDRAM (MCF_IPSBAR + 0x100080)
|
|
|
+#define MCFGPIO_PAR_FECI2C (MCF_IPSBAR + 0x100082)
|
|
|
+#define MCFGPIO_PAR_BS (MCF_IPSBAR + 0x100084)
|
|
|
+
|
|
|
+#define UART0_ENABLE_MASK 0x000f
|
|
|
+#define UART1_ENABLE_MASK 0x00f0
|
|
|
+#define UART2_ENABLE_MASK 0x3f00
|
|
|
+#endif /* CONFIG_M5275 */
|
|
|
|
|
|
/*
|
|
|
* PIT timer base addresses.
|
|
@@ -310,22 +342,6 @@
|
|
|
#define MCFEPORT_EPPDR (MCF_IPSBAR + 0x130005)
|
|
|
#define MCFEPORT_EPFR (MCF_IPSBAR + 0x130006)
|
|
|
|
|
|
-/*
|
|
|
- * GPIO pins setups to enable the UARTs.
|
|
|
- */
|
|
|
-#ifdef CONFIG_M5271
|
|
|
-#define MCF_GPIO_PAR_UART 0x100048 /* PAR UART address */
|
|
|
-#define UART0_ENABLE_MASK 0x000f
|
|
|
-#define UART1_ENABLE_MASK 0x0ff0
|
|
|
-#define UART2_ENABLE_MASK 0x3000
|
|
|
-#endif
|
|
|
-#ifdef CONFIG_M5275
|
|
|
-#define MCF_GPIO_PAR_UART 0x10007c /* PAR UART address */
|
|
|
-#define UART0_ENABLE_MASK 0x000f
|
|
|
-#define UART1_ENABLE_MASK 0x00f0
|
|
|
-#define UART2_ENABLE_MASK 0x3f00
|
|
|
-#endif
|
|
|
-
|
|
|
/*
|
|
|
* Reset Control Unit (relative to IPSBAR).
|
|
|
*/
|