aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/ocp/deltalake/ipmi.h
diff options
context:
space:
mode:
authorJohnny Lin <johnny_lin@wiwynn.com>2021-01-08 15:24:25 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-02-01 08:47:48 +0000
commit3acea5c51abd09bb578cfb35952b9dbd96be21fe (patch)
tree9b7536e003e98cd200b18ef3ae7010087131172d /src/mainboard/ocp/deltalake/ipmi.h
parent86846439113a370b0eab341b50dcd4cf1679b7ec (diff)
ipmi/ocp: Move common OCP/Facebook IPMI OEM codes into drivers/ipmi/ocp
1. These are common OCP/Facebook IPMI OEM commands, move from mainboard into drivers/ipmi/ocp to avoid code duplication and provide better reusability. 2. OCP Tioga Pass enables IPMI_OCP driver. Tested=On OCP Delta Lake and Tioga Pass verify the commands still work correctly. Change-Id: Idd116a89239273fd5cc7b06c7768146085a3ed69 Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49235 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Diffstat (limited to 'src/mainboard/ocp/deltalake/ipmi.h')
-rw-r--r--src/mainboard/ocp/deltalake/ipmi.h34
1 files changed, 3 insertions, 31 deletions
diff --git a/src/mainboard/ocp/deltalake/ipmi.h b/src/mainboard/ocp/deltalake/ipmi.h
index 440a5056ba..269fc034d5 100644
--- a/src/mainboard/ocp/deltalake/ipmi.h
+++ b/src/mainboard/ocp/deltalake/ipmi.h
@@ -5,19 +5,9 @@
#include <stdint.h>
-#define IPMI_NETFN_OEM 0x30
-#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
-#define IPMI_OEM_SET_BIOS_BOOT_ORDER 0x52
-#define IPMI_OEM_GET_BIOS_BOOT_ORDER 0x53
+#define IPMI_OEM_GET_PCIE_CONFIG 0xf4
+#define IPMI_OEM_GET_BOARD_ID 0x37
-#define CMOS_BIT (1 << 1)
-#define VALID_BIT (1 << 7)
-#define CLEAR_CMOS_AND_VALID_BIT(x) ((x) &= ~(CMOS_BIT | VALID_BIT))
-#define SET_CMOS_AND_VALID_BIT(x) ((x) |= (CMOS_BIT | VALID_BIT))
-#define IS_CMOS_AND_VALID_BIT(x) ((x)&CMOS_BIT && (x)&VALID_BIT)
enum config_type {
PCIE_CONFIG_UNKNOWN = 0x0,
@@ -27,26 +17,8 @@ enum config_type {
PCIE_CONFIG_D = 0x4,
};
-struct ppin_req {
- uint32_t cpu0_lo;
- uint32_t cpu0_hi;
- uint32_t cpu1_lo;
- uint32_t cpu1_hi;
-} __packed;
-
-struct boot_order {
- uint8_t boot_mode;
- uint8_t boot_dev0;
- uint8_t boot_dev1;
- uint8_t boot_dev2;
- uint8_t boot_dev3;
- uint8_t boot_dev4;
-} __packed;
-
-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);
-enum cb_err ipmi_set_cmos_clear(void);
+
#endif