From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Sahm Date: Wed, 11 Jun 2008 08:25:23 +0200 Subject: [U-Boot-Users] Teridian Phy Support tr78q21x3 In-Reply-To: <484EE57C.3070603@denx.de> References: <484E4FC8.9000004@feig.de> <484EE57C.3070603@denx.de> Message-ID: <484F6FD3.5050003@feig.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.denx.de/pipermail/u-boot/attachments/20080611/3ea0b495/attachment.htm