public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 1/1] Re-Submit: Add support for ATMEL AT91SAM9G20EK	board.
Date: Tue, 29 Jul 2008 09:25:12 +0200	[thread overview]
Message-ID: <20080729072512.GA18666@game.jcrosoft.org> (raw)
In-Reply-To: <f8328f7c0807282157i7502b04bk7907214e1d872769@mail.gmail.com>

On 21:57 Mon 28 Jul     , Ben Warren wrote:
> Hi Hong,
> 
> Thanks for all the hard work.  One more thing...
> <snip>
> > +#if defined(CONFIG_CMD_NET)
> > +int board_eth_init(bd_t *bis)
> > +{
> > +       return at91sam9_eth_initialize(bis);
> > +}
> > +#endif
> 
> Here's at91sam9_eth_initialize:
> 
> #if defined(CONFIG_MACB) && defined(CONFIG_CMD_NET)
> void at91sam9_eth_initialize(bd_t *bi)
> {
>     macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
> }
> #endif
> 
> Issues:
> 1. It returns void
> 2. It just calls the MACB initializer.
> 
> Please change your code to:
> 
> extern int macb_eth_initialize(int id, void *regs, unsigned int phy_addr);
> 
> #if defined(CONFIG_MACB) && defined(CONFIG_CMD_NET)
> int board_eth_init(bd_t *bi)
> {
>     return macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
> }
> #endif
> 
> or something like this.  I don't know if AT91_BASE_EMAC is visible
> from this code, so you may need to modify slightly.
Can we do a cpu_eth_init instead?

Best Regards,
J.

  parent reply	other threads:[~2008-07-29  7:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29  2:17 [U-Boot-Users] [PATCH 1/1] Re-Submit: Add support for ATMEL AT91SAM9G20EK board Hong Xu
2008-07-29  2:23 ` Hong Xu
2008-07-29  4:57 ` Ben Warren
2008-07-29  6:19   ` Hong Xu
2008-07-29  7:25   ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2008-07-29  8:01     ` Hong Xu
2008-07-29  9:01       ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-29 11:03         ` [U-Boot-Users] [PATCH] at91sam9: merge ether driver to cpu_eth_init Jean-Christophe PLAGNIOL-VILLARD
2008-07-29 14:24           ` Ben Warren
2008-07-29 14:53             ` Jean-Christophe PLAGNIOL-VILLARD
2008-07-29  9:15       ` [U-Boot-Users] [PATCH 1/1] Re-Submit: Add support for ATMEL AT91SAM9G20EK board Haavard Skinnemoen
2008-07-29 14:13         ` Ben Warren
2008-07-30  7:44           ` Haavard Skinnemoen
2008-07-30 14:20             ` Ben Warren

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=20080729072512.GA18666@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.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