Modifications for 1.2.0:
======================================================================
+* Fix "No PHY device found" problem on ICU862 boards:
+ On the ICU862 board the MII-MDC pin is routed to PD8 pin of CPU. So
+ for this board we need to configure Utopia and enable PD8 to
+ MII-MDC function, because the existing FEC code only checks Utopia
+ mode and configures PCMCIA port A for MII.
+
+
* Patch by Greg Allen, 6 Aug 2002:
Make the mpc824x correctly report the cpurevision according to
Motorola's docs.
/* Configure port A for MII.
*/
+#if defined(CONFIG_ICU862) && defined(CFG_DISCOVER_PHY)
+
+ /* On the ICU862 board the MII-MDC pin is routed to PD8 pin
+ * of CPU, so for this board we need to configure Utopia and
+ * enable PD8 to MII-MDC function */
+ immr->im_ioport.iop_pdpar |= 0x4080;
+#endif
+
/* Has Utopia been configured? */
if (immr->im_ioport.iop_pdpar & (0x8000 >> 1)) {
/*
/* Configure port A for MII.
*/
+#if defined(CONFIG_ICU862)
+
+ /* On the ICU862 board the MII-MDC pin is routed to PD8 pin
+ * of CPU, so for this board we need to configure Utopia and
+ * enable PD8 to MII-MDC function */
+ immr->im_ioport.iop_pdpar |= 0x4080;
+#endif
+
/* Has Utopia been configured? */
if (immr->im_ioport.iop_pdpar & (0x8000 >> 1)) {
/*