ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Ethernet power on-off from an application
From: Jim Jackson <>
Date: Wed, 13 Apr 2005 22:48:42 +0100 (BST)

I have code to do this. I must really tidy it up and put it on my
web site. If anyone wants the code just email me privately.

I've found that the ether interface can get into a funny very slow state
if just arbitrarily powered off and on. I would recommend ifconfig'ing
eth0 down, and waiting a few secs, before powering off. And on power back
up, wait a few secs before ifconfig'ing it up again.

It really does save quite a lot of electrical power. As does altering the
system clocks down. You can get the ts7200 down about 1 watt and it still
be useful. I have code to change clock configs too.

Jim


On Wed, 13 Apr 2005, 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