* How to enable PHY
@ 2006-01-06 13:13 batsayan.das
2006-01-06 13:41 ` Mark Chambers
2006-01-06 13:47 ` Alex Zeffertt
0 siblings, 2 replies; 3+ messages in thread
From: batsayan.das @ 2006-01-06 13:13 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
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?
Thanks,
Batsayan Das
Tata Consultancy Services Limited
Mailto: batsayan.das@tcs.com
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
[-- Attachment #2: Type: text/html, Size: 1642 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to enable PHY
2006-01-06 13:13 How to enable PHY batsayan.das
@ 2006-01-06 13:41 ` Mark Chambers
2006-01-06 13:47 ` Alex Zeffertt
1 sibling, 0 replies; 3+ messages in thread
From: Mark Chambers @ 2006-01-06 13:41 UTC (permalink / raw)
To: linuxppc-embedded, batsayan.das
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
>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
[-- Attachment #2: Type: text/html, Size: 2022 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to enable PHY
2006-01-06 13:13 How to enable PHY batsayan.das
2006-01-06 13:41 ` Mark Chambers
@ 2006-01-06 13:47 ` Alex Zeffertt
1 sibling, 0 replies; 3+ messages in thread
From: Alex Zeffertt @ 2006-01-06 13:47 UTC (permalink / raw)
To: batsayan.das; +Cc: linuxppc-embedded
On Fri, 6 Jan 2006 18:43:08 +0530
batsayan.das@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-06 14:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-06 13:13 How to enable PHY batsayan.das
2006-01-06 13:41 ` Mark Chambers
2006-01-06 13:47 ` Alex Zeffertt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).