public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Manuel Sahm <Manuel.Sahm@feig.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Teridian Phy Support tr78q21x3
Date: Wed, 18 Jun 2008 09:39:05 +0200	[thread overview]
Message-ID: <4858BB99.8020703@feig.de> (raw)
In-Reply-To: <484F8220.1050606@denx.de>

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

  reply	other threads:[~2008-06-18  7:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-10  9:56 [U-Boot-Users] Teridian Phy Support tr78q21x3 Manuel Sahm
2008-06-10 20:35 ` Anatolij Gustschin
2008-06-11  6:25   ` Manuel Sahm
2008-06-11  7:43     ` Anatolij Gustschin
2008-06-18  7:39       ` Manuel Sahm [this message]
2008-06-18  7:59         ` Wolfgang Denk
2008-07-08  8:03         ` [U-Boot-Users] [PATCH] at91: Fix to enable using Teridian MII phy (78Q21x3) with at91sam9260 Anatolij Gustschin
     [not found]           ` <4874B6AF.40400@feig.de>
2008-07-09 23:00             ` Anatolij Gustschin
2008-07-10  6:34               ` Manuel Sahm
2008-07-09 23:15           ` [U-Boot-Users] [PATCH v2] " Anatolij Gustschin
2008-07-09 23:29             ` Ben Warren
2008-07-13 12:42             ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4858BB99.8020703@feig.de \
    --to=manuel.sahm@feig.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox