From: wdenk Date: Sat, 10 Aug 2002 14:42:23 +0000 (+0000) Subject: Fix "No PHY device found" problem on ICU862 boards X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cd9b4441c4183e00864e397ff4b5f859abf898ea;p=users%2Frw%2Fppcboot.git Fix "No PHY device found" problem on ICU862 boards --- diff --git a/CHANGELOG b/CHANGELOG index 9720c02..2a4dcc8 100644 --- 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. diff --git a/cpu/mpc8xx/fec.c b/cpu/mpc8xx/fec.c index a8fa981..dd22679 100644 --- a/cpu/mpc8xx/fec.c +++ b/cpu/mpc8xx/fec.c @@ -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)) { /*