]> www.infradead.org Git - users/rw/ppcboot.git/commitdiff
Fix "No PHY device found" problem on ICU862 boards
authorwdenk <wdenk>
Sat, 10 Aug 2002 14:42:23 +0000 (14:42 +0000)
committerwdenk <wdenk>
Sat, 10 Aug 2002 14:42:23 +0000 (14:42 +0000)
CHANGELOG
cpu/mpc8xx/fec.c

index 9720c02ad4d6f37162f6fac4dd1119df61f97a7e..2a4dcc859fc21b42cf7b44b653f4a4c7593ae150 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,13 @@
 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.
index a8fa98185545c116bc7545397240b7f5c2fb80ce..dd22679efcd72250f4b41bc9dbdefbedeab3c01f 100644 (file)
@@ -363,6 +363,14 @@ static int fec_init(struct eth_device* dev, bd_t * bd)
        /* 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)) {
                /*
@@ -615,6 +623,14 @@ void mii_init (bd_t *bd)
        /* 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)) {
                /*