ts-7000
[Top] [All Lists]

[ts-7000] Re: Ethernet power on-off from an application

To:
Subject: [ts-7000] Re: Ethernet power on-off from an application
From: "nagi_kann" <>
Date: Thu, 14 Apr 2005 07:22:16 -0000

Hi,

Thanks very much Jesse and Jim. Jim, thanks for the code. It is very
useful to access any of the GPIO regs. You could put it up on the
website or better still in the 'files' section of this newsgroup, I am
sure it will benefit a lot of people. 

Jim pls send the code for slowing down the clock as well.

Thanks and with regards,
- Nagi


--- In  "Jesse Off" <> wrote:
> The PHY power up/down pin is attached to GPIO port H on the EP9302.
 You 
> have to set the data-direction-register for that bit to 'b1 and then
write 
> to the data-register a 'b0 to that bit.  i.e.
> 
> #define PHDDR   0x80840044
> #define PHDR    0x80840040
> 
> // Turn off PHY
> POKE32(PHDDR, 0x4);
> POKE32(PHDR, 0x0);
> 
> To do this from userspace, you'll have to mmap the /dev/mem device.
 You'll 
> want to mmap at 0x80840000 offset since you can only mmap on page 
> boundaries.
> 
> //Jesse Off
> 
> 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU