summaryrefslogtreecommitdiff
path: root/src/mainboard/ocp/tiogapass/ipmi.h
blob: 798f3125ef0f1cd1139320e23effbda5dd9c1657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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);
void init_frb2_wdt(void);
#endif