OpenBIC
OpenSource Bridge-IC
plat_ipmi.c File Reference
#include "pldm.h"
#include "plat_ipmi.h"
#include <stdio.h>
#include <stdlib.h>
#include <drivers/spi_nor.h>
#include <drivers/flash.h>
#include <logging/log.h>
#include "libutil.h"
#include "ipmi.h"
#include "plat_ipmb.h"
#include "plat_gpio.h"
#include "plat_fru.h"
#include "plat_class.h"
#include "hal_jtag.h"
#include "eeprom.h"
#include "fru.h"
#include "sdr.h"
#include "app_handler.h"
#include "util_spi.h"
#include "sensor.h"
#include "pmbus.h"
#include "hal_i2c.h"
#include "i2c-mux-tca9548.h"
#include "plat_hook.h"
#include "plat_sensor_table.h"
#include "plat_mctp.h"
#include "pex89000.h"
#include "power_status.h"
Include dependency graph for plat_ipmi.c:

Classes

struct  bridge_compnt_info_s
 

Macros

#define GT_BIC_UPDATE_MAX_OFFSET   KB(410)
 

Functions

 LOG_MODULE_REGISTER (plat_ipmi)
 
void OEM_1S_FW_UPDATE (ipmi_msg *msg)
 
void OEM_1S_PEX_FLASH_READ (ipmi_msg *msg)
 
void OEM_1S_GET_FPGA_USER_CODE (ipmi_msg *msg)
 
void APP_GET_SELFTEST_RESULTS (ipmi_msg *msg)
 
void OEM_1S_GET_FW_VERSION (ipmi_msg *msg)
 
void OEM_1S_BRIDGE_I2C_MSG_BY_COMPNT (ipmi_msg *msg)
 

Variables

struct k_mutex i2c_bus6_mutex
 
struct k_mutex i2c_bus10_mutex
 
struct bridge_compnt_info_s bridge_compnt_info []
 

Macro Definition Documentation

◆ GT_BIC_UPDATE_MAX_OFFSET

#define GT_BIC_UPDATE_MAX_OFFSET   KB(410)

Function Documentation

◆ APP_GET_SELFTEST_RESULTS()

void APP_GET_SELFTEST_RESULTS ( ipmi_msg msg)
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_ipmi  )

◆ OEM_1S_BRIDGE_I2C_MSG_BY_COMPNT()

void OEM_1S_BRIDGE_I2C_MSG_BY_COMPNT ( ipmi_msg msg)

◆ OEM_1S_FW_UPDATE()

void OEM_1S_FW_UPDATE ( ipmi_msg msg)
Here is the call graph for this function:

◆ OEM_1S_GET_FPGA_USER_CODE()

void OEM_1S_GET_FPGA_USER_CODE ( ipmi_msg msg)
Here is the call graph for this function:

◆ OEM_1S_GET_FW_VERSION()

void OEM_1S_GET_FW_VERSION ( ipmi_msg msg)

◆ OEM_1S_PEX_FLASH_READ()

void OEM_1S_PEX_FLASH_READ ( ipmi_msg msg)
Here is the call graph for this function:

Variable Documentation

◆ bridge_compnt_info

struct bridge_compnt_info_s bridge_compnt_info[]
Initial value:
= {
[0] = { .compnt_id = GT_COMPNT_VR0,
.i2c_bus = I2C_BUS6,
.i2c_addr = PEX_0_1_P0V8_VR_ADDR,
.mux_present = true,
.mux_addr = 0xe0,
.mux_channel = 6,
.bus_mutex = &i2c_bus6_mutex },
[1] = { .compnt_id = GT_COMPNT_VR1,
.i2c_bus = I2C_BUS6,
.i2c_addr = PEX_2_3_P0V8_VR_ADDR,
.mux_present = true,
.mux_addr = 0xe0,
.mux_channel = 6,
.bus_mutex = &i2c_bus6_mutex },
}
#define I2C_BUS6
Definition: plat_i2c.h:29
struct k_mutex i2c_bus6_mutex
@ GT_COMPNT_VR1
Definition: plat_class.h:64
@ GT_COMPNT_VR0
Definition: plat_class.h:63
#define PEX_0_1_P0V8_VR_ADDR
Definition: plat_sensor_table.h:42
#define PEX_2_3_P0V8_VR_ADDR
Definition: plat_sensor_table.h:43

◆ i2c_bus10_mutex

struct k_mutex i2c_bus10_mutex
extern

◆ i2c_bus6_mutex

struct k_mutex i2c_bus6_mutex
extern