How to enable PHY

Mark Chambers markc at mail.com
Sat Jan 7 00:41:41 EST 2006


>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? 

If your board does not have the BCSR you can just leave this code out.  Usually, you only need to configure which MDII 
interface your PHY is connected to and which IRQ it uses.  But of course I don't know how your PHY is wired up on your
custom board.

Mark Chambers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060106/9228b002/attachment.htm 


More information about the Linuxppc-embedded mailing list