diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2015-04-06 14:02:29 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-05-07 17:42:34 +1000 |
commit | bfa6a82a1e54d575c745eecf6baec03e825282cf (patch) | |
tree | 78e24ffeeae224115a0965506c9c4b0ce5e696ee /include | |
parent | 0a075bd3b2bea7ece8993e49981ca19fac18b9a8 (diff) | |
download | blackbird-skiboot-bfa6a82a1e54d575c745eecf6baec03e825282cf.tar.gz blackbird-skiboot-bfa6a82a1e54d575c745eecf6baec03e825282cf.zip |
FSP/LED: Add system attention indicator support
SAI is controlled by FSP. This patch adds support to get/set
this indicator. Also update OPAL interface so that playload
can read/set this indicator.
During init, we read this indicator state using MBOX command.
OPAL uses MBOX interface to update this SAI.
FSP sends update notification whenever there is change in SAI
state (except for OPAL initiates updates). We use the notification
to update cached SAI state.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsp.h | 12 | ||||
-rw-r--r-- | include/opal-api.h | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/include/fsp.h b/include/fsp.h index f461575f..c74996d4 100644 --- a/include/fsp.h +++ b/include/fsp.h @@ -338,6 +338,8 @@ #define FSP_RSP_ERRLOG_PHYP_ACK 0x0ce8800 /* FSP->HV */ #define FSP_CMD_ERRLOG_GET_PLID 0x0ce0900 /* FSP->HV: Get PLID */ #define FSP_RSP_ERRLOG_GET_PLID 0x0ce8900 /* HV->FSP */ +#define FSP_CMD_SA_INDICATOR 0x1ce1000 /* HV->FSP: read/update SAI */ +#define FSP_RSP_SA_INDICATOR 0x0ce9000 /* FSP->HV */ #define FSP_CMD_QUERY_SPARM 0x1ce1200 /* HV->FSP: System parameter query */ #define FSP_RSP_QUERY_SPARM 0x0ce9200 /* FSP->HV: System parameter resp */ #define FSP_CMD_SET_SPARM_1 0x1ce1301 /* HV->FSP: Set system parameter */ @@ -370,6 +372,16 @@ #define FSP_CMD_PANELSTATUS_EX1 0x0ce5c02 /* FSP->HV */ #define FSP_CMD_PANELSTATUS_EX2 0x0ce5c03 /* FSP->HV */ +/* SAI read/update sub commands */ +#define FSP_LED_RESET_REAL_SAI 0x00 +#define FSP_LED_READ_REAL_SAI 0x02 +#define FSP_LED_RESET_PARTITION_SAI 0x80 +#define FSP_LED_SET_PARTITION_SAI 0x81 +#define FSP_LED_READ_PARTITION_SAI 0x82 +#define FSP_LED_READ_PLAT_SAI 0x83 +#define FSP_LED_RESET_PLAT_SAI 0x84 +#define FSP_LED_SET_PLAT_SAI 0x85 + /* * Class 0xD2 */ diff --git a/include/opal-api.h b/include/opal-api.h index 1698311a..29421c19 100644 --- a/include/opal-api.h +++ b/include/opal-api.h @@ -376,7 +376,8 @@ enum OpalPciMaskAction { enum OpalSlotLedType { OPAL_SLOT_LED_TYPE_ID = 0, /* IDENTIFY LED */ OPAL_SLOT_LED_TYPE_FAULT = 1, /* FAULT LED */ - OPAL_SLOT_LED_TYPE_MAX = 2 + OPAL_SLOT_LED_TYPE_ATTN = 2, /* System Attention LED */ + OPAL_SLOT_LED_TYPE_MAX = 3 }; enum OpalSlotLedState { |