From: Wolfgang Denk Date: Mon, 09 Jun 2003 12:07:40 +0200 Subject: [U-Boot-Users] Status LEDs status? In-Reply-To: Your message of "Mon, 09 Jun 2003 12:26:11 +0300." <3EE452B3.8000603@intracom.gr> Message-ID: <20030609100745.1B67EC5FD7@atlas.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 Hi, in message <3EE452B3.8000603@intracom.gr> you wrote: > > I face the following problem. In a new version of my > board with a mpc850 the location of the status leds > moved to an external register, instead of being on > a CPU port. > > However the status LED code assumes that the LEDs > are on a port. That's because so far all boards where support for the status LED has been enabled fall intot his group. Feel free to add your own version. > As I scanned the other cpu directories I saw that > the status led code is copied in each of them. This is not correct. There is a "status_led.c" file only in the CPU directories for 5xx, 8xx and 82xx CPUs. These are pretty similar as far as the status LED is affected. > I dont want to special case the status_led code with > my board, so I'm inclined to make a new status led > interface in the common or drivers directory. I think this should go to drivers/ . > IMHO the duplication of the status led code and it's > placement in the cpu directory is not very intuitive. But the current implementation is CPU dependend. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de Love sometimes expresses itself in sacrifice. -- Kirk, "Metamorphosis", stardate 3220.3