OpenBIC
OpenSource Bridge-IC
plat_isr.c File Reference
#include <logging/log.h>
#include <pmbus.h>
#include "util_worker.h"
#include "hal_gpio.h"
#include "hal_i2c.h"
#include "power_status.h"
#include "plat_gpio.h"
#include "plat_pldm_sensor.h"
#include "plat_power_seq.h"
#include "plat_mctp.h"
#include "plat_isr.h"
#include "plat_class.h"
#include "sensor.h"
Include dependency graph for plat_isr.c:

Functions

 LOG_MODULE_REGISTER (plat_isr)
 
void init_vr_event_work ()
 
void process_pmbus_vr_event_handler (struct k_work *work_item)
 
void process_non_pmbus_vr_event_handler (struct k_work *work_item)
 
void set_e1s_pe_reset ()
 
void set_asic_and_e1s_clk_handler ()
 
void set_cxl_led ()
 
 K_WORK_DEFINE (cxl_power_on_work, execute_power_on_sequence)
 
 K_WORK_DEFINE (cxl_power_off_work, execute_power_off_sequence)
 
 K_WORK_DELAYABLE_DEFINE (set_clk_buf_bypass_work, set_clk_buf_bypass_handler)
 
void ISR_MB_DC_STAGUS_CHAGNE ()
 
 K_WORK_DEFINE (set_e1s_pe_reset_work, set_e1s_pe_reset)
 
void ISR_MB_PCIE_RST ()
 
 K_WORK_DEFINE (e1s_pwr_on_work, set_asic_and_e1s_clk_handler)
 
void ISR_P3V3_E1S_PWR_CHANGE ()
 
void ISR_P12V_E1S_PWR_CHANGE ()
 
 K_WORK_DEFINE (_set_cxl_led, set_cxl_led)
 
void ISR_PVTT_CD_ASIC1_PWR_CHANGE ()
 
void ISR_PVTT_CD_ASIC2_PWR_CHANGE ()
 
void ISR_IOE1_INT ()
 
void ISR_PVTT_AB_ASIC1_VR_FAULT ()
 
void ISR_PVTT_AB_ASIC2_VR_FAULT ()
 
void ISR_PVPP_AB_ASIC1_VR_FAULT ()
 
void ISR_PVPP_AB_ASIC2_VR_FAULT ()
 
void ISR_PVPP_CD_ASIC1_VR_FAULT ()
 
void ISR_PVPP_CD_ASIC2_VR_FAULT ()
 

Variables

add_vr_sel_info vr_event_work_items []
 
const vr_fault_info vr_fault_table []
 
const uint8_t vr_reg_list [][8]
 

Function Documentation

◆ init_vr_event_work()

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

◆ ISR_IOE1_INT()

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

◆ ISR_MB_DC_STAGUS_CHAGNE()

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

◆ ISR_MB_PCIE_RST()

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

◆ ISR_P12V_E1S_PWR_CHANGE()

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

◆ ISR_P3V3_E1S_PWR_CHANGE()

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

◆ ISR_PVPP_AB_ASIC1_VR_FAULT()

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

◆ ISR_PVPP_AB_ASIC2_VR_FAULT()

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

◆ ISR_PVPP_CD_ASIC1_VR_FAULT()

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

◆ ISR_PVPP_CD_ASIC2_VR_FAULT()

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

◆ ISR_PVTT_AB_ASIC1_VR_FAULT()

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

◆ ISR_PVTT_AB_ASIC2_VR_FAULT()

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

◆ ISR_PVTT_CD_ASIC1_PWR_CHANGE()

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

◆ ISR_PVTT_CD_ASIC2_PWR_CHANGE()

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

◆ K_WORK_DEFINE() [1/5]

K_WORK_DEFINE ( _set_cxl_led  ,
set_cxl_led   
)

◆ K_WORK_DEFINE() [2/5]

K_WORK_DEFINE ( cxl_power_off_work  ,
execute_power_off_sequence   
)

◆ K_WORK_DEFINE() [3/5]

K_WORK_DEFINE ( cxl_power_on_work  ,
execute_power_on_sequence   
)

◆ K_WORK_DEFINE() [4/5]

K_WORK_DEFINE ( e1s_pwr_on_work  ,
set_asic_and_e1s_clk_handler   
)

◆ K_WORK_DEFINE() [5/5]

K_WORK_DEFINE ( set_e1s_pe_reset_work  ,
set_e1s_pe_reset   
)

◆ K_WORK_DELAYABLE_DEFINE()

K_WORK_DELAYABLE_DEFINE ( set_clk_buf_bypass_work  ,
set_clk_buf_bypass_handler   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_isr  )

◆ process_non_pmbus_vr_event_handler()

void process_non_pmbus_vr_event_handler ( struct k_work *  work_item)
Here is the call graph for this function:

◆ process_pmbus_vr_event_handler()

void process_pmbus_vr_event_handler ( struct k_work *  work_item)
Here is the call graph for this function:

◆ set_asic_and_e1s_clk_handler()

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

◆ set_cxl_led()

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

◆ set_e1s_pe_reset()

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

Variable Documentation

◆ vr_event_work_items

add_vr_sel_info vr_event_work_items[]

◆ vr_fault_table

const vr_fault_info vr_fault_table[]
Initial value:
= {
}
#define I2C_BUS3
Definition: plat_i2c.h:26
#define I2C_BUS8
Definition: plat_i2c.h:31
@ P0V8_ASIC1
Definition: pldm_oem.h:117
@ PVDDQ_CD_ASIC2
Definition: pldm_oem.h:120
@ P0V8_ASIC2
Definition: pldm_oem.h:121
@ P0V85_ASIC2
Definition: pldm_oem.h:119
@ PVDDQ_CD_ASIC1
Definition: pldm_oem.h:116
@ P0V85_ASIC1
Definition: pldm_oem.h:115
@ PVDDQ_AB_ASIC2
Definition: pldm_oem.h:118
@ PVDDQ_AB_ASIC1
Definition: pldm_oem.h:114
@ IOE_P03
Definition: plat_gpio.h:258
@ IOE_P04
Definition: plat_gpio.h:259
#define IOE_SWITCH_CXL1_VR_TO_BIC
Definition: plat_isr.h:40
#define IOE_SWITCH_CXL2_VR_TO_BIC
Definition: plat_isr.h:41
#define ADDR_VR_P0V85_ASIC1
Definition: plat_pldm_sensor.h:27
#define ADDR_VR_PVDDQ_CD_ASIC2
Definition: plat_pldm_sensor.h:34
#define ADDR_VR_P0V8_ASIC1
Definition: plat_pldm_sensor.h:28
#define ADDR_VR_P0V8_ASIC2
Definition: plat_pldm_sensor.h:32
#define ADDR_VR_PVDDQ_CD_ASIC1
Definition: plat_pldm_sensor.h:30
#define ADDR_VR_PVDDQ_AB_ASIC1
Definition: plat_pldm_sensor.h:29
#define ADDR_VR_P0V85_ASIC2
Definition: plat_pldm_sensor.h:31
#define ADDR_VR_PVDDQ_AB_ASIC2
Definition: plat_pldm_sensor.h:33

◆ vr_reg_list

const uint8_t vr_reg_list[][8]
Initial value:
= {
}
@ PMBUS_STATUS_WORD
Definition: pmbus.h:102
@ PMBUS_STATUS_IOUT
Definition: pmbus.h:104
@ PMBUS_STATUS_MFR_SPECIFIC
Definition: pmbus.h:109
@ PMBUS_STATUS_BYTE
Definition: pmbus.h:101
@ PMBUS_STATUS_CML
Definition: pmbus.h:107
@ PMBUS_STATUS_TEMPERATURE
Definition: pmbus.h:106
@ PMBUS_STATUS_VOUT
Definition: pmbus.h:103
@ PMBUS_STATUS_INPUT
Definition: pmbus.h:105
#define PMBUS_DRMOS_FAULT
Definition: plat_isr.h:76