[U-Boot-Users] [PATCH] IXP: add dynamic microcode addr

Stefan Roese sr at denx.de
Wed Jan 9 14:23:42 CET 2008


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 at 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
=====================================================================




More information about the U-Boot mailing list