[U-Boot] [PATCH 5/5] ZOOM2 Add led support.

Tom Tom.Rix at windriver.com
Thu Apr 30 05:41:24 CEST 2009


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



More information about the U-Boot mailing list