From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay04.roc.ny.frontiernet.net (relay04.roc.ny.frontiernet.net [66.133.182.167]) by ozlabs.org (Postfix) with ESMTP id 8F94D68957 for ; Sat, 7 Jan 2006 00:59:04 +1100 (EST) Message-ID: <004201c612c6$ee3ede80$6601a8c0@chuck2> From: "Mark Chambers" To: , References: Date: Fri, 6 Jan 2006 08:41:41 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003F_01C6129D.04601910" Subject: Re: How to enable PHY List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_003F_01C6129D.04601910 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >I found that ADS8260 board enables PHY by the following lines of code=20 > >#ifndef CONFIG_ADS8260=20 > /* Enable the PHY.=20 > */=20 > *(volatile uint *)(BCSR_ADDR + 4) &=3D ~BCSR1_FETHIEN;=20 > *(volatile uint *)(BCSR_ADDR + 4) |=3D BCSR1_FETH_RST;=20 >#endif=20 > >Our board does not have BCSR. My question is how to enable PHY for = MPC8260 based customs board without BCSR?=20 If your board does not have the BCSR you can just leave this code out. = Usually, you only need to configure which MDII=20 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 ------=_NextPart_000_003F_01C6129D.04601910 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

>I found=20 that ADS8260 board enables PHY by the following lines of code =
>
>#ifndef=20 CONFIG_ADS8260
>  =    =20   /* Enable the PHY.
> =20       */
> =20       *(volatile uint *)(BCSR_ADDR + 4) &=3D=20 ~BCSR1_FETHIEN;
>  =    =20   *(volatile uint *)(BCSR_ADDR + 4) |=3D =  BCSR1_FETH_RST;=20
>#endif
>
>Our board does not have BCSR. = My question=20 is how to enable PHY for MPC8260 based customs board without BCSR? =
 
If your board does not have the BCSR = you can=20 just leave this code out.  Usually, you only need = to configure=20 which MDII
interface your PHY is connected to and which IRQ it uses.  But of course I don't = know how=20 your PHY is wired up on your
custom board.
 
Mark Chambers


 
------=_NextPart_000_003F_01C6129D.04601910--