aboutsummaryrefslogtreecommitdiff
path: root/hdata/spira.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/spira.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/spira.h')
-rw-r--r--hdata/spira.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hdata/spira.h b/hdata/spira.h
index e98edbd..0916fe3 100644
--- a/hdata/spira.h
+++ b/hdata/spira.h
@@ -611,6 +611,7 @@ struct slca_entry {
uint8_t fru_id[2]; /* ASCII VPD ID */
#define SLCA_ROOT_VPD_ID VPD_ID('V','V')
#define SLCA_SYSTEM_VPD_ID VPD_ID('S','V')
+#define SLCA_SAI_INDICATOR_ID VPD_ID('S','A')
__be16 parent_index; /* Parent entry index */
uint8_t flags;
#define SLCA_FLAG_NON_FUNCTIONAL 0x02 /* For redundant entries */