aboutsummaryrefslogtreecommitdiff
path: root/include/fsp-leds.h
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-04-06 14:00:20 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-05-07 17:42:34 +1000
commit0c9a29edb8504eb49cee3a25dc88e2b7c63672ee (patch)
treef95e229c16bf4d651e52f256755c06e89f1d023f /include/fsp-leds.h
parent119d6e6a55c6b725eea04723d1415ecfcbe26381 (diff)
downloadskiboot-0c9a29edb8504eb49cee3a25dc88e2b7c63672ee.zip
skiboot-0c9a29edb8504eb49cee3a25dc88e2b7c63672ee.tar.gz
skiboot-0c9a29edb8504eb49cee3a25dc88e2b7c63672ee.tar.bz2
FSP/LED: Define macro instead of hardcoding led type
Define macors for LED related device tree property and its values. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/fsp-leds.h')
-rw-r--r--include/fsp-leds.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/fsp-leds.h b/include/fsp-leds.h
index a411636..2b8ed98 100644
--- a/include/fsp-leds.h
+++ b/include/fsp-leds.h
@@ -150,4 +150,24 @@ struct led_set_cmd {
#define LED_CONTROL_LEN 2
#define FSP_LC_STRUCT_FIXED_SZ 0x0a
+/* LED Device tree property names */
+#define DT_PROPERTY_LED_COMPATIBLE "ibm,opal-v3-led"
+#define DT_PROPERTY_LED_NODE "led"
+#define DT_PROPERTY_LED_MODE "led-mode"
+#define DT_PROPERTY_LED_TYPES "led-types"
+#define DT_PROPERTY_LED_LOCATION "led-loc"
+
+/* LED Mode */
+#define LED_MODE_LIGHT_PATH "lightpath"
+#define LED_MODE_GUIDING_LIGHT "guidinglight"
+
+/* LED type */
+#define LED_TYPE_IDENTIFY "identify"
+#define LED_TYPE_FAULT "fault"
+#define LED_TYPE_ATTENTION "attention"
+
+/* LED location */
+#define LED_LOC_ENCLOSURE "enclosure"
+#define LED_LOC_DESCENDENT "descendent"
+
#endif