[PATCH] BeagleBoard: Added LED driver

Added LED driver using status_led. USR0 is set to monitor the boot
status. USR1 is set to be the green LED.

Included adding configuration and command to the default configuration.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>

Hi jason,

Added LED driver using status_led. USR0 is set to monitor the boot
status. USR1 is set to be the green LED.

Included adding configuration and command to the default configuration.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>

Pushed to u-boot-ti

Dear Jason Kridner,

Added LED driver using status_led. USR0 is set to monitor the boot
status. USR1 is set to be the green LED.

Included adding configuration and command to the default configuration.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>

...

+#ifdef STATUS_LED_GREEN
+void green_LED_off (void)

...

+void green_LED_on (void)

...

We doin't allow CamelCase identifiers.

+ if (!omap_request_gpio(BEAGLE_LED_USR0)) {
+ omap_set_gpio_direction(BEAGLE_LED_USR0, 0);
+ omap_set_gpio_dataout(BEAGLE_LED_USR0, state);

Should you not set dataout _before_ direction? As is, you may drive
the wrong output value for a short time.

+ if (!omap_request_gpio(BEAGLE_LED_USR1)) {
+ omap_set_gpio_direction(BEAGLE_LED_USR1, 0);
+ omap_set_gpio_dataout(BEAGLE_LED_USR1, state);

Ditto.