summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rix <Tom.Rix@windriver.com>2009-05-15 23:47:12 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:39:49 +0200
commit7cdf804f34378b910b4c4edd2dac7e3ca61c0825 (patch)
treea2d32e51daaa91971cbdf8245bfdc20e88e34b54
parentb54384e3ba6b5535751f317fcd3940a53eed0d3a (diff)
ARM Add blue colour LED to status_led.
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>
-rw-r--r--include/status_led.h4
-rw-r--r--lib_arm/board.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/status_led.h b/include/status_led.h
index 175972a05..9dbf01fca 100644
--- a/include/status_led.h
+++ b/include/status_led.h
@@ -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 */
diff --git a/lib_arm/board.c b/lib_arm/board.c
index c7768e528..d86ed22ca 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -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 *