From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] ZOOM2 Add led support.
Date: Wed, 29 Apr 2009 22:41:24 -0500 [thread overview]
Message-ID: <49F91DE4.808@windriver.com> (raw)
In-Reply-To: <20090429205642.GD522@game.jcrosoft.org>
Jean-Christophe PLAGNIOL-VILLARD wrote:
<snip>
>> +void red_LED_off (void)
>> +{
>> + /* red */
>> + if (!omap_request_gpio(173)) {
>> + omap_set_gpio_direction(173, 0);
>> + omap_set_gpio_dataout(173, 0);
>> + }
>>
> it will be better to do this at the init of the led
>
>
There is no init function.
I did not have one because the init is trivial and the led's are used
for early board debugging.
>> + saved_state[STATUS_LED_RED] = STATUS_LED_OFF;
>> +}
>> +
>> +void blue_LED_off (void)
>> +
>>
<snip>
>> #include <asm/arch/mem.h>
>> #include <asm/arch/mux.h>
>> @@ -78,7 +81,6 @@ int board_init (void)
>> #if defined(CONFIG_STATUS_LED) && defined(STATUS_LED_BOOT)
>> status_led_set (STATUS_LED_BOOT, STATUS_LED_ON);
>> #endif
>> -
>>
> please do not do clean up at the same time
>
>
Please explain.
Tom
next prev parent reply other threads:[~2009-04-30 3:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-28 15:41 [U-Boot] [PATCH 1/5] ZOOM2 Add initial support for Zoom2 Tom Rix
2009-04-28 15:41 ` [U-Boot] [PATCH 2/5] OMAP3 Port kernel omap gpio interface Tom Rix
2009-04-28 15:41 ` [U-Boot] [PATCH 3/5] ZOOM2 Add support for debug board detection Tom Rix
2009-04-28 15:41 ` [U-Boot] [PATCH 4/5] ZOOM2 Add serial support Tom Rix
2009-04-28 15:41 ` [U-Boot] [PATCH 5/5] ZOOM2 Add led support Tom Rix
2009-04-29 20:56 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-30 3:41 ` Tom [this message]
2009-04-29 21:08 ` [U-Boot] [PATCH 4/5] ZOOM2 Add serial support Jean-Christophe PLAGNIOL-VILLARD
2009-04-29 21:10 ` [U-Boot] [PATCH 3/5] ZOOM2 Add support for debug board detection Jean-Christophe PLAGNIOL-VILLARD
2009-04-29 21:11 ` [U-Boot] [PATCH 2/5] OMAP3 Port kernel omap gpio interface Jean-Christophe PLAGNIOL-VILLARD
2009-04-29 21:15 ` [U-Boot] [PATCH 1/5] ZOOM2 Add initial support for Zoom2 Jean-Christophe PLAGNIOL-VILLARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49F91DE4.808@windriver.com \
--to=tom.rix@windriver.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox