OpenBIC
OpenSource Bridge-IC
plat_fru.h File Reference
#include "eeprom.h"
#include "plat_i2c.h"
Include dependency graph for plat_fru.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FRU_CFG_NUM   MAX_FRU_ID
 
#define MB_FRU_PORT   I2C_BUS10
 
#define MB_FRU_ADDR   0x50
 
#define BIOS_FW_VERSION_START   0x0A00
 
#define BIOS_FW_VERSION_MAX_SIZE   34
 
#define BIOS_FW_VERSION_BLOCK_NUM   2
 
#define BIOS_FW_VERSION_SECOND_BLOCK_OFFSET   17
 
#define BIOS_FW_VERSION_BLOCK_MAX_SIZE   17
 
#define VR_RM_CNT_MAX_SIZE   2
 
#define VR_MPS_CPUDVDD_RM_CNT_START   0x0B00
 
#define VR_MPS_CPUVDD_RM_CNT_START   (VR_MPS_CPUDVDD_RM_CNT_START + VR_RM_CNT_MAX_SIZE)
 
#define VR_MPS_SOCVDD_RM_CNT_START   (VR_MPS_CPUDVDD_RM_CNT_START + (VR_RM_CNT_MAX_SIZE * 2))
 
#define VR_MPS_FBVDDP2_RM_CNT_START   (VR_MPS_CPUDVDD_RM_CNT_START + (VR_RM_CNT_MAX_SIZE * 3))
 
#define VR_MPS_1V2_RM_CNT_START   (VR_MPS_CPUDVDD_RM_CNT_START + (VR_RM_CNT_MAX_SIZE * 4))
 
#define VR_MPS_MAX_RM_CNT   1000
 
#define RTC_CLR_REC_MAX_SIZE   1
 
#define RTC_CLR_REC_START   0x0C00
 
#define RTC_CLR_ASSERT   0x00
 
#define RTC_CLR_DEASSERT   0xFF
 

Enumerations

enum  { MB_FRU_ID , MAX_FRU_ID }
 

Functions

bool get_bios_version_area_config (EEPROM_CFG *config)
 
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 ()
 

Macro Definition Documentation

◆ BIOS_FW_VERSION_BLOCK_MAX_SIZE

#define BIOS_FW_VERSION_BLOCK_MAX_SIZE   17

◆ BIOS_FW_VERSION_BLOCK_NUM

#define BIOS_FW_VERSION_BLOCK_NUM   2

◆ BIOS_FW_VERSION_MAX_SIZE

#define BIOS_FW_VERSION_MAX_SIZE   34

◆ BIOS_FW_VERSION_SECOND_BLOCK_OFFSET

#define BIOS_FW_VERSION_SECOND_BLOCK_OFFSET   17

◆ BIOS_FW_VERSION_START

#define BIOS_FW_VERSION_START   0x0A00

◆ FRU_CFG_NUM

#define FRU_CFG_NUM   MAX_FRU_ID

◆ MB_FRU_ADDR

#define MB_FRU_ADDR   0x50

◆ MB_FRU_PORT

#define MB_FRU_PORT   I2C_BUS10

◆ RTC_CLR_ASSERT

#define RTC_CLR_ASSERT   0x00

◆ RTC_CLR_DEASSERT

#define RTC_CLR_DEASSERT   0xFF

◆ RTC_CLR_REC_MAX_SIZE

#define RTC_CLR_REC_MAX_SIZE   1

◆ RTC_CLR_REC_START

#define RTC_CLR_REC_START   0x0C00

◆ VR_MPS_1V2_RM_CNT_START

#define VR_MPS_1V2_RM_CNT_START   (VR_MPS_CPUDVDD_RM_CNT_START + (VR_RM_CNT_MAX_SIZE * 4))

◆ VR_MPS_CPUDVDD_RM_CNT_START

#define VR_MPS_CPUDVDD_RM_CNT_START   0x0B00

◆ VR_MPS_CPUVDD_RM_CNT_START

#define VR_MPS_CPUVDD_RM_CNT_START   (VR_MPS_CPUDVDD_RM_CNT_START + VR_RM_CNT_MAX_SIZE)

◆ VR_MPS_FBVDDP2_RM_CNT_START

#define VR_MPS_FBVDDP2_RM_CNT_START   (VR_MPS_CPUDVDD_RM_CNT_START + (VR_RM_CNT_MAX_SIZE * 3))

◆ VR_MPS_MAX_RM_CNT

#define VR_MPS_MAX_RM_CNT   1000

◆ VR_MPS_SOCVDD_RM_CNT_START

#define VR_MPS_SOCVDD_RM_CNT_START   (VR_MPS_CPUDVDD_RM_CNT_START + (VR_RM_CNT_MAX_SIZE * 2))

◆ VR_RM_CNT_MAX_SIZE

#define VR_RM_CNT_MAX_SIZE   2

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MB_FRU_ID 
MAX_FRU_ID 

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:

◆ get_bios_version_area_config()

bool get_bios_version_area_config ( EEPROM_CFG config)

◆ handle_rtc_clr_flag()

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

◆ set_bios_version()

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