public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] add initial support for bluegiga apx4devkit
Date: Wed, 14 Dec 2011 17:39:40 +0200	[thread overview]
Message-ID: <4EE8C33C.40103@bluegiga.com> (raw)
In-Reply-To: <4EE8BAEF.5040007@denx.de>

On 12/14/2011 05:04 PM, Stefano Babic wrote:
>>>> +void imx_get_mac_from_fuse(char *mac)
>>>> +{
>>>> +    memset(mac, 0, 6);
>>>> +}
>>>
>>> This is wrong, and surely you do not get the address from fuses.
>>
>> What is correct way to get ethernet mac from environment instead of
>> fuses? FEC driver seems to call imx_get_mac_from_fuse always. Should it
>> be changed to use a new configuration option? Or should we try to read
>> mac from fuses which are zeros and then fall back to environment?
>
> I have supposed that new Freescale's SOCs are always delivered with a
> valid MAC address in the fuses. Some IMX SOCs have no fuse at all, and
> the MAC address is only taken from the environment, such as the MX35.

At least our i.MX28 SoCs doesn't have any fuses preprogrammed. MX28EVK 
seems to have CUST0 and CUST1 preprogrammed.

> I see here a couple of points. First at all, imx_get_mac_from_fuse
> should be factorized between your board and m28evk. Maybe we need some
> CONFIG_ to add the vendor part, but reading from fuse itself can be
> shared code. and if the values read are all zeroes, we have the fallback
> to the environment ethaddr variable.

I will try to do some factorization.

Our product is more like an OEM thing so we try to avoid programming any 
fuses as our customers might want to do that with their own mac address.

--
Veli-Pekka Peltola

      reply	other threads:[~2011-12-14 15:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 14:54 [U-Boot] [PATCH] add initial support for bluegiga apx4devkit Veli-Pekka Peltola
2011-12-13 15:59 ` Fabio Estevam
2011-12-14 13:20 ` Stefano Babic
2011-12-14 14:27   ` Veli-Pekka Peltola
2011-12-14 15:04     ` Stefano Babic
2011-12-14 15:39       ` Veli-Pekka Peltola [this message]

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=4EE8C33C.40103@bluegiga.com \
    --to=veli-pekka.peltola@bluegiga.com \
    --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