aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMamatha Inamdar <mamatha4@linux.vnet.ibm.com>2014-08-13 13:50:08 +0530
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-13 18:39:25 +1000
commit8c5756aba3a9331356e3abeac39d6ceacc65914b (patch)
treeaff1b7b5e0a48e17e4ac026914111e11ec1e7fb6 /include
parentbb8be0ec098a57796776b8a1d1fb49a220a539d8 (diff)
downloadskiboot-8c5756aba3a9331356e3abeac39d6ceacc65914b.zip
skiboot-8c5756aba3a9331356e3abeac39d6ceacc65914b.tar.gz
skiboot-8c5756aba3a9331356e3abeac39d6ceacc65914b.tar.bz2
fsp/tpo: Enable Timed power on (TPO) support
This patch enabled TPO sequence handling in Sapphire. Timed power on notification comes from the user through set_poweron_time tool. After receiving a valid TPO from user, Sapphire sends a request to FSP through maibox command to set TPO. FSP will set TPO and power on the system as per the TPO set by the user. [ Removed global read_data, removed writing to NULL pointers, fixed a couple of memory leaks ... --BenH ] Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/fsp.h4
-rw-r--r--include/opal.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/include/fsp.h b/include/fsp.h
index 8e02ade..58ea36a 100644
--- a/include/fsp.h
+++ b/include/fsp.h
@@ -69,6 +69,8 @@
#define FSP_STAUS_INVALID_HMC_ID 0x51
#define FSP_STATUS_SPCN_ERROR 0xA8 /* SPCN error */
#define FSP_STATUS_INVALID_LC 0xC0 /* Invalid location code */
+#define FSP_STATUS_TOD_RESET 0xA9 /* TOD reset due to invalid state at POR */
+#define FSP_STATUS_TOD_PERMANENT_ERROR 0xAF /* Permanent error in TOD */
/*
* FSP registers
@@ -361,6 +363,8 @@
#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 */
+#define FSP_CMD_TPO_WRITE 0x1ce4301 /* HV->FSP */
+#define FSP_CMD_TPO_READ 0x1ce4201 /* FSP->HV */
/*
* Class 0xD2
diff --git a/include/opal.h b/include/opal.h
index 10213e5..eac7eb6 100644
--- a/include/opal.h
+++ b/include/opal.h
@@ -138,7 +138,9 @@
#define OPAL_SLW_SET_REG 100
#define OPAL_REGISTER_DUMP_REGION 101
#define OPAL_UNREGISTER_DUMP_REGION 102
-#define OPAL_LAST 102
+#define OPAL_WRITE_TPO 103
+#define OPAL_READ_TPO 104
+#define OPAL_LAST 104
#ifndef __ASSEMBLY__