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

Macros

#define AEGIS_CPLD_ADDR   (0x4C >> 1)
 
#define I2C_BUS_CPLD   I2C_BUS5
 
#define I2C_BUS_TMP   I2C_BUS1
 
#define AEGIS_CPLD_VR_VENDOR_TYPE_REG   0x1C
 
#define AEGIS_CPLD_BOARD_REV_ID_REG   0x1B
 
#define AEGIS_CPLD_BOARD_TYPE_REG   0x1A
 
#define TMP_EMC1413_SMSC_ID_DEFAULT   0x5D
 

Functions

 LOG_MODULE_REGISTER (plat_class)
 
bool plat_read_cpld (uint8_t offset, uint8_t *data)
 
void init_board_type (void)
 
void init_board_stage (void)
 
void init_vr_vendor_type (void)
 
void init_tmp_type ()
 
uint8_t get_vr_type ()
 
uint8_t get_ubc_type ()
 
uint8_t get_board_stage ()
 
uint8_t get_board_type ()
 
uint8_t get_tmp_type ()
 
void init_platform_config ()
 

Macro Definition Documentation

◆ AEGIS_CPLD_ADDR

#define AEGIS_CPLD_ADDR   (0x4C >> 1)

◆ AEGIS_CPLD_BOARD_REV_ID_REG

#define AEGIS_CPLD_BOARD_REV_ID_REG   0x1B

◆ AEGIS_CPLD_BOARD_TYPE_REG

#define AEGIS_CPLD_BOARD_TYPE_REG   0x1A

◆ AEGIS_CPLD_VR_VENDOR_TYPE_REG

#define AEGIS_CPLD_VR_VENDOR_TYPE_REG   0x1C

◆ I2C_BUS_CPLD

#define I2C_BUS_CPLD   I2C_BUS5

◆ I2C_BUS_TMP

#define I2C_BUS_TMP   I2C_BUS1

◆ TMP_EMC1413_SMSC_ID_DEFAULT

#define TMP_EMC1413_SMSC_ID_DEFAULT   0x5D

Function Documentation

◆ get_board_stage()

uint8_t get_board_stage ( )

◆ get_board_type()

uint8_t get_board_type ( )

◆ get_tmp_type()

uint8_t get_tmp_type ( )

◆ get_ubc_type()

uint8_t get_ubc_type ( )

◆ get_vr_type()

uint8_t get_vr_type ( )

◆ init_board_stage()

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

◆ init_board_type()

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

◆ init_platform_config()

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

◆ init_tmp_type()

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

◆ init_vr_vendor_type()

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

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_class  )

◆ plat_read_cpld()

bool plat_read_cpld ( uint8_t  offset,
uint8_t *  data 
)
Here is the call graph for this function: