OpenBIC
OpenSource Bridge-IC
plat_fru.h File Reference
#include "plat_i2c.h"
#include "i2c-mux-pca954x.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   38
 
#define BIC_FRU_DEV_ID   CB_FRU_ID
 
#define CB_FRU_PORT   I2C_BUS2
 
#define CB_FRU_ADDR   (0xAC >> 1)
 
#define FIO_FRU_PORT   I2C_BUS10
 
#define FIO_FRU_ADDR   (0xA2 >> 1)
 
#define ACCL_1_6_FRU_PORT   I2C_BUS8
 
#define ACCL_7_12_FRU_PORT   I2C_BUS7
 
#define ACCL_FRU_ADDR   (0xA6 >> 1)
 
#define ACCL_1_7_FRU_MUX_CHAN   0
 
#define ACCL_2_8_FRU_MUX_CHAN   1
 
#define ACCL_3_9_FRU_MUX_CHAN   2
 
#define ACCL_4_10_FRU_MUX_CHAN   3
 
#define ACCL_5_11_FRU_MUX_CHAN   4
 
#define ACCL_6_12_FRU_MUX_CHAN   5
 
#define ACCL_FREYA_CH1_FRU_ADDR   (0xA4 >> 1)
 
#define ACCL_FREYA_CH2_FRU_ADDR   (0xA2 >> 1)
 
#define MP2985_REMAINING_WRITE_START   0x0A00
 
#define MP2985_REMAINING_WRITE_MAX_SIZE   1
 
#define MP2985_REMAINING_WRITE_MAX_COUNT   100
 

Enumerations

enum  FRU_ID {
  MB_FRU_ID = 0x00 , BB_FRU_ID , BPB_FRU_ID , PDB_FRU_ID ,
  SB_FRU_ID , PB_1_FRU_ID , PB_2_FRU_ID , PB_3_FRU_ID ,
  FB_1_FRU_ID , FB_2_FRU_ID , FB_3_FRU_ID , FB_4_FRU_ID ,
  FB_5_FRU_ID , FB_6_FRU_ID , FB_7_FRU_ID , FB_8_FRU_ID ,
  FB_9_FRU_ID , FB_10_FRU_ID , FB_11_FRU_ID , FB_12_FRU_ID ,
  FB_13_FRU_ID , FB_14_FRU_ID , FIO_FRU_ID , MAX_FRU_ID ,
  FIO_FRU_ID = 0x0D , CB_FRU_ID = 0x10 , ACCL_1_FRU_ID = 0x12 , ACCL_2_FRU_ID ,
  ACCL_3_FRU_ID , ACCL_4_FRU_ID , ACCL_5_FRU_ID , ACCL_6_FRU_ID ,
  ACCL_7_FRU_ID , ACCL_8_FRU_ID , ACCL_9_FRU_ID , ACCL_10_FRU_ID ,
  ACCL_11_FRU_ID , ACCL_12_FRU_ID , ACCL_1_CH1_FREYA_FRU_ID = 0x1E , ACCL_1_CH2_FREYA_FRU_ID ,
  ACCL_2_CH1_FREYA_FRU_ID , ACCL_2_CH2_FREYA_FRU_ID , ACCL_3_CH1_FREYA_FRU_ID , ACCL_3_CH2_FREYA_FRU_ID ,
  ACCL_4_CH1_FREYA_FRU_ID , ACCL_4_CH2_FREYA_FRU_ID , ACCL_5_CH1_FREYA_FRU_ID , ACCL_5_CH2_FREYA_FRU_ID ,
  ACCL_6_CH1_FREYA_FRU_ID , ACCL_6_CH2_FREYA_FRU_ID , ACCL_7_CH1_FREYA_FRU_ID , ACCL_7_CH2_FREYA_FRU_ID ,
  ACCL_8_CH1_FREYA_FRU_ID , ACCL_8_CH2_FREYA_FRU_ID , ACCL_9_CH1_FREYA_FRU_ID , ACCL_9_CH2_FREYA_FRU_ID ,
  ACCL_10_CH1_FREYA_FRU_ID , ACCL_10_CH2_FREYA_FRU_ID , ACCL_11_CH1_FREYA_FRU_ID , ACCL_11_CH2_FREYA_FRU_ID ,
  ACCL_12_CH1_FREYA_FRU_ID , ACCL_12_CH2_FREYA_FRU_ID , MAX_FRU_ID , MC_FRU_ID = 0x11 ,
  CXL_FRU_ID1 = 0x1E , CXL_FRU_ID2 , CXL_FRU_ID3 , CXL_FRU_ID4 ,
  MC_E1S_4_FRU_ID , MC_E1S_3_FRU_ID , MC_E1S_2_FRU_ID , MC_E1S_1_FRU_ID ,
  CXL_FRU_ID5 , CXL_FRU_ID6 , CXL_FRU_ID7 , CXL_FRU_ID8 ,
  SYS_DEBUG_ID , MAX_FRU_ID , LOG_EEPROM_ID = 0x00 , MAX_FRU_ID ,
  VF_FRU_ID , MAX_FRU_ID , NF_FRU_ID = 0 , MAX_FRU_ID ,
  RF_FRU_ID , MAX_FRU_ID
}
 
enum  ACCL_FRU_OPTION { ACCL_FRU_READ , ACCL_FRU_WRITE }
 

Functions

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)
 

Macro Definition Documentation

◆ ACCL_1_6_FRU_PORT

#define ACCL_1_6_FRU_PORT   I2C_BUS8

◆ ACCL_1_7_FRU_MUX_CHAN

#define ACCL_1_7_FRU_MUX_CHAN   0

◆ ACCL_2_8_FRU_MUX_CHAN

#define ACCL_2_8_FRU_MUX_CHAN   1

◆ ACCL_3_9_FRU_MUX_CHAN

#define ACCL_3_9_FRU_MUX_CHAN   2

◆ ACCL_4_10_FRU_MUX_CHAN

#define ACCL_4_10_FRU_MUX_CHAN   3

◆ ACCL_5_11_FRU_MUX_CHAN

#define ACCL_5_11_FRU_MUX_CHAN   4

◆ ACCL_6_12_FRU_MUX_CHAN

#define ACCL_6_12_FRU_MUX_CHAN   5

◆ ACCL_7_12_FRU_PORT

#define ACCL_7_12_FRU_PORT   I2C_BUS7

◆ ACCL_FREYA_CH1_FRU_ADDR

#define ACCL_FREYA_CH1_FRU_ADDR   (0xA4 >> 1)

◆ ACCL_FREYA_CH2_FRU_ADDR

#define ACCL_FREYA_CH2_FRU_ADDR   (0xA2 >> 1)

◆ ACCL_FRU_ADDR

#define ACCL_FRU_ADDR   (0xA6 >> 1)

◆ BIC_FRU_DEV_ID

#define BIC_FRU_DEV_ID   CB_FRU_ID

◆ CB_FRU_ADDR

#define CB_FRU_ADDR   (0xAC >> 1)

◆ CB_FRU_PORT

#define CB_FRU_PORT   I2C_BUS2

◆ FIO_FRU_ADDR

#define FIO_FRU_ADDR   (0xA2 >> 1)

◆ FIO_FRU_PORT

#define FIO_FRU_PORT   I2C_BUS10

◆ FRU_CFG_NUM

#define FRU_CFG_NUM   38

◆ MP2985_REMAINING_WRITE_MAX_COUNT

#define MP2985_REMAINING_WRITE_MAX_COUNT   100

◆ MP2985_REMAINING_WRITE_MAX_SIZE

#define MP2985_REMAINING_WRITE_MAX_SIZE   1

◆ MP2985_REMAINING_WRITE_START

#define MP2985_REMAINING_WRITE_START   0x0A00

Enumeration Type Documentation

◆ ACCL_FRU_OPTION

Enumerator
ACCL_FRU_READ 
ACCL_FRU_WRITE 

◆ FRU_ID

enum FRU_ID
Enumerator
MB_FRU_ID 
BB_FRU_ID 
BPB_FRU_ID 
PDB_FRU_ID 
SB_FRU_ID 
PB_1_FRU_ID 
PB_2_FRU_ID 
PB_3_FRU_ID 
FB_1_FRU_ID 
FB_2_FRU_ID 
FB_3_FRU_ID 
FB_4_FRU_ID 
FB_5_FRU_ID 
FB_6_FRU_ID 
FB_7_FRU_ID 
FB_8_FRU_ID 
FB_9_FRU_ID 
FB_10_FRU_ID 
FB_11_FRU_ID 
FB_12_FRU_ID 
FB_13_FRU_ID 
FB_14_FRU_ID 
FIO_FRU_ID 
MAX_FRU_ID 
FIO_FRU_ID 
CB_FRU_ID 
ACCL_1_FRU_ID 
ACCL_2_FRU_ID 
ACCL_3_FRU_ID 
ACCL_4_FRU_ID 
ACCL_5_FRU_ID 
ACCL_6_FRU_ID 
ACCL_7_FRU_ID 
ACCL_8_FRU_ID 
ACCL_9_FRU_ID 
ACCL_10_FRU_ID 
ACCL_11_FRU_ID 
ACCL_12_FRU_ID 
ACCL_1_CH1_FREYA_FRU_ID 
ACCL_1_CH2_FREYA_FRU_ID 
ACCL_2_CH1_FREYA_FRU_ID 
ACCL_2_CH2_FREYA_FRU_ID 
ACCL_3_CH1_FREYA_FRU_ID 
ACCL_3_CH2_FREYA_FRU_ID 
ACCL_4_CH1_FREYA_FRU_ID 
ACCL_4_CH2_FREYA_FRU_ID 
ACCL_5_CH1_FREYA_FRU_ID 
ACCL_5_CH2_FREYA_FRU_ID 
ACCL_6_CH1_FREYA_FRU_ID 
ACCL_6_CH2_FREYA_FRU_ID 
ACCL_7_CH1_FREYA_FRU_ID 
ACCL_7_CH2_FREYA_FRU_ID 
ACCL_8_CH1_FREYA_FRU_ID 
ACCL_8_CH2_FREYA_FRU_ID 
ACCL_9_CH1_FREYA_FRU_ID 
ACCL_9_CH2_FREYA_FRU_ID 
ACCL_10_CH1_FREYA_FRU_ID 
ACCL_10_CH2_FREYA_FRU_ID 
ACCL_11_CH1_FREYA_FRU_ID 
ACCL_11_CH2_FREYA_FRU_ID 
ACCL_12_CH1_FREYA_FRU_ID 
ACCL_12_CH2_FREYA_FRU_ID 
MAX_FRU_ID 
MC_FRU_ID 
CXL_FRU_ID1 
CXL_FRU_ID2 
CXL_FRU_ID3 
CXL_FRU_ID4 
MC_E1S_4_FRU_ID 
MC_E1S_3_FRU_ID 
MC_E1S_2_FRU_ID 
MC_E1S_1_FRU_ID 
CXL_FRU_ID5 
CXL_FRU_ID6 
CXL_FRU_ID7 
CXL_FRU_ID8 
SYS_DEBUG_ID 
MAX_FRU_ID 
LOG_EEPROM_ID 
MAX_FRU_ID 
VF_FRU_ID 
MAX_FRU_ID 
NF_FRU_ID 
MAX_FRU_ID 
RF_FRU_ID 
MAX_FRU_ID 

Function Documentation

◆ get_mp2985_remaining_write()

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

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

◆ set_mp2985_remaining_write()

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