OpenBIC
OpenSource Bridge-IC
plat_pldm_fw_update.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <logging/log.h>
#include "libutil.h"
#include "pldm.h"
#include "pldm_firmware_update.h"
#include "plat_pldm_fw_update.h"
#include "plat_i2c.h"
#include "plat_pldm_sensor.h"
#include "plat_isr.h"
#include "plat_gpio.h"
#include "plat_power_seq.h"
#include "power_status.h"
#include "mctp_ctrl.h"
#include "xdpe12284c.h"
#include "mp2971.h"
#include "ioexp_tca9555.h"
#include "util_spi.h"
Include dependency graph for plat_pldm_fw_update.c:

Enumerations

enum  FIRMWARE_COMPONENT {
  COMPNT_CPLD = 1 , COMPNT_BIC , COMPNT_ME , COMPNT_BIOS ,
  COMPNT_PVCCIN , COMPNT_PVCCFA_EHV_FIVRA , COMPNT_PVCCD_HV , COMPNT_PVCCINFAON ,
  COMPNT_PVCCFA_EHV , AG_COMPNT_BIC , AG_COMPNT_OSFP_P3V3 , AG_COMPNT_CPU_P0V85_PVDD ,
  AG_COMPNT_CPU_P0V75_PVDD_CH_N , AG_COMPNT_CPU_P0V75_PVDD_CH_S , AG_COMPNT_CPU_P0V75_TRVDD_ZONEA , AG_COMPNT_CPU_P0V75_TRVDD_ZONEB ,
  AG_COMPNT_CPU_P1V1_VDDC_HBM0_2_4 , AG_COMPNT_CPU_P0V9_TRVDD_ZONEA , AG_COMPNT_CPU_P0V9_TRVDD_ZONEB , AG_COMPNT_CPU_P1V1_VDDC_HBM1_3_5 ,
  AG_COMPNT_CPU_P0V8_VDDA_PCIE , FF_COMPNT_BIC , FF_COMPNT_VR_PVDDQ_AB_ASIC , FF_COMPNT_VR_PVDDQ_CD_ASIC ,
  SD_COMPNT_BIC , SD_COMPNT_VR_PVDDCR_CPU1 , SD_COMPNT_VR_PVDD11_S3 , SD_COMPNT_VR_PVDDCR_CPU0 ,
  SD_COMPNT_X16_RETIMER , SD_COMPNT_X8_RETIMER , SD_COMPNT_BIOS , SD_COMPNT_X16_RETIMER_RECOVERY ,
  SD_COMPNT_X8_RETIMER_RECOVERY , WF_COMPNT_BIC , WF_COMPNT_VR_PVDDQ_AB_ASIC1 , WF_COMPNT_VR_PVDDQ_CD_ASIC1 ,
  WF_COMPNT_VR_PVDDQ_AB_ASIC2 , WF_COMPNT_VR_PVDDQ_CD_ASIC2 , WF_COMPNT_CXL1 , WF_COMPNT_CXL2
}
 
enum  VR_TYPE {
  VR_TYPE_MPS , VR_TYPE_RNS , VR_TYPE_IFX , VR_TYPE_TI ,
  VR_TYPE_UNKNOWN = 0xFF , VR_TYPE_UNKNOWN , VR_TYPE_INF , VR_TYPE_MPS
}
 

Functions

 LOG_MODULE_REGISTER (plat_fwupdate)
 
uint8_t plat_pldm_query_device_identifiers (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len)
 
void load_pldmupdate_comp_config (void)
 

Variables

pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE []
 

Enumeration Type Documentation

◆ FIRMWARE_COMPONENT

Enumerator
COMPNT_CPLD 
COMPNT_BIC 
COMPNT_ME 
COMPNT_BIOS 
COMPNT_PVCCIN 
COMPNT_PVCCFA_EHV_FIVRA 
COMPNT_PVCCD_HV 
COMPNT_PVCCINFAON 
COMPNT_PVCCFA_EHV 
AG_COMPNT_BIC 
AG_COMPNT_OSFP_P3V3 
AG_COMPNT_CPU_P0V85_PVDD 
AG_COMPNT_CPU_P0V75_PVDD_CH_N 
AG_COMPNT_CPU_P0V75_PVDD_CH_S 
AG_COMPNT_CPU_P0V75_TRVDD_ZONEA 
AG_COMPNT_CPU_P0V75_TRVDD_ZONEB 
AG_COMPNT_CPU_P1V1_VDDC_HBM0_2_4 
AG_COMPNT_CPU_P0V9_TRVDD_ZONEA 
AG_COMPNT_CPU_P0V9_TRVDD_ZONEB 
AG_COMPNT_CPU_P1V1_VDDC_HBM1_3_5 
AG_COMPNT_CPU_P0V8_VDDA_PCIE 
FF_COMPNT_BIC 
FF_COMPNT_VR_PVDDQ_AB_ASIC 
FF_COMPNT_VR_PVDDQ_CD_ASIC 
SD_COMPNT_BIC 
SD_COMPNT_VR_PVDDCR_CPU1 
SD_COMPNT_VR_PVDD11_S3 
SD_COMPNT_VR_PVDDCR_CPU0 
SD_COMPNT_X16_RETIMER 
SD_COMPNT_X8_RETIMER 
SD_COMPNT_BIOS 
SD_COMPNT_X16_RETIMER_RECOVERY 
SD_COMPNT_X8_RETIMER_RECOVERY 
WF_COMPNT_BIC 
WF_COMPNT_VR_PVDDQ_AB_ASIC1 
WF_COMPNT_VR_PVDDQ_CD_ASIC1 
WF_COMPNT_VR_PVDDQ_AB_ASIC2 
WF_COMPNT_VR_PVDDQ_CD_ASIC2 
WF_COMPNT_CXL1 
WF_COMPNT_CXL2 

◆ VR_TYPE

enum VR_TYPE
Enumerator
VR_TYPE_MPS 
VR_TYPE_RNS 
VR_TYPE_IFX 
VR_TYPE_TI 
VR_TYPE_UNKNOWN 
VR_TYPE_UNKNOWN 
VR_TYPE_INF 
VR_TYPE_MPS 

Function Documentation

◆ load_pldmupdate_comp_config()

void load_pldmupdate_comp_config ( void  )

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_fwupdate  )

◆ plat_pldm_query_device_identifiers()

uint8_t plat_pldm_query_device_identifiers ( const uint8_t *  buf,
uint16_t  len,
uint8_t *  resp,
uint16_t *  resp_len 
)
Here is the call graph for this function:

Variable Documentation

◆ PLDMUPDATE_FW_CONFIG_TABLE

pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE[]