summaryrefslogtreecommitdiff
path: root/src/mainboard/ocp/tiogapass/ipmi.h
diff options
context:
space:
mode:
authorJohnny Lin <johnny_lin@wiwynn.com>2020-04-20 19:03:41 +0800
committerAngel Pons <th3fanbus@gmail.com>2020-07-24 09:46:10 +0000
commitf9e12e82f75448c557ce5dc840b4a33eae63a342 (patch)
tree433e59037ababc9c6534e4affff86aae49352a72 /src/mainboard/ocp/tiogapass/ipmi.h
parent46c2d91a796a7e0b0dd818d292d1e064982d555a (diff)
downloadcoreboot-f9e12e82f75448c557ce5dc840b4a33eae63a342.tar.xz
mb/ocp/tiogapass: Populate SMBIOS data and set the read PPIN to BMC
1. Populate SMBIOS data from OCP_DMI driver read from FRU 2. Set the read PPIN MSR for CPU0 and CPU1 to BMC, selecting PARALLEL_MP_AP_WORK to enable OCP DMI driver to read remote socket PPIN. Tested on OCP Tioga Pass. Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Change-Id: Ie11ab68267438ea9c669c809985c0c2d7578280e Reviewed-on: https://review.coreboot.org/c/coreboot/+/40524 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/ocp/tiogapass/ipmi.h')
-rw-r--r--src/mainboard/ocp/tiogapass/ipmi.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/ocp/tiogapass/ipmi.h b/src/mainboard/ocp/tiogapass/ipmi.h
new file mode 100644
index 0000000000..3d2723f49e
--- /dev/null
+++ b/src/mainboard/ocp/tiogapass/ipmi.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef TIOGAPASS_IPMI_H
+#define TIOGAPASS_IPMI_H
+#include <types.h>
+
+#define IPMI_NETFN_OEM 0x30
+#define IPMI_OEM_SET_PPIN 0x77
+
+/* PPIN for 2 CPU IPMI request */
+struct ppin_req {
+ uint32_t cpu0_lo;
+ uint32_t cpu0_hi;
+ uint32_t cpu1_lo;
+ uint32_t cpu1_hi;
+} __packed;
+/* Send CPU0 and CPU1 PPIN to BMC */
+void ipmi_set_ppin(struct ppin_req *req);
+#endif