aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2017-07-17 13:25:39 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-07-19 17:12:17 +1000
commit293b5ac60b3f35e84ed4e0cc28c943b3caab5159 (patch)
treed0b0195851c02cbf07f35ce5abffeb557eaa57fa /platforms
parentdc2f7ebfdf889ea97857fa32405040ea845505bf (diff)
downloadskiboot-293b5ac60b3f35e84ed4e0cc28c943b3caab5159.zip
skiboot-293b5ac60b3f35e84ed4e0cc28c943b3caab5159.tar.gz
skiboot-293b5ac60b3f35e84ed4e0cc28c943b3caab5159.tar.bz2
platform/witherspoon: Enable eSEL logging
OpenBMC stack added IPMI OEM extension to log eSEL events. Lets enable eSEL logging from OPAL side. See: https://github.com/openbmc/openpower-host-ipmi-oem/blob/d9296050bcece5c2eca5ede0932d944b0ced66c9/oemhandler.cpp#L142 (yes, that is the documentation) Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [stewart@linux.vnet.ibm.com: remove pnor access request, add link to OpenBMC doc] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/astbmc/astbmc.h1
-rw-r--r--platforms/astbmc/common.c5
-rw-r--r--platforms/astbmc/witherspoon.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/platforms/astbmc/astbmc.h b/platforms/astbmc/astbmc.h
index 9995800..d538f97 100644
--- a/platforms/astbmc/astbmc.h
+++ b/platforms/astbmc/astbmc.h
@@ -42,6 +42,7 @@ struct slot_table_entry {
};
extern const struct bmc_platform astbmc_ami;
+extern const struct bmc_platform astbmc_openbmc;
extern void astbmc_early_init(void);
extern int64_t astbmc_ipmi_reboot(void);
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 6f29e61..3c59f82 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -414,3 +414,8 @@ const struct bmc_platform astbmc_ami = {
.ipmi_oem_partial_add_esel = IPMI_CODE(0x32, 0xf0),
.ipmi_oem_pnor_access_status = IPMI_CODE(0x3a, 0x07),
};
+
+const struct bmc_platform astbmc_openbmc = {
+ .name = "OpenBMC",
+ .ipmi_oem_partial_add_esel = IPMI_CODE(0x32, 0xf0),
+};
diff --git a/platforms/astbmc/witherspoon.c b/platforms/astbmc/witherspoon.c
index 6a77306..c522739 100644
--- a/platforms/astbmc/witherspoon.c
+++ b/platforms/astbmc/witherspoon.c
@@ -410,7 +410,7 @@ DECLARE_PLATFORM(witherspoon_platform) = {
.pre_pci_fixup = witherspoon_pre_pci_fixup,
.start_preload_resource = flash_start_preload_resource,
.resource_loaded = flash_resource_loaded,
- .bmc = NULL, /* FIXME: Add openBMC */
+ .bmc = &astbmc_openbmc,
.pci_get_slot_info = slot_table_get_slot_info,
.pci_probe_complete = check_all_slot_table,
.cec_power_down = astbmc_ipmi_power_down,