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