]> git.sur5r.net Git - u-boot/commitdiff
ARM Add blue colour LED to status_led.
authorTom Rix <Tom.Rix@windriver.com>
Fri, 15 May 2009 21:47:12 +0000 (23:47 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:39:49 +0000 (20:39 +0200)
There is exiting support for red,yellow,green but no blue.
The main LED on the zoom2 is a blue LED.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
include/status_led.h
lib_arm/board.c

index 175972a052753f630853a0a3142b2f66c63f1a11..9dbf01fca8ec480afee794bb110892f7951879a0 100644 (file)
@@ -397,6 +397,8 @@ extern void green_LED_on(void);
 extern void    green_LED_off(void);
 extern void    yellow_LED_on(void);
 extern void    yellow_LED_off(void);
+extern void    blue_LED_on(void);
+extern void    blue_LED_off(void);
 #else
        .extern LED_init
        .extern red_LED_on
@@ -405,6 +407,8 @@ extern void yellow_LED_off(void);
        .extern yellow_LED_off
        .extern green_LED_on
        .extern green_LED_off
+       .extern blue_LED_on
+       .extern blue_LED_off
 #endif
 
 #endif /* CONFIG_STATUS_LED    */
index c7768e52893b44523f692d1873a2f2998b0d2232..d86ed22cadb734f6ac5420cdacc5dc5edf4d6370 100644 (file)
@@ -136,6 +136,10 @@ void inline __yellow_LED_on(void) {}
 void inline yellow_LED_on(void)__attribute__((weak, alias("__yellow_LED_on")));
 void inline __yellow_LED_off(void) {}
 void inline yellow_LED_off(void)__attribute__((weak, alias("__yellow_LED_off")));
+void inline __blue_LED_on(void) {}
+void inline blue_LED_on(void)__attribute__((weak, alias("__blue_LED_on")));
+void inline __blue_LED_off(void) {}
+void inline blue_LED_off(void)__attribute__((weak, alias("__blue_LED_off")));
 
 /************************************************************************
  * Init Utilities                                                      *