aboutsummaryrefslogtreecommitdiff
path: root/hdata/hdata.h
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-04-06 14:02:10 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-05-07 17:42:34 +1000
commit13168bbbbb1f41f63c9a53f6772868ba02726d5b (patch)
tree4f333a315d3437dbb0634def80b24d4a80a6b892 /hdata/hdata.h
parentf30f196e5c03fc6ffef0f240c74e08e44ceb66b5 (diff)
downloadskiboot-13168bbbbb1f41f63c9a53f6772868ba02726d5b.zip
skiboot-13168bbbbb1f41f63c9a53f6772868ba02726d5b.tar.gz
skiboot-13168bbbbb1f41f63c9a53f6772868ba02726d5b.tar.bz2
FSP/hdata: Populate System Attention Indicator location code
On FSP based machine, FSP controls System Attention Indicator. This indicator detail (location code) is passed to OPAL via HDAT. OPAL can get/set this indicator via normal MBOX command. This patch takes care of parsing SLCA entry and populating device tree with SAI location code. Device Tree: We create '/ibm,opal/led' node which contains all location code LED information. 'led-types' property under each node tells LED type. For SAI indicator 'led-types' property will be 'attention'. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/hdata.h')
-rw-r--r--hdata/hdata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hdata/hdata.h b/hdata/hdata.h
index 79cc576..567927c 100644
--- a/hdata/hdata.h
+++ b/hdata/hdata.h
@@ -43,6 +43,7 @@ extern const struct slca_entry *slca_get_entry(uint16_t slca_index);
extern const char *slca_get_vpd_name(uint16_t slca_index);
extern const char *slca_get_loc_code_index(uint16_t slca_index);
extern void slca_vpd_add_loc_code(struct dt_node *node, uint16_t slca_index);
+extern void slca_dt_add_sai_node(void);
extern bool hservices_from_hdat(const void *fdt, size_t size);