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 CLEAR_MTP_DELAY_MS   200
 
#define CLEAR_MTP_RETRY_MAX   5
 
#define MAX_COUNT_PMIC_ERROR_OFFSET   7
 
#define MAX_COUNT_PMIC_ERROR_TYPE   17
 
#define MAX_LEN_PMIC_CRITICAL_ERROR_INDEX   11
 
#define PMIC_ERROR_STATUS_START_OFFSET   0x04
 
#define PMIC_CLEAR_STATUS_BITS4_OFFSET   0x14
 
#define PMIC_CLEAR_ERROR_INJECTION_CFG_OFFSET   0x35
 
#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)
 
int get_pmic_fault_status ()
 
void read_pmic_error_when_dc_off ()
 
void clear_pmic_error (uint8_t dimm_id)
 
void add_pmic_error_sel (uint8_t dimm_id, uint8_t error_type)
 
int get_pmic_error_data (uint8_t dimm_id, uint8_t *buffer)
 
void init_pmic_event_work ()
 

Macro Definition Documentation

◆ CLEAR_MTP_DELAY_MS

#define CLEAR_MTP_DELAY_MS   200

◆ CLEAR_MTP_RETRY_MAX

#define CLEAR_MTP_RETRY_MAX   5

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

#define MAX_LEN_PMIC_CRITICAL_ERROR_INDEX   11

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

#define PMIC_CLEAR_ERROR_INJECTION_CFG_OFFSET   0x35

◆ PMIC_CLEAR_STATUS_BITS4_OFFSET

#define PMIC_CLEAR_STATUS_BITS4_OFFSET   0x14

◆ PMIC_ERROR_STATUS_START_OFFSET

#define PMIC_ERROR_STATUS_START_OFFSET   0x04

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

◆ clear_pmic_error()

void clear_pmic_error ( uint8_t  dimm_id)
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_error_data()

int get_pmic_error_data ( uint8_t  dimm_id,
uint8_t *  buffer 
)
Here is the call graph for this function:

◆ get_pmic_fault_status()

int get_pmic_fault_status ( )
Here is the call graph for this function:

◆ init_pmic_event_work()

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

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

◆ start_monitor_pmic_error_thread()

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