intel-ipmi-oem: add slot I2C master RW command
This command is used to perform i2c master read/write on PCIE slots.
Tested:
Reading the 0x4e device on slot 2 of riser 1(i2c bus is 17),
the below two commands have the same result:
ipmitool raw 0x3e 0x52 0 0x11 0x4e 8 0
i2cget -f -y 17 0x4e 0 i 8
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Change-Id: I03872296345d180571db2205a9a30c08f28b69b6
diff --git a/include/oemcommands.hpp b/include/oemcommands.hpp
index 6852aa9..7e55038 100644
--- a/include/oemcommands.hpp
+++ b/include/oemcommands.hpp
@@ -30,6 +30,7 @@
cmdDisableBMCSystemReset = 0x42,
cmdGetBMCResetDisables = 0x43,
cmdSendEmbeddedFWUpdStatus = 0x44,
+ cmdSlotI2CMasterWriteRead = 0x52,
cmdSetPowerRestoreDelay = 0x54,
cmdGetPowerRestoreDelay = 0x55,
cmdSetFaultIndication = 0x57,