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 "util_spi.h"
#include "hal_jtag.h"
#include "sensor.h"
#include "pldm_firmware_update.h"
#include "plat_pldm_fw_update.h"
#include "plat_ipmi.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
#include "plat_sensor_table.h"
#include "plat_hook.h"
#include "plat_class.h"
#include "lattice.h"
#include "plat_dev.h"
#include "util_sys.h"
#include "pex89000.h"
#include "plat_fru.h"
#include "mp2985.h"
#include "plat_pldm_device_identifier.h"
Include dependency graph for plat_pldm_fw_update.c:

Macros

#define CPLD_BUS_5_ADDR   0x40
 
#define CPLD_USER_CODE_LENGTH   4
 
#define PLDM_DOWNSTREAM_START_FLAG   1
 
#define PLDM_PROGESS_PERCENT_DEFAULT   0
 
#define PLDM_PROGESS_COMPLETE   100
 
#define DISABLE_SENSOR_POLLING_DELAY_MS   10
 
#define PLDM_PLAT_ERR_CODE_NO_POWER_ON   8
 

Functions

 LOG_MODULE_REGISTER (plat_fwupdate)
 
uint8_t pldm_atm_apply_work (void *arg)
 
void load_pldmupdate_comp_config (void)
 
void clear_pending_version (uint8_t activate_method)
 
uint8_t plat_pldm_query_device_identifiers (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len)
 
uint8_t plat_pldm_query_downstream_identifiers (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len)
 
uint16_t plat_find_update_info_work (uint16_t comp_id)
 

Variables

pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE []
 

Macro Definition Documentation

◆ CPLD_BUS_5_ADDR

#define CPLD_BUS_5_ADDR   0x40

◆ CPLD_USER_CODE_LENGTH

#define CPLD_USER_CODE_LENGTH   4

◆ DISABLE_SENSOR_POLLING_DELAY_MS

#define DISABLE_SENSOR_POLLING_DELAY_MS   10

◆ PLDM_DOWNSTREAM_START_FLAG

#define PLDM_DOWNSTREAM_START_FLAG   1

◆ PLDM_PLAT_ERR_CODE_NO_POWER_ON

#define PLDM_PLAT_ERR_CODE_NO_POWER_ON   8

◆ PLDM_PROGESS_COMPLETE

#define PLDM_PROGESS_COMPLETE   100

◆ PLDM_PROGESS_PERCENT_DEFAULT

#define PLDM_PROGESS_PERCENT_DEFAULT   0

Function Documentation

◆ clear_pending_version()

void clear_pending_version ( uint8_t  activate_method)

◆ load_pldmupdate_comp_config()

void load_pldmupdate_comp_config ( void  )

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_fwupdate  )

◆ plat_find_update_info_work()

uint16_t plat_find_update_info_work ( uint16_t  comp_id)

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

◆ plat_pldm_query_downstream_identifiers()

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

◆ pldm_atm_apply_work()

uint8_t pldm_atm_apply_work ( void *  arg)

Variable Documentation

◆ PLDMUPDATE_FW_CONFIG_TABLE

pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE[]