From: Wolfgang Denk Date: Wed, 17 Dec 2008 23:30:21 +0100 Subject: [U-Boot] [PATCH 1/2 V2] at91rm9200: rename lowlevel init value to CONFIG_SYS_ In-Reply-To: <20081217214818.GC10620@game.jcrosoft.org> 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> Message-ID: <20081217223021.8E9C78356976@gemini.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 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 Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Any sufficiently advanced technology is indistinguishable from magic. - Arthur C. Clarke