From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 17 Dec 2008 23:46:24 +0100 Subject: [U-Boot] [PATCH 1/2 V2] at91rm9200: rename lowlevel init value to CONFIG_SYS_ In-Reply-To: <20081217223021.8E9C78356976@gemini.denx.de> References: <20081217143410.GH26222@game.jcrosoft.org> <1229547702-20400-1-git-send-email-plagnioj@jcrosoft.com> <20081217214130.D94288356976@gemini.denx.de> <20081217214818.GC10620@game.jcrosoft.org> <20081217223021.8E9C78356976@gemini.denx.de> Message-ID: <20081217224624.GE10620@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 23:30 Wed 17 Dec , Wolfgang Denk wrote: > Dear Jean-Christophe PLAGNIOL-VILLARD, > > In message <20081217214818.GC10620@game.jcrosoft.org> you wrote: > > > > > > +#define CONFIG_SYS_SDRC_MR_VAL2 0x00000003 /* Load Mode Register */ > > > > +#define CONFIG_SYS_SDRC_MR_VAL3 0x00000000 /* Normal Mode */ > > > > #define SDRC_TR 0xFFFFFF94 > > > > -#define SDRC_TR_VAL 0x000002E0 /* Write refresh rate */ > > > > +#define CONFIG_SYS_SDRC_TR_VAL 0x000002E0 /* Write refresh rate */ > > > > > > I think it is fundamentally wrong to put these #defines in the board's > > > memsetup.S file. The do not belong into some source file, but into the > > > board config file, include/configs/ > > > > > > If we touch this part, should we not do it right, then? > > It's done in the second patch > > Not really. > > Your patch leaves #defines like MC_PUIA, MC_PUP, MC_PUER, MC_ASR, > MC_AASR, ... untouched. These shouldbe fixed, too. > > And your patch fixes only this board. We have the same cruft for > example in cpu/arm920t/at91rm9200/lowlevel_init.S the register cleanup will be done in a third path (the lowlevel_init.S) Best Regards, J.