From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Vorontsov Date: Wed, 1 Oct 2008 01:56:05 +0400 Subject: [U-Boot] [PATCH 4/5] net: tsec: export tsec_info In-Reply-To: <2acbd3e40809301215x266b2e06q2dd130fa49c7da57@mail.gmail.com> References: <20080930162737.GD12032@oksana.dev.rtsoft.ru> <2acbd3e40809301215x266b2e06q2dd130fa49c7da57@mail.gmail.com> Message-ID: <20080930215605.GA14302@oksana.dev.rtsoft.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Sep 30, 2008 at 02:15:00PM -0500, Andy Fleming wrote: > On Tue, Sep 30, 2008 at 11:27 AM, Anton Vorontsov > wrote: > > We'll need the exported tsec_info to fix up the phy addresses and > > tsecs' flags based on the hardware reset configuration words. Thus > > we'll use the tsec_info very early and just once at boot time, so > > network code won't notice it. > > > > Signed-off-by: Anton Vorontsov > > > Hm. The other boards that needed to change this structure just passed > in a different structure. Modifying the default structure is not > really the intended purpose of that structure. Instead, just use the > macros to create your own structure, and then modify that. Ah, I see... I should implement board_eth_init(). (didn't know that it disables cpu_eth_init()). Thanks for the hint. -- Anton Vorontsov email: cbouatmailru at gmail.com irc://irc.freenode.net/bd2