OpenBIC
OpenSource Bridge-IC
plat_pmic.h File Reference
#include <stdint.h>
Include dependency graph for plat_pmic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MONITOR_PMIC_ERROR_STACK_SIZE   4096
 
#define MONITOR_PMIC_ERROR_TIME_MS   (3 * 1000)
 
#define MAX_COUNT_PMIC_ERROR_OFFSET   7
 
#define MAX_COUNT_PMIC_ERROR_TYPE   17
 
#define MAX_COUNT_PMIC_VENDER_ID   1
 
#define CL_CPLD_BMC_CHANNEL_ADDR   0x1E
 
#define PMIC_FAULT_STATUS_OFFSET   0x0B
 
#define PMIC_VENDER_ID_OFFSET   0x3C
 
#define PMIC_CLEAR_STATUS_BITS4_OFFSET   0x14
 
#define PMIC_VENDOR_MEMORY_REGION_PASSWORD_UPPER_BYTE_OFFSET   0x37
 
#define PMIC_VENDOR_MEMORY_REGION_PASSWORD_LOWER_BYTE_OFFSET   0x38
 
#define PMIC_VENDOR_PASSWORD_CONTROL_OFFSET   0x39
 

Enumerations

enum  READ_PMIC_ERROR_PATH { READ_PMIC_ERROR_VIA_ME , READ_PMIC_ERROR_VIA_I3C }
 

Functions

void start_monitor_pmic_error_thread ()
 
void monitor_pmic_error_via_i3c_handler ()
 
void monitor_pmic_error_via_me_handler ()
 
int get_dimm_info (uint8_t dimm_id, uint8_t *bus, uint8_t *addr)
 
int compare_pmic_error (uint8_t dimm_id, uint8_t *pmic_err_data, uint8_t pmic_err_data_len, uint8_t read_path)
 
void add_pmic_error_sel (uint8_t dimm_id, uint8_t error_type)
 
int get_pmic_fault_status ()
 
void read_pmic_error_when_dc_off ()
 
void clear_pmic_error ()
 
int write_read_pmic_via_me (uint8_t dimm_id, uint8_t offset, uint8_t read_len, uint8_t write_len, uint8_t *data, int *data_len)
 

Macro Definition Documentation

◆ CL_CPLD_BMC_CHANNEL_ADDR

#define CL_CPLD_BMC_CHANNEL_ADDR   0x1E

◆ MAX_COUNT_PMIC_ERROR_OFFSET

#define MAX_COUNT_PMIC_ERROR_OFFSET   7

◆ MAX_COUNT_PMIC_ERROR_TYPE

#define MAX_COUNT_PMIC_ERROR_TYPE   17

◆ MAX_COUNT_PMIC_VENDER_ID

#define MAX_COUNT_PMIC_VENDER_ID   1

◆ MONITOR_PMIC_ERROR_STACK_SIZE

#define MONITOR_PMIC_ERROR_STACK_SIZE   4096

◆ MONITOR_PMIC_ERROR_TIME_MS

#define MONITOR_PMIC_ERROR_TIME_MS   (3 * 1000)

◆ PMIC_CLEAR_STATUS_BITS4_OFFSET

#define PMIC_CLEAR_STATUS_BITS4_OFFSET   0x14

◆ PMIC_FAULT_STATUS_OFFSET

#define PMIC_FAULT_STATUS_OFFSET   0x0B

◆ PMIC_VENDER_ID_OFFSET

#define PMIC_VENDER_ID_OFFSET   0x3C

◆ PMIC_VENDOR_MEMORY_REGION_PASSWORD_LOWER_BYTE_OFFSET

#define PMIC_VENDOR_MEMORY_REGION_PASSWORD_LOWER_BYTE_OFFSET   0x38

◆ PMIC_VENDOR_MEMORY_REGION_PASSWORD_UPPER_BYTE_OFFSET

#define PMIC_VENDOR_MEMORY_REGION_PASSWORD_UPPER_BYTE_OFFSET   0x37

◆ PMIC_VENDOR_PASSWORD_CONTROL_OFFSET

#define PMIC_VENDOR_PASSWORD_CONTROL_OFFSET   0x39

Enumeration Type Documentation

◆ READ_PMIC_ERROR_PATH

Enumerator
READ_PMIC_ERROR_VIA_ME 
READ_PMIC_ERROR_VIA_I3C 

Function Documentation

◆ add_pmic_error_sel()

void add_pmic_error_sel ( uint8_t  dimm_id,
uint8_t  error_type 
)

◆ clear_pmic_error()

void clear_pmic_error ( )

◆ compare_pmic_error()

int compare_pmic_error ( uint8_t  dimm_id,
uint8_t *  pmic_err_data,
uint8_t  pmic_err_data_len,
uint8_t  read_path 
)

◆ get_dimm_info()

int get_dimm_info ( uint8_t  dimm_id,
uint8_t *  bus,
uint8_t *  addr 
)

◆ get_pmic_fault_status()

int get_pmic_fault_status ( )

◆ monitor_pmic_error_via_i3c_handler()

void monitor_pmic_error_via_i3c_handler ( )

◆ monitor_pmic_error_via_me_handler()

void monitor_pmic_error_via_me_handler ( )

◆ read_pmic_error_when_dc_off()

void read_pmic_error_when_dc_off ( )

◆ start_monitor_pmic_error_thread()

void start_monitor_pmic_error_thread ( )

◆ write_read_pmic_via_me()

int write_read_pmic_via_me ( uint8_t  dimm_id,
uint8_t  offset,
uint8_t  read_len,
uint8_t  write_len,
uint8_t *  data,
int *  data_len 
)
Here is the call graph for this function: