Le lundi 07 avril 2008 à 22:23 +0200, Eric BENARD a écrit :
> Stelian Pop a écrit :
> > Le lundi 07 avril 2008 à 16:14 +0200, Sander Vermin a écrit :
> > 
> >>> Did you test it as is ? From what I see in the code, the macb driver
> >>> doesn't care much about the PHY type...
> > 
> >> I did test it, u-boot says no PHY present. I had to change from RMII 
> >> mode to MII mode due to my hardware design.
> > 
> > Ok, so there must be something else in the code which was changed to
> > support your PHY (look for some "isolate" setting like Eric said).
> > You'll need to find out what it is...
> > 
> please find attached a quick and dirty hacked ks8721.c  and the 
> corresponding .h
> It works on an AT91RM9200 with u-boot 1.3.2.

Hmm, if I sed:
        s/KS8721/DM9161/g
and
        s/ks8721/dm9161/g

on your files I find almost no change with regard to the original
version, except:

#define PHY_ADDRESS (1<<5)

and a #if 0 commenting out a bit of the initialisation sequence...

This makes me think it may only be a PHY_ADDRESS issue: what happens if
you change in cpu/arm926ejs/at91sam9/ether.c :

macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);

to

macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 1<<5);

Stelian.
-- 
Stelian Pop <[EMAIL PROTECTED]>


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to