public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] IXP: add dynamic microcode addr
Date: Wed, 9 Jan 2008 14:23:42 +0100	[thread overview]
Message-ID: <200801091423.43071.sr@denx.de> (raw)
In-Reply-To: <1199882041-14521-1-git-send-email-plagnioj@jcrosoft.com>

On Wednesday 09 January 2008, Jean-Christophe PLAGNIOL-VILLARD wrote:
> allow to load the microde from flash or ram by download it through
> the serial or other.
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>
> diff --git a/cpu/ixp/npe/IxNpeDlImageMgr.c b/cpu/ixp/npe/IxNpeDlImageMgr.c
> index c0e7349..1c47661 100644
> --- a/cpu/ixp/npe/IxNpeDlImageMgr.c
> +++ b/cpu/ixp/npe/IxNpeDlImageMgr.c
> @@ -140,6 +140,13 @@ static UINT32 *IxNpeMicroCodeImageLibrary = (UINT32
> *)CONFIG_IXP4XX_NPE_EXT_UCOD static UINT32 *IxNpeMicroCodeImageLibrary =
> (UINT32 *)IxNpeMicrocode_array; #endif
>
> +static UNIT32* getIxNpeMicroCodeImageLibrary()
> +{
> +	if ((s = getenv("microcodeaddr")) != NULL) {
> +		load_addr = simple_strtoul(s, NULL, 16);
> +	}
> +	else return IxNpeMicroCodeImageLibrary;

	if ((s = getenv("microcodeaddr")) != NULL)
		load_addr = simple_strtoul(s, NULL, 16);
	else
		return IxNpeMicroCodeImageLibrary;

please.

I'm not so sure about the naming of the env variable too. How 
about "npe_ucode"?

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2008-01-09 13:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 12:30 [U-Boot-Users] [PATCH] PATCH: load ixp42x NPE firmware from separate flash block, remove dead code Jean-Christophe PLAGNIOL-VILLARD
2008-01-09 12:34 ` [U-Boot-Users] [PATCH] IXP: add dynamic microcode addr Jean-Christophe PLAGNIOL-VILLARD
2008-01-09 13:23   ` Stefan Roese [this message]
2008-01-09 17:40     ` Jean-Christophe PLAGNIOL-VILLARD
2008-01-09 17:49     ` Jean-Christophe PLAGNIOL-VILLARD
2008-01-09 17:56     ` Jean-Christophe PLAGNIOL-VILLARD
2008-01-09 18:36       ` Stefan Roese
2008-01-10 22:05 ` [U-Boot-Users] [PATCH] PATCH: load ixp42x NPE firmware from separate flash block, remove dead code Michael Schwingen
2008-01-10 23:32   ` Jean-Christophe PLAGNIOL-VILLARD

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=200801091423.43071.sr@denx.de \
    --to=sr@denx.de \
    --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