]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/configs/motionpro.h
Motion-PRO: Add LED support.
[karo-tx-uboot.git] / include / configs / motionpro.h
index e6e0eb1ff51438949880432c2477a3f19d59647a..5c2b1cdc823be4aa1b9c6c563be06232f887ceac 100644 (file)
 #define CFG_I2C_RTC_ADDR       0x68
 
 
+/*
+ * 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
  */