From: Wolfgang Denk Date: Thu, 23 Dec 2010 16:05:13 +0100 Subject: [U-Boot] [PATCH] remove (double) LED initialization in arm920t start.s In-Reply-To: <4D134C08.8090609@emk-elektronik.de> References: <4D0CA427.1070706@scharsoft.de> <4D1340BD.2090206@emk-elektronik.de> <20101223125121.3CA54152437@gemini.denx.de> <4D134C08.8090609@emk-elektronik.de> Message-ID: <20101223150513.9F3DB152437@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 Reinhard Meyer, In message <4D134C08.8090609@emk-elektronik.de> you wrote: > > > Keep the existing code, and just turn the current set of numbers into > > an enum. > > What current code? I meant the existing show_boot_progress() code. > 1. show_boot_progress() is quite close, but has hundreds of values... > Not sure a enum would be useful there, the values have gaps; rather an > errno.h like implementation makes sense there. I think it's just an implementation detail wether you use an enum or #defines here. > 2. the LED current code (in some non-ARM) places > has LED types (BOOT, ...) and LED modes (OFF, BLINK, ON). > That is totally different and quite useless for seven segment and > simple LCDisplays. Right. Note that there is more code when it comes to seven segment and character based LCD displays - please see doc/README.LED_display, include/led-display.h, common/cmd_display.c and drivers/misc/pdsp188x.c on one side, or the highly board specific display code using the same framework in board/a4m072/a4m072.c on the other side. 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 The main thing is the play itself. I swear that greed for money has nothing to do with it, although heaven knows I am sorely in need of money. - Feodor Dostoyevsky