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

Macros

#define REG_RTC_STATUS   0x0B
 

Functions

 LOG_MODULE_REGISTER (plat_fru)
 
void pal_load_fru_config (void)
 
int set_bios_version (EEPROM_ENTRY *entry, uint8_t block_index)
 
int get_bios_version (EEPROM_ENTRY *entry, uint8_t block_index)
 
bool access_vr_remain_cnt (EEPROM_ENTRY *entry, uint8_t comp_id, bool update_flag)
 
bool access_rtc_clr_flag (uint8_t val)
 
void handle_rtc_clr_flag ()
 

Variables

const EEPROM_CFG plat_fru_config []
 
const EEPROM_CFG plat_bios_version_area_config
 
const EEPROM_CFG plat_vr_remain_cnt_area_config []
 
const EEPROM_CFG plat_rtc_clr_record_area_config
 

Macro Definition Documentation

◆ REG_RTC_STATUS

#define REG_RTC_STATUS   0x0B

Function Documentation

◆ access_rtc_clr_flag()

bool access_rtc_clr_flag ( uint8_t  val)
Here is the call graph for this function:

◆ access_vr_remain_cnt()

bool access_vr_remain_cnt ( EEPROM_ENTRY entry,
uint8_t  comp_id,
bool  update_flag 
)
Here is the call graph for this function:

◆ get_bios_version()

int get_bios_version ( EEPROM_ENTRY entry,
uint8_t  block_index 
)
Here is the call graph for this function:

◆ handle_rtc_clr_flag()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_fru  )

◆ pal_load_fru_config()

void pal_load_fru_config ( void  )

◆ set_bios_version()

int set_bios_version ( EEPROM_ENTRY entry,
uint8_t  block_index 
)
Here is the call graph for this function:

Variable Documentation

◆ plat_bios_version_area_config

const EEPROM_CFG plat_bios_version_area_config
Initial value:
= {
}
@ MB_FRU_ID
Definition: plat_fru.h:21
#define MB_FRU_ADDR
Definition: plat_fru.h:49
@ FRU_DEV_ACCESS_BYTE
Definition: fru.h:44
@ NV_ATMEL_24C128
Definition: fru.h:27
#define BIOS_FW_VERSION_MAX_SIZE
Definition: plat_fru.h:38
#define MB_FRU_PORT
Definition: plat_fru.h:31
#define BIOS_FW_VERSION_START
Definition: plat_fru.h:37

◆ plat_fru_config

const EEPROM_CFG plat_fru_config[]
Initial value:
= {
{
},
}
#define FRU_SIZE
Definition: eeprom.h:30
#define FRU_START
Definition: eeprom.h:29

◆ plat_rtc_clr_record_area_config

const EEPROM_CFG plat_rtc_clr_record_area_config
Initial value:
= {
}
#define RTC_CLR_REC_START
Definition: plat_fru.h:49
#define RTC_CLR_REC_MAX_SIZE
Definition: plat_fru.h:48

◆ plat_vr_remain_cnt_area_config

const EEPROM_CFG plat_vr_remain_cnt_area_config[]