From 293b5ac60b3f35e84ed4e0cc28c943b3caab5159 Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Mon, 17 Jul 2017 13:25:39 +0530 Subject: [PATCH] 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 [stewart@linux.vnet.ibm.com: remove pnor access request, add link to OpenBMC doc] Signed-off-by: Stewart Smith --- platforms/astbmc/astbmc.h | 1 + platforms/astbmc/common.c | 5 +++++ platforms/astbmc/witherspoon.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platforms/astbmc/astbmc.h b/platforms/astbmc/astbmc.h index 999580017059..d538f97538dc 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 6f29e61a3958..3c59f82a9b68 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 6a773061db74..c5227398e401 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,