From: Wolfgang Denk Date: Mon, 21 Mar 2011 19:48:19 +0100 Subject: [U-Boot] [PATCH] ARMV7: OMAP3: Add support for Comelit CPS board In-Reply-To: <4D877D80.6060506@comelit.it> References: <1300707767-15682-1-git-send-email-luca.ceresoli@comelit.it> <1300707767-15682-2-git-send-email-luca.ceresoli@comelit.it> <20110321115557.C4631DD9C74@gemini.denx.de> <4D877D80.6060506@comelit.it> Message-ID: <20110321184819.C172EDEE10D@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 Luca Ceresoli, In message <4D877D80.6060506@comelit.it> you wrote: > > > It appears you base this code on an old version of U-Boot. Please > > update your code base first. > > Strange. > > My patch is based on current master, on the latest commit that I see > today on git://git.denx.de/u-boot.git: Sorry. I thought we had cleaned up the config.mk file use for these boards long ago. Seems I was wrong. > > WARNING: Use #include instead of > > #169: FILE: board/comelit/cps/cps.c:39: > > +#include > > I guess I can safely ignore this one. Yes. > > WARNING: Use of volatile is usually wrong: see > Documentation/volatile-considered-harmful.txt > > #1011: FILE: include/configs/omap3_cps.h:305: > > +extern volatile unsigned int boot_flash_env_addr; > > I don't know why it is volatile, but since it's defined this way in > arch/arm/cpu/armv7/omap3/mem.c I think there's a reason. No, this should be removed. See Documentation/volatile-considered-harmful.txt > > We don't accept such config.mk files any more. Please move definition > > into your board config file. > > Meaning I should remove config.mk entirely, right? Right. > > Please name your board just "cps" (or chose a better name). There > > shall be no SoC-prefix in the board names. > > Will be called dig297 in v2. Thanks. > > #defines like these which select a feature shall not have values > > assigned. Remove all these '1' here. Please fix globally. > > > > Ok except for OMAP34XX, since arch/arm/cpu/armv7/start.S at line 114 > does: > > > #if (CONFIG_OMAP34XX) > > Is it intended? > If that's a mistake, I can submit a trivial patch to fix it. Ouch. This is wrong and should be fixed. Yes, please send a (separate) patch for that. 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 My play was a complete success. The audience was a failure.