OpenBIC
OpenSource Bridge-IC
plat_fru.c File Reference
#include "plat_fru.h"
#include <stdio.h>
#include <string.h>
#include <logging/log.h>
#include "fru.h"
#include "libutil.h"
#include "plat_class.h"
Include dependency graph for plat_fru.c:

Functions

 LOG_MODULE_REGISTER (plat_fru)
 
void pal_load_fru_config (void)
 
bool pal_accl_fru_id_map_accl_id_dev_id (uint8_t accl_fru_id, uint8_t *accl_id, uint8_t *dev_id)
 
bool set_mp2985_remaining_write (uint8_t count)
 
bool get_mp2985_remaining_write (uint8_t *count)
 

Variables

const EEPROM_CFG plat_fru_config []
 
const EEPROM_CFG plat_mp2985_remaining_wr_area_config
 

Function Documentation

◆ get_mp2985_remaining_write()

bool get_mp2985_remaining_write ( uint8_t *  count)
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_fru  )

◆ pal_accl_fru_id_map_accl_id_dev_id()

bool pal_accl_fru_id_map_accl_id_dev_id ( uint8_t  accl_fru_id,
uint8_t *  accl_id,
uint8_t *  dev_id 
)

◆ pal_load_fru_config()

void pal_load_fru_config ( void  )

◆ set_mp2985_remaining_write()

bool set_mp2985_remaining_write ( uint8_t  count)
Here is the call graph for this function:

Variable Documentation

◆ plat_fru_config

const EEPROM_CFG plat_fru_config[]

◆ plat_mp2985_remaining_wr_area_config

const EEPROM_CFG plat_mp2985_remaining_wr_area_config
Initial value:
= {
}
#define CB_FRU_ADDR
Definition: plat_fru.h:76
#define MP2985_REMAINING_WRITE_MAX_SIZE
Definition: plat_fru.h:92
#define MP2985_REMAINING_WRITE_START
Definition: plat_fru.h:91
#define CB_FRU_PORT
Definition: plat_fru.h:75
@ CB_FRU_ID
Definition: plat_fru.h:25
@ FRU_DEV_ACCESS_BYTE
Definition: fru.h:44
@ PUYA_P24C128F
Definition: fru.h:28