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

Macros

#define AEGIS_FRU_START   0x0000
 
#define AEGIS_FRU_SIZE   0x0400
 

Functions

 LOG_MODULE_REGISTER (plat_fru)
 
void pal_load_fru_config (void)
 
bool plat_eeprom_write (uint32_t offset, uint8_t *data, uint16_t data_len)
 
bool plat_eeprom_read (uint32_t offset, uint8_t *data, uint16_t data_len)
 

Variables

const EEPROM_CFG plat_fru_config []
 

Macro Definition Documentation

◆ AEGIS_FRU_SIZE

#define AEGIS_FRU_SIZE   0x0400

◆ AEGIS_FRU_START

#define AEGIS_FRU_START   0x0000

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_fru  )

◆ pal_load_fru_config()

void pal_load_fru_config ( void  )

◆ plat_eeprom_read()

bool plat_eeprom_read ( uint32_t  offset,
uint8_t *  data,
uint16_t  data_len 
)
Here is the call graph for this function:

◆ plat_eeprom_write()

bool plat_eeprom_write ( uint32_t  offset,
uint8_t *  data,
uint16_t  data_len 
)
Here is the call graph for this function:

Variable Documentation

◆ plat_fru_config

const EEPROM_CFG plat_fru_config[]
Initial value:
= {
{
},
}
#define I2C_BUS12
Definition: plat_i2c.h:37
#define FRU_SIZE
Definition: eeprom.h:30
#define FRU_START
Definition: eeprom.h:29
@ FRU_DEV_ACCESS_BYTE
Definition: fru.h:44
@ ROHM_BR24G512
Definition: fru.h:32
#define LOG_EEPROM_ADDR
Definition: plat_fru.h:21
@ LOG_EEPROM_ID
Definition: plat_fru.h:24