From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 9 Jan 2008 14:23:42 +0100 Subject: [U-Boot-Users] [PATCH] IXP: add dynamic microcode addr In-Reply-To: <1199882041-14521-1-git-send-email-plagnioj@jcrosoft.com> References: <1199881811-14259-1-git-send-email-plagnioj@jcrosoft.com> <1199882041-14521-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <200801091423.43071.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > 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 =====================================================================