summaryrefslogtreecommitdiffstats
path: root/platforms/astbmc/common.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2014-11-13 17:16:05 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-12-02 18:43:26 +1100
commitdd173e4beaf1da11db3bcfb2ccdfe8a623f26e53 (patch)
treef9524e195ecb3ee70032a204089260bc61706588 /platforms/astbmc/common.c
parentf8a0bb99bb6879124f153a161339bbfdef2049bf (diff)
downloadblackbird-skiboot-dd173e4beaf1da11db3bcfb2ccdfe8a623f26e53.tar.gz
blackbird-skiboot-dd173e4beaf1da11db3bcfb2ccdfe8a623f26e53.zip
esel: Add a logging backend for bmc based machines
This patch adds a backend for bmc based machines running AMI firmware supporting the OEM extended sel commands. Errors are logged in pel format to the bmc. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/astbmc/common.c')
-rw-r--r--platforms/astbmc/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index d6b5b07f..26f90f50 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -24,6 +24,7 @@
#include <ast.h>
#include <ipmi.h>
#include <bt.h>
+#include <errorlog.h>
#include "astbmc.h"
@@ -53,6 +54,7 @@ void astbmc_init(void)
ipmi_rtc_init();
ipmi_opal_init();
ipmi_fru_init(0x01);
+ elog_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);
OpenPOWER on IntegriCloud