How to enable PHY

Alex Zeffertt ajz at cambridgebroadband.com
Sat Jan 7 00:47:35 EST 2006


On Fri, 6 Jan 2006 18:43:08 +0530
batsayan.das at tcs.com wrote:

> 
> Hi,
> 
> I found that ADS8260 board enables PHY by the following lines of
> code
> 
> #ifndef CONFIG_ADS8260
>         /* Enable the PHY.
>         */
>         *(volatile uint *)(BCSR_ADDR + 4) &= ~BCSR1_FETHIEN;
>         *(volatile uint *)(BCSR_ADDR + 4) |=  BCSR1_FETH_RST;
> #endif
> 
> 
> Our board does not have BCSR. My question is how to enable PHY for
> MPC8260 based customs board without BCSR? 

You have to take your PHY out of reset.  How to do this depends on
your board.  On the ADS8260 the PHY reset line goes to the BCSR and
you must write the above to BCSR register 1 to tell it to change the
pin level.

On your board you may need to use GPIO, or you may need to do nothing
at all. Read your schematics!

Regards,

Alex



More information about the Linuxppc-embedded mailing list