OpenBIC
OpenSource Bridge-IC
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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_power_seq.h"
#include "plat_mctp.h"
#include "plat_isr.h"
#include "plat_class.h"
Include dependency graph for plat_isr.c:

Macros

#define VR_EVENT_DELAY_MS   10
 

Functions

 LOG_MODULE_REGISTER (plat_isr)
 
void init_vr_event_work ()
 
void process_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_SET_CXL_LED ()
 
void ISR_IOE1_INT ()
 

Variables

add_vr_sel_info vr_event_work_items []
 

Macro Definition Documentation

◆ VR_EVENT_DELAY_MS

#define VR_EVENT_DELAY_MS   10

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_SET_CXL_LED()

void ISR_SET_CXL_LED ( )

◆ 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_vr_event_handler()

void process_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[]
Initial value:
= {
{
.is_init = false,
.vr_num = 0,
.vr_i2c_bus = I2C_BUS8,
.vr_addr = 0x62,
.page_cnt = 2,
},
{
.is_init = false,
.vr_num = 1,
.vr_i2c_bus = I2C_BUS8,
.vr_addr = 0x5a,
.page_cnt = 2,
},
{
.is_init = false,
.vr_num = 2,
.vr_i2c_bus = I2C_BUS3,
.vr_addr = 0x76,
.page_cnt = 2,
},
{
.is_init = false,
.vr_num = 3,
.vr_i2c_bus = I2C_BUS3,
.vr_addr = 0x72,
.page_cnt = 2,
},
}
#define I2C_BUS3
Definition: plat_i2c.h:26
#define I2C_BUS8
Definition: plat_i2c.h:31