From: Michael Durrant <mdurrant@arcturusnetworks.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] ColdFire/M68K board.c initialization / order matters [PATCH] -- resent in git format
Date: Thu, 21 Jan 2010 11:12:25 -0500 [thread overview]
Message-ID: <4B587CE9.3040401@arcturusnetworks.com> (raw)
In-Reply-To: <4B579DB4.6050808@gmail.com>
Ben Warren wrote:
> Michael Durrant wrote:
>> Ben Warren wrote:
>>
>>> Hi Michael,
>>>
>>> Michael Durrant wrote:
>>>
>>>> lib_m68k_board.patch
>>>> - eth_init() requires eth_current which is initialized in
>>>> eth_initialize()
>>>> so eth_initialize (bd) should be called first then eth_init(bd)
>>>>
>>>>
>>> Actually, eth_init() shouldn't be called in board.c at all.
>>>
>>
>> Ok. I am open to suggestions here.
>>
>> Here is our rational for the change. We moved the eth_init()
>> previously before eth_initialize (bd) to after as the eth_initialize
>> over writes the current pointer. Our usage case is to ensure
>> the Ethernet MAC address is retrieved from the eeprom and
>> is used to initialized into the FEC registers in the MCF5282
>> before executing the customers application code.
>> Since MAC initialization normally only happens when u-boot
>> makes use of the Ethernet for network services such as ping
>> or tftp we saw using eth_init() in board.c as an easy way to
>> ensure the FEC registers are set up.
>>
>>
> U-boot policy is that unused hardware is also un-initialized. In your
> instance, if you're not going to use the network controller in U-boot,
> you don't get to program its MAC address. You'll find this has been
> discussed ad nauseum on this mailing list.
>
> Your options are to either use the FEC or read the EEPROM in the
> customer application.
Thanks for the feedback. I agree with supporting the existing
policy. That said ... both Microblaze and Coldfire/M68K call
eth_init() in board.c already.
Regards,
Michael Durrant
>> Regards,
>> Michael Durrant
>>
>>
> regards,
> Ben
>
>
prev parent reply other threads:[~2010-01-21 16:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-19 20:50 [U-Boot] ColdFire/M68K board.c initialization / order matters [PATCH] Michael Durrant
2010-01-20 18:33 ` [U-Boot] ColdFire/M68K board.c initialization / order matters [PATCH] -- resent in git format Michael Durrant
2010-01-20 22:08 ` Ben Warren
2010-01-20 23:54 ` Michael Durrant
2010-01-21 0:20 ` Ben Warren
2010-01-21 16:12 ` Michael Durrant [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=4B587CE9.3040401@arcturusnetworks.com \
--to=mdurrant@arcturusnetworks.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.