diff options
author | Joel Stanley <joel@jms.id.au> | 2014-09-11 15:43:51 +0930 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-10-01 14:23:06 +1000 |
commit | 1e487eb0dd97963298a5b67b0899b36c36eb8747 (patch) | |
tree | 2583a8b66ad45d3bd2d63aada85fe78dbb987bae /platforms | |
parent | ae5fb8512e8ecfc1f1b24f5f89ef373dc4502844 (diff) | |
download | skiboot-1e487eb0dd97963298a5b67b0899b36c36eb8747.zip skiboot-1e487eb0dd97963298a5b67b0899b36c36eb8747.tar.gz skiboot-1e487eb0dd97963298a5b67b0899b36c36eb8747.tar.bz2 |
ipmi/power: Add power state IPMI command
This sends command 20.7, Set ACPI Power State. It is to be used to
inform a BMC of the runtime state of the system. We drop the ACPI part
from the function name to avoid confusion.
As soon as IPMI is up, the palmetto platform init code will set the
power ptate to S0/working.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/bmc/palmetto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platforms/bmc/palmetto.c b/platforms/bmc/palmetto.c index cd21726..28af306 100644 --- a/platforms/bmc/palmetto.c +++ b/platforms/bmc/palmetto.c @@ -208,6 +208,9 @@ static bool palmetto_probe(void) bt_init(); ipmi_rtc_init(); + /* As soon as IPMI is up, inform BMC we are in "S0" */ + ipmi_set_power_state(IPMI_PWR_SYS_S0_WORKING, IPMI_PWR_NOCHANGE); + return true; } |