Re: [U-Boot-Users] Teridian Phy Support tr78q21x3

2008-06-18 Thread Manuel Sahm
Hello,

I found out, why the Generic MACB MII driver for the AT91SAM9260 doesn´t 
work.

The problem is inside the file

/board/atmel/at91sam9260ek/at91sam9260ek.c


at91_set_B_periph(AT91_PIN_PA23, 0);   //ETX2
at91_set_B_periph(AT91_PIN_PA24, 0);   //ETX3

These lines are multiplexed with the TWI Interface of the AT91SAM9260 
and on the development board (AT91SAM9260EK) there is an EEPROM connected.
Instead of lines PA23 and PA24 you have to use

at91_set_B_periph(AT91_PIN_PA10, 0);   //ETX2
at91_set_B_periph(AT91_PIN_PA11, 0);   //ETX3

which have the same abilites.

Then it works perfect !


Is it possible to change this in the official U-Boot tree ?

Hopefully someone from denx.de could do that and I hope for a positive 
reply - Thank you


Anatolij Gustschin schrieb:
 Hello,

 Manuel Sahm wrote:

   
 In the U-Boot 1.3.3 there is already this patch included
 

 yes, of course this is already included. I meant you have to
 _reverse_ this patch (or in other words un-apply it, patch -p1 -R),
 as it was not included in U-Boot 1.3.0 and as you sad, with U-Boot
 1.3.0 ethernet did work. Un-applying this patch and test without it
 could quickly show if MII mode configuration was your problem.

   
 But I see another problem:

 I uses the AT91SAM9260 microcontroller so I defined in the header:

 #define CONFIG_AT91SAM9260   1

 Instead of the Davicom Phy (RMII), which is used in the DevBoard
 AT91SAM9260EK I want to use the Teridian Phy(MII), so I write in the header:

 #undef   CONFIG_RMII



 Now have a look at the patch:

 +#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
 + defined(CONFIG_AT91SAM9263)
 + macb_writel(macb, USRIO, MACB_BIT(CLKEN));
 #else
 macb_writel(macb, USRIO, MACB_BIT(MII));
 #endif

 I don´t go to the line : macb_writel(macb, USRIO, MACB_BIT(MII));
 ,because of CONFIG_AT91SAM9260

 BUT I have to go there or not ?
 

 Probably. If you un-apply the patch, you end up in something
 like this:

 #ifdef CONFIG_RMII
   macb_writel(macb, USRIO, 0);
 #else
   macb_writel(macb, USRIO, MACB_BIT(MII));
 #endif

 and this is the macb.c code in U-Boot-1.3.0 (drivers/macb.c:419).

 Best regards,
 Anatolij

   

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Teridian Phy Support tr78q21x3

2008-06-18 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote:
 
 I found out, why the Generic MACB MII driver for the AT91SAM9260 doesn´t
 work.
...
 Instead of lines PA23 and PA24 you have to use
 
 at91_set_B_periph(AT91_PIN_PA10, 0);   //ETX2
 at91_set_B_periph(AT91_PIN_PA11, 0);   //ETX3
 
 which have the same abilites.

can you please submit a proper patch?

See http://www.denx.de/wiki/UBoot/Patches for instructions.

 Hopefully someone from denx.de could do that and I hope for a positive
 reply - Thank you

This will behandled by the AT91 custodian - but please submit a proper
patch...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
He'd been wrong, there _was_ a light at the end of the tunnel, and it
was a flamethrower. - Terry Pratchett, _Mort_

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Teridian Phy Support tr78q21x3

2008-06-11 Thread Manuel Sahm

Hello,

In the U-Boot 1.3.3 there is already this patch included

But I see another problem:

I uses the AT91SAM9260 microcontroller so I defined in the header:

#define CONFIG_AT91SAM9260   1

Instead of the Davicom Phy (RMII), which is used in the DevBoard 
AT91SAM9260EK I want to use the Teridian Phy(MII), so I write in the header:


#undef   CONFIG_RMII



Now have a look at the patch:

+#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
+ defined(CONFIG_AT91SAM9263)
+ macb_writel(macb, USRIO, MACB_BIT(CLKEN));
#else
macb_writel(macb, USRIO, MACB_BIT(MII));
#endif

I don´t go to the line : macb_writel(macb, USRIO, MACB_BIT(MII)); 
,because of CONFIG_AT91SAM9260


BUT I have to go there or not ?

Thank you very much

Best regards

Manuel


Anatolij Gustschin schrieb:

Hello,

Manuel Sahm wrote:

  

I added a Teridian Phy Driver (tr78q21x3) to the Uboot version 1.3.0
It works. (even in linux when I use the linux generic macb driver)

If I try to use the latest u-boot-version (1.3.3) with the macb driver - 
ethernet doesn?t work (in u-boot and linux).

I don?t know how to add my phy driver to the latest u-boot version !



Maybe it is not a phy driver problem? Teridian phy 78q21x3 supports only
MII mode. Reverse the following patch locally and check if ethernet works
again:

http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blobdiff_plain;f=drivers/net/macb.c;h=e5733f6e5b23c6ad7a05dfbda0b5a3d783f701f7;hp=6657d22926b55f4000c03095bb9b87af53247056;hb=8e429b3eee23927c1222679f6b6f53667b21595c;hpb=422b1a01602b6e2fbf8444a1192c7ba31461fd4c

Best regards,
Anatolij

  
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Teridian Phy Support tr78q21x3

2008-06-11 Thread Anatolij Gustschin
Hello,

Manuel Sahm wrote:

 In the U-Boot 1.3.3 there is already this patch included

yes, of course this is already included. I meant you have to
_reverse_ this patch (or in other words un-apply it, patch -p1 -R),
as it was not included in U-Boot 1.3.0 and as you sad, with U-Boot
1.3.0 ethernet did work. Un-applying this patch and test without it
could quickly show if MII mode configuration was your problem.

 But I see another problem:
 
 I uses the AT91SAM9260 microcontroller so I defined in the header:
 
 #define CONFIG_AT91SAM9260   1
 
 Instead of the Davicom Phy (RMII), which is used in the DevBoard
 AT91SAM9260EK I want to use the Teridian Phy(MII), so I write in the header:
 
 #undef   CONFIG_RMII
 
 
 
 Now have a look at the patch:
 
 +#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
 + defined(CONFIG_AT91SAM9263)
 + macb_writel(macb, USRIO, MACB_BIT(CLKEN));
 #else
 macb_writel(macb, USRIO, MACB_BIT(MII));
 #endif
 
 I don´t go to the line : macb_writel(macb, USRIO, MACB_BIT(MII));
 ,because of CONFIG_AT91SAM9260
 
 BUT I have to go there or not ?

Probably. If you un-apply the patch, you end up in something
like this:

#ifdef CONFIG_RMII
macb_writel(macb, USRIO, 0);
#else
macb_writel(macb, USRIO, MACB_BIT(MII));
#endif

and this is the macb.c code in U-Boot-1.3.0 (drivers/macb.c:419).

Best regards,
Anatolij

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: [EMAIL PROTECTED]

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Teridian Phy Support tr78q21x3

2008-06-10 Thread Manuel Sahm
Hello,
I?m using a at91sam9260 Microcontroller.

I added a Teridian Phy Driver (tr78q21x3) to the Uboot version 1.3.0
It works. (even in linux when I use the linux generic macb driver)

If I try to use the latest u-boot-version (1.3.3) with the macb driver - 
ethernet doesn?t work (in u-boot and linux).
I don?t know how to add my phy driver to the latest u-boot version !

Is anybody out there who would be able to insert the phy driver in the 
latest u-boot version (tree) - I would offer my driver for anybody...

Please reply

Thank you

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Teridian Phy Support tr78q21x3

2008-06-10 Thread Anatolij Gustschin
Hello,

Manuel Sahm wrote:

 I added a Teridian Phy Driver (tr78q21x3) to the Uboot version 1.3.0
 It works. (even in linux when I use the linux generic macb driver)
 
 If I try to use the latest u-boot-version (1.3.3) with the macb driver - 
 ethernet doesn?t work (in u-boot and linux).
 I don?t know how to add my phy driver to the latest u-boot version !

Maybe it is not a phy driver problem? Teridian phy 78q21x3 supports only
MII mode. Reverse the following patch locally and check if ethernet works
again:

http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blobdiff_plain;f=drivers/net/macb.c;h=e5733f6e5b23c6ad7a05dfbda0b5a3d783f701f7;hp=6657d22926b55f4000c03095bb9b87af53247056;hb=8e429b3eee23927c1222679f6b6f53667b21595c;hpb=422b1a01602b6e2fbf8444a1192c7ba31461fd4c

Best regards,
Anatolij


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users