aboutsummaryrefslogtreecommitdiff
path: root/include/status_led.h
diff options
context:
space:
mode:
authorBartlomiej Sieka2007-05-27 16:51:48 +0200
committerBartlomiej Sieka2007-05-27 16:51:48 +0200
commita11c0b85dc3664bb3c1e781137118730c8f619ab (patch)
treea23d0232443f5bd4aa2dc6f2c4ff254a9f141dc2 /include/status_led.h
parent7d98ba770a7eaefa29ce927f31a0956df85bf650 (diff)
Motion-PRO: Add LED support.
Signed-off-by: Jan Wrobel <wrr@semihalf.com> Signed-off-by: Marian Balakowicz <m8@semihalf.com> Acked-by: Bartlomiej Sieka <tur@semihalf.com>
Diffstat (limited to 'include/status_led.h')
-rw-r--r--include/status_led.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/status_led.h b/include/status_led.h
index db4c60fe3f3..71a202fe36e 100644
--- a/include/status_led.h
+++ b/include/status_led.h
@@ -355,6 +355,18 @@ void status_led_set (int led, int state);
# define STATUS_LED_ACTIVE 0 /* LED on for bit == 0 */
# define STATUS_LED_BOOT 0 /* LED 0 used for boot status */
+#elif defined(CONFIG_MOTIONPRO)
+
+#define STATUS_LED_BIT ((vu_long *) MPC5XXX_GPT6_ENABLE)
+#define STATUS_LED_PERIOD (CFG_HZ / 10)
+#define STATUS_LED_STATE STATUS_LED_BLINKING
+
+#define STATUS_LED_BIT1 ((vu_long *) MPC5XXX_GPT7_ENABLE)
+#define STATUS_LED_PERIOD1 (CFG_HZ / 10)
+#define STATUS_LED_STATE1 STATUS_LED_OFF
+
+#define STATUS_LED_BOOT 0 /* LED 0 used for boot status */
+
#else
# error Status LED configuration missing
#endif