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] [PATCH 1/1] at91: Update MEESC board support
Date: Fri, 4 Sep 2009 23:13:58 +0200	[thread overview]
Message-ID: <20090904211358.GR30118@game.jcrosoft.org> (raw)
In-Reply-To: <12520673913026-git-send-email-Daniel.Gorsulowski@esd.eu>

> +#ifdef CONFIG_REVISION_TAG
> +u32 get_board_rev(void)
> +{
> +	return hw_rev | 0x100;
> +}
> +#endif
> +
> +int misc_init_r(void)
> +{
> +#ifdef CONFIG_MACB
> +	u32 hwaddr_btm;
> +	u16 hwaddr_top;
> +	u8 mac[6];
> +
> +	/* Set ethernet address */
> +	if (!eth_getenv_enetaddr("ethaddr", mac)) {
> +		puts("Missing environment variable 'ethaddr'\n");
> +        } else {
> +		hwaddr_btm = mac[0] | mac[1] << 8 | mac[2] << 16 | mac[3] << 24;
> +		hwaddr_top = mac[4] | mac[5] << 8;
> +		writel(hwaddr_btm, (void *)(AT91SAM9263_BASE_EMAC + MACB_SA1B));
> +		writel(hwaddr_top, (void *)(AT91SAM9263_BASE_EMAC + MACB_SA1T));
nack this will be done when u-boot will need to use the macb

Best Regards,
J.

  reply	other threads:[~2009-09-04 21:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-04 12:29 [U-Boot] [PATCH 1/1] at91: Update MEESC board support Daniel Gorsulowski
2009-09-04 21:13 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-09-04 22:02   ` Wolfgang Denk
2009-09-07  7:26     ` Daniel Gorsulowski
2009-09-07  7:44       ` Simon Kagstrom
2009-09-09  7:15       ` Daniel Gorsulowski
  -- strict thread matches above, loose matches on Subject: below --
2009-09-09  7:15 Daniel Gorsulowski
2009-09-09  8:58 ` Wolfgang Denk
2009-09-10 14:07   ` Daniel Gorsulowski
2009-09-10 18:41     ` Wolfgang Denk
2009-09-11  7:03       ` Daniel Gorsulowski

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=20090904211358.GR30118@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