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 "sensor.h"
#include "pldm.h"
#include "pldm_firmware_update.h"
#include "mctp_ctrl.h"
#include "power_status.h"
#include "util_spi.h"
#include "plat_pldm_fw_update.h"
#include "plat_i2c.h"
#include "plat_gpio.h"
#include "plat_pldm_sensor.h"
#include "mp2971.h"
#include "mp2891.h"
#include "raa229621.h"
#include "raa228249.h"
#include "plat_class.h"
#include "pldm_sensor.h"
#include "mp29816a.h"
#include "plat_hook.h"
Include dependency graph for plat_pldm_fw_update.c:

Classes

struct  aegis_compnt_mapping_sensor
 

Typedefs

typedef struct aegis_compnt_mapping_sensor aegis_compnt_mapping_sensor
 

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)
 
void clear_pending_version (uint8_t activate_method)
 
bool find_sensor_id_and_name_by_firmware_comp_id (uint8_t comp_identifier, uint8_t *sensor_id, char *sensor_name)
 
int get_aegis_vr_compnt_mapping_sensor_table_count (void)
 

Variables

aegis_compnt_mapping_sensor aegis_vr_compnt_mapping_sensor_table []
 
pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE []
 

Typedef Documentation

◆ aegis_compnt_mapping_sensor

Function Documentation

◆ clear_pending_version()

void clear_pending_version ( uint8_t  activate_method)

◆ find_sensor_id_and_name_by_firmware_comp_id()

bool find_sensor_id_and_name_by_firmware_comp_id ( uint8_t  comp_identifier,
uint8_t *  sensor_id,
char *  sensor_name 
)

◆ get_aegis_vr_compnt_mapping_sensor_table_count()

int get_aegis_vr_compnt_mapping_sensor_table_count ( void  )

◆ load_pldmupdate_comp_config()

void load_pldmupdate_comp_config ( void  )
Here is the call graph for this function:

◆ 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 
)

Variable Documentation

◆ aegis_vr_compnt_mapping_sensor_table

aegis_compnt_mapping_sensor aegis_vr_compnt_mapping_sensor_table[]
Initial value:
= {
"AEGIS_P0V75_PVDD_CH_N" },
"AEGIS_P0V75_PVDD_CH_S" },
"AEGIS_P0V75_TRVDD_ZONEA" },
"AEGIS_P0V75_TRVDD_ZONEB" },
"AEGIS_P1V1_VDDC_HBM0_HBM2_HBM4" },
"AEGIS_P0V9_TRVDD_ZONEA" },
"AEGIS_P0V9_TRVDD_ZONEB" },
"AEGIS_P1V1_VDDC_HBM1_HBM3_HBM5" },
}
@ AG_COMPNT_CPU_P1V1_VDDC_HBM0_2_4
Definition: plat_pldm_fw_update.h:32
@ AG_COMPNT_CPU_P0V9_TRVDD_ZONEA
Definition: plat_pldm_fw_update.h:33
@ AG_COMPNT_CPU_P0V8_VDDA_PCIE
Definition: plat_pldm_fw_update.h:36
@ AG_COMPNT_CPU_P0V9_TRVDD_ZONEB
Definition: plat_pldm_fw_update.h:34
@ AG_COMPNT_CPU_P0V75_PVDD_CH_S
Definition: plat_pldm_fw_update.h:29
@ AG_COMPNT_CPU_P0V75_TRVDD_ZONEB
Definition: plat_pldm_fw_update.h:31
@ AG_COMPNT_CPU_P0V85_PVDD
Definition: plat_pldm_fw_update.h:27
@ AG_COMPNT_CPU_P0V75_TRVDD_ZONEA
Definition: plat_pldm_fw_update.h:30
@ AG_COMPNT_CPU_P0V75_PVDD_CH_N
Definition: plat_pldm_fw_update.h:28
@ AG_COMPNT_CPU_P1V1_VDDC_HBM1_3_5
Definition: plat_pldm_fw_update.h:35
@ AG_COMPNT_OSFP_P3V3
Definition: plat_pldm_fw_update.h:26
#define SENSOR_NUM_CPU_P0V8_VDDA_PCIE_TEMP_C
Definition: plat_pldm_sensor.h:210
#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEA_TEMP_C
Definition: plat_pldm_sensor.h:183
#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEB_TEMP_C
Definition: plat_pldm_sensor.h:192
#define SENSOR_NUM_CPU_P1V1_VDDC_HBM1_3_5_TEMP_C
Definition: plat_pldm_sensor.h:201
#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEA_TEMP_C
Definition: plat_pldm_sensor.h:156
#define SENSOR_NUM_OSFP_P3V3_TEMP_C
Definition: plat_pldm_sensor.h:128
#define SENSOR_NUM_CPU_P0V75_PVDD_CH_N_TEMP_C
Definition: plat_pldm_sensor.h:138
#define SENSOR_NUM_CPU_P1V1_VDDC_HBM0_2_4_TEMP_C
Definition: plat_pldm_sensor.h:174
#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEB_TEMP_C
Definition: plat_pldm_sensor.h:165
#define SENSOR_NUM_CPU_P0V85_PVDD_TEMP_C
Definition: plat_pldm_sensor.h:133
#define SENSOR_NUM_CPU_P0V75_PVDD_CH_S_TEMP_C
Definition: plat_pldm_sensor.h:147

◆ PLDMUPDATE_FW_CONFIG_TABLE

pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE[]