[Skiboot] [PATCH 2/2] astbmc: Use oem hiomap ipmi command for bmc_sw_ami

Lei YU mine260309 at gmail.com
Mon Feb 18 17:26:05 AEDT 2019


After BMC uses hiomap for PNOR access, skiboot needs to use oem hiomap
IPMI command to access PNOR.

Tested on Palmetto with OpenBMC + mboxd and verify the skiboot could
access PNOR correctly and is able to boot to petitboot.

Signed-off-by: Lei YU <mine260309 at gmail.com>
---
 platforms/astbmc/common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index bc0e58f..faa73e2 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -459,6 +459,7 @@ void astbmc_exit(void)
 const struct bmc_sw_config bmc_sw_ami = {
 	.ipmi_oem_partial_add_esel   = IPMI_CODE(0x3a, 0xf0),
 	.ipmi_oem_pnor_access_status = IPMI_CODE(0x3a, 0x07),
+	.ipmi_oem_hiomap_cmd         = IPMI_CODE(0x3a, 0x5a),
 };
 
 const struct bmc_sw_config bmc_sw_openbmc = {
-- 
2.7.4



More information about the Skiboot mailing list