diff options
author | Vaibhav Jain <vaibhav@linux.vnet.ibm.com> | 2017-05-19 15:19:09 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-26 15:55:23 +1000 |
commit | c873cc7bc58b05f1aa4554f6338f430169efa1db (patch) | |
tree | a5c72e97420cbc675aab4c3ea1469c8a53473783 /include/fsp.h | |
parent | 6d324ae99b9e745d7c57232befca2badfd551d40 (diff) | |
download | skiboot-c873cc7bc58b05f1aa4554f6338f430169efa1db.zip skiboot-c873cc7bc58b05f1aa4554f6338f430169efa1db.tar.gz skiboot-c873cc7bc58b05f1aa4554f6338f430169efa1db.tar.bz2 |
fsp/tpo: Provide support for disabling TPO alarm
This patch adds support for disabling a preconfigured
Timed-Power-On(TPO) alarm on FSP based systems. Presently once a TPO alarm
is configured from the kernel it will be triggered even if its
subsequently disabled.
With this patch a TPO alarm can be disabled by passing
y_m_d==hr_min==0 to fsp_opal_tpo_write(). A branch is added to the
function to handle this case by sending FSP_CMD_TPO_DISABLE message to
the FSP instead of usual FSP_CMD_TPO_WRITE message. The kernel is
expected to call opal_tpo_write() with y_m_d==hr_min==0 to request
opal to disable TPO alarm.
Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/fsp.h')
-rw-r--r-- | include/fsp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsp.h b/include/fsp.h index e7f6a7b..1d877d8 100644 --- a/include/fsp.h +++ b/include/fsp.h @@ -350,6 +350,7 @@ #define FSP_CMD_HYP_MDST_TABLE 0x1ce2600 /* HV->FSP: Sapphire MDST table */ #define FSP_CMD_TPO_READ 0x1ce4201 /* FSP->HV */ #define FSP_CMD_TPO_WRITE 0x1ce4301 /* HV->FSP */ +#define FSP_CMD_TPO_DISABLE 0x1ce4400 /* HV->FSP */ #define FSP_CMD_STATUS_REQ 0x1ce4800 /* HV->FSP: Request normal panel status */ #define FSP_CMD_STATUS_EX1_REQ 0x1ce4802 /* HV->FSP: Request extended 1 panel status */ #define FSP_CMD_STATUS_EX2_REQ 0x1ce4803 /* HV->FSP: Request extended 2 panel status */ |