summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2007-05-27 16:51:48 +0200
committerBartlomiej Sieka <tur@semihalf.com>2007-05-27 16:51:48 +0200
commita11c0b85dc3664bb3c1e781137118730c8f619ab (patch)
treea23d0232443f5bd4aa2dc6f2c4ff254a9f141dc2 /include/configs
parent7d98ba770a7eaefa29ce927f31a0956df85bf650 (diff)
downloadu-boot-imx-a11c0b85dc3664bb3c1e781137118730c8f619ab.zip
u-boot-imx-a11c0b85dc3664bb3c1e781137118730c8f619ab.tar.gz
u-boot-imx-a11c0b85dc3664bb3c1e781137118730c8f619ab.tar.bz2
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/configs')
-rw-r--r--include/configs/motionpro.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/configs/motionpro.h b/include/configs/motionpro.h
index e6e0eb1..5c2b1cd 100644
--- a/include/configs/motionpro.h
+++ b/include/configs/motionpro.h
@@ -310,6 +310,28 @@
/*
+ * Status LED configuration
+ */
+#define CONFIG_STATUS_LED /* Status LED enabled */
+#define CONFIG_BOARD_SPECIFIC_LED
+
+#define ENABLE_GPIO_OUT 0x00000024
+#define LED_ON 0x00000010
+
+#ifndef __ASSEMBLY__
+/*
+ * In case of Motion-PRO, a LED is identified by its corresponding
+ * GPT Enable and Mode Select Register.
+ */
+typedef volatile unsigned long * led_id_t;
+
+extern void __led_init(led_id_t id, int state);
+extern void __led_toggle(led_id_t id);
+extern void __led_set(led_id_t id, int state);
+#endif /* __ASSEMBLY__ */
+
+
+/*
* Environment settings
*/
#define CFG_ENV_IS_IN_FLASH 1