summaryrefslogtreecommitdiffstats
path: root/include/fsp.h
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-03-08 16:12:47 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-03-20 02:29:07 +1100
commit4abc10f25e39547f3def70cd5b72407e1cc4ee0d (patch)
tree9a2ef92a7b6e1425186e4b034a86ef0eaaa26162 /include/fsp.h
parentc3137a50fb71a253e16b56bb92f62591f288552d (diff)
downloadtalos-skiboot-4abc10f25e39547f3def70cd5b72407e1cc4ee0d.tar.gz
talos-skiboot-4abc10f25e39547f3def70cd5b72407e1cc4ee0d.zip
FSP/LEDS: Add device tree nodes
This patch creates a parent LED device node called 'led' under the root 'opal' device node. This also creates child device nodes under 'led' corresponding to all individual LEDs on the system whether it is an enclosure type or a descendant type with their location code as name. The location code information will be used by the host to enlist and access all the individual LEDs present on the system. The child LED device nodes also have the properties 'led-types' and 'led-loc' representing what kind of LEDs present on the same loation code and whether it is an enclosure type LED or a descendant type LED. Sample device tree output: ibm,opal { .. .. led { compatible = "ibm,opal-v3-led"; phandle = <0x1000006b>; linux,phandle = <0x1000006b>; U78C9.001.RST0027-P1-C1 { led-types = "identify", "fault"; led-loc = "descendent"; phandle = <0x1000006f>; linux,phandle = <0x1000006f>; }; <snip> }; }; Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com> [stewart@linux.vnet.ibm.com: Move create_led_device_nodes to FSP platform.exit] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/fsp.h')
-rw-r--r--include/fsp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsp.h b/include/fsp.h
index b796bfb7..c9604699 100644
--- a/include/fsp.h
+++ b/include/fsp.h
@@ -783,6 +783,7 @@ extern void fsp_init_diag(void);
/* LED */
extern void fsp_led_init(void);
+extern void create_led_device_nodes(void);
/* EPOW */
extern void fsp_epow_init(void);
OpenPOWER on IntegriCloud