]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/commproc.h
Add PCI support for MPC8250 Boards (PM825 module)
[karo-tx-uboot.git] / include / commproc.h
index 159c294f8443e512f2f870d825546167eb7be070..5ff82b71a88cb5d1c7ce3669b55c40e23aa8aa6d 100644 (file)
@@ -595,6 +595,32 @@ typedef struct scc_enet {
 
 #endif /* CONFIG_PCU_E, CONFIG_CCM */
 
+/***  ELPT860 *********************************************************/
+
+#ifdef CONFIG_ELPT860
+/* Bits in parallel I/O port registers that have to be set/cleared
+ * to configure the pins for SCC1 use.
+ */
+#  define PROFF_ENET        PROFF_SCC1
+#  define CPM_CR_ENET       CPM_CR_CH_SCC1
+#  define SCC_ENET          0
+
+#  define PA_ENET_RXD       ((ushort)0x0001)   /* PA 15 */
+#  define PA_ENET_TXD       ((ushort)0x0002)   /* PA 14 */
+#  define PA_ENET_RCLK      ((ushort)0x0100)   /* PA  7 */
+#  define PA_ENET_TCLK      ((ushort)0x0200)   /* PA  6 */
+
+#  define PC_ENET_TENA      ((ushort)0x0001)   /* PC 15 */
+#  define PC_ENET_CLSN      ((ushort)0x0010)   /* PC 11 */
+#  define PC_ENET_RENA      ((ushort)0x0020)   /* PC 10 */
+
+/* Control bits in the SICR to route TCLK (CLK2) and RCLK (CLK1) to
+ * SCC1.  Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
+ */
+#  define SICR_ENET_MASK    ((uint)0x000000FF)
+#  define SICR_ENET_CLKRT   ((uint)0x00000025)
+#endif /* CONFIG_ELPT860 */
+
 /***  ESTEEM 192E  **************************************************/
 #ifdef CONFIG_ESTEEM192E
 /* ESTEEM192E