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 GL_CPLD_BMC_CHANNEL_ADDR   0x1E
 
#define PMIC_FAULT_STATUS_OFFSET   0x0B
 
#define PMIC_CLEAR_STATUS_BITS4_OFFSET   0x14
 
#define PMIC_VENDOR_PASSWORD_CONTROL_OFFSET   0x39
 

Functions

void start_monitor_pmic_error_thread ()
 
void monitor_pmic_error_via_i3c_handler ()
 
int compare_pmic_error (uint8_t dimm_id, uint8_t *pmic_err_data, uint8_t pmic_err_data_len)
 
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 ()
 

Macro Definition Documentation

◆ GL_CPLD_BMC_CHANNEL_ADDR

#define GL_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

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

#define PMIC_VENDOR_PASSWORD_CONTROL_OFFSET   0x39

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 ( )
Here is the call graph for this function:

◆ compare_pmic_error()

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

◆ get_pmic_fault_status()

int get_pmic_fault_status ( )

◆ monitor_pmic_error_via_i3c_handler()

void monitor_pmic_error_via_i3c_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 ( )