summaryrefslogtreecommitdiff
path: root/src/mainboard/ocp/deltalake/ipmi.h
diff options
context:
space:
mode:
authorTimChu <Tim.Chu@quantatw.com>2020-05-20 20:35:39 -0700
committerAngel Pons <th3fanbus@gmail.com>2020-07-23 09:12:59 +0000
commitb8d6af9569632745966199a21833f0ad426ca140 (patch)
tree51da9a3c493ba124fdd7a680c6dd12e5900b6603 /src/mainboard/ocp/deltalake/ipmi.h
parent9862138b67a1db212a0569b5998281fda35450a6 (diff)
downloadcoreboot-b8d6af9569632745966199a21833f0ad426ca140.tar.xz
mb/ocp/deltalake: Add ipmi POST start command in romstage
Add function to send POST start command to BMC. This function is used in romstage and the POST end command will be sent in u-root. TEST=Read POST command log in OpenBMC, if command received successfully, message may show as below, root@bmc-oob:~# cat /var/log/messages |grep -i "POST" 2020 Jul 15 16:36:11 bmc-oob. user.info fby3-v2020.23.1: ipmid: POST Start Event for Payload#2 root@bmc-oob:~# Signed-off-by: TimChu <Tim.Chu@quantatw.com> Change-Id: Ide0e2a52876db555ed8b5e919215e85731fd80ed Reviewed-on: https://review.coreboot.org/c/coreboot/+/41605 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/ocp/deltalake/ipmi.h')
-rw-r--r--src/mainboard/ocp/deltalake/ipmi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainboard/ocp/deltalake/ipmi.h b/src/mainboard/ocp/deltalake/ipmi.h
index 840f999990..bb0b4a6e04 100644
--- a/src/mainboard/ocp/deltalake/ipmi.h
+++ b/src/mainboard/ocp/deltalake/ipmi.h
@@ -9,6 +9,7 @@
#define IPMI_OEM_SET_PPIN 0x77
#define IPMI_OEM_GET_PCIE_CONFIG 0xf4
#define IPMI_OEM_GET_BOARD_ID 0x37
+#define IPMI_BMC_SET_POST_START 0x73
enum config_type {
PCIE_CONFIG_UNKNOWN = 0x0,
@@ -28,5 +29,6 @@ struct ppin_req {
enum cb_err ipmi_set_ppin(struct ppin_req *req);
enum cb_err ipmi_get_pcie_config(uint8_t *config);
enum cb_err ipmi_get_slot_id(uint8_t *slot_id);
+enum cb_err ipmi_set_post_start(const int port);
void init_frb2_wdt(void);
#endif