aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,