From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 9 Jan 2008 18:40:53 +0100 Subject: [U-Boot-Users] [PATCH] IXP: add dynamic microcode addr In-Reply-To: <200801091423.43071.sr@denx.de> References: <1199881811-14259-1-git-send-email-plagnioj@jcrosoft.com> <1199882041-14521-1-git-send-email-plagnioj@jcrosoft.com> <200801091423.43071.sr@denx.de> Message-ID: <20080109174053.GE23358@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 14:23 Wed 09 Jan , Stefan Roese wrote: > 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. Done. > > I'm not so sure about the naming of the env variable too. How > about "npe_ucode"? Why not Best regards, J.