OpenBIC
OpenSource Bridge-IC
plat_isr.c File Reference
#include <logging/log.h>
#include <stdlib.h>
#include <pmbus.h>
#include "libipmi.h"
#include "app_handler.h"
#include "kcs.h"
#include "rg3mxxb12.h"
#include "power_status.h"
#include "sensor.h"
#include "snoop.h"
#include "apml.h"
#include "hal_gpio.h"
#include "hal_i2c.h"
#include "hal_i3c.h"
#include "util_sys.h"
#include "util_worker.h"
#include "plat_gpio.h"
#include "plat_class.h"
#include "plat_pldm_sensor.h"
#include "plat_sensor_table.h"
#include "plat_i2c.h"
#include "plat_mctp.h"
#include "plat_apml.h"
#include "plat_i3c.h"
#include "plat_isr.h"
#include "plat_dimm.h"
#include "pcc.h"
#include "plat_pmic.h"
Include dependency graph for plat_isr.c:

Macros

#define DC_ON_5_SECOND   5
 
#define PROC_FAIL_START_DELAY_SECOND   10
 
#define VR_EVENT_DELAY_MS   10
 
#define READ_PMIC_CRITICAL_ERROR_MS   200
 
#define DETECT_VR_WDT_DELAY_S   10
 

Functions

 LOG_MODULE_REGISTER (plat_isr, LOG_LEVEL_DBG)
 
void init_event_work ()
 
void addsel_work_handler (struct k_work *work_item)
 
void reinit_i3c_hub ()
 
void switch_i3c_dimm_mux_to_cpu ()
 
 K_WORK_DELAYABLE_DEFINE (set_DC_on_5s_work, set_DC_on_delayed_status)
 
 K_WORK_DEFINE (reinit_i3c_work, reinit_i3c_hub)
 
 K_WORK_DEFINE (switch_i3c_dimm_work, switch_i3c_dimm_mux_to_cpu)
 
 K_WORK_DELAYABLE_DEFINE (PROC_FAIL_work, PROC_FAIL_handler)
 
 K_WORK_DELAYABLE_DEFINE (ABORT_FRB2_WDT_THREAD, abort_frb2_wdt_thread)
 
 K_WORK_DELAYABLE_DEFINE (read_pmic_critical_work, read_pmic_error_when_dc_off)
 
void ISR_DC_ON ()
 
void ISR_POST_COMPLETE ()
 
void ISR_BMC_READY ()
 
 K_WORK_DELAYABLE_DEFINE (SLP3_work, SLP3_handler)
 
void ISR_SLP3 ()
 
void ISR_DBP_PRSNT ()
 
void ISR_MB_THROTTLE ()
 
void ISR_SOC_THMALTRIP ()
 
void ISR_SYS_THROTTLE ()
 
void ISR_HSC_OC ()
 
void init_vr_event_work ()
 
void process_vr_pmalert_ocp_sel (struct k_work *work_item)
 
void ISR_PVDDCR_CPU0_OCP ()
 
void ISR_PVDDCR_CPU1_OCP ()
 
void ISR_PVDD11_S3_PMALERT ()
 
void ISR_UV_DETECT ()
 
void IST_PLTRST ()
 
 K_WORK_DELAYABLE_DEFINE (APML_ALERT_work, APML_ALERT_handler)
 
void ISR_APML_ALERT ()
 
void ISR_PVDDCR_CPU0_PMALERT ()
 
void ISR_PVDDCR_CPU1_PMALERT ()
 
void ISR_CPU_SMERR_BIC ()
 

Variables

uint8_t hw_event_register [13] = { 0 }
 
add_vr_sel_info vr_event_work_item []
 
add_sel_info event_work_items []
 

Macro Definition Documentation

◆ DC_ON_5_SECOND

#define DC_ON_5_SECOND   5

◆ DETECT_VR_WDT_DELAY_S

#define DETECT_VR_WDT_DELAY_S   10

◆ PROC_FAIL_START_DELAY_SECOND

#define PROC_FAIL_START_DELAY_SECOND   10

◆ READ_PMIC_CRITICAL_ERROR_MS

#define READ_PMIC_CRITICAL_ERROR_MS   200

◆ VR_EVENT_DELAY_MS

#define VR_EVENT_DELAY_MS   10

Function Documentation

◆ addsel_work_handler()

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

◆ init_event_work()

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

◆ init_vr_event_work()

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

◆ ISR_APML_ALERT()

void ISR_APML_ALERT ( )

◆ ISR_BMC_READY()

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

◆ ISR_CPU_SMERR_BIC()

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

◆ ISR_DBP_PRSNT()

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

◆ ISR_DC_ON()

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

◆ ISR_HSC_OC()

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

◆ ISR_MB_THROTTLE()

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

◆ ISR_POST_COMPLETE()

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

◆ ISR_PVDD11_S3_PMALERT()

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

◆ ISR_PVDDCR_CPU0_OCP()

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

◆ ISR_PVDDCR_CPU0_PMALERT()

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

◆ ISR_PVDDCR_CPU1_OCP()

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

◆ ISR_PVDDCR_CPU1_PMALERT()

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

◆ ISR_SLP3()

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

◆ ISR_SOC_THMALTRIP()

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

◆ ISR_SYS_THROTTLE()

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

◆ ISR_UV_DETECT()

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

◆ IST_PLTRST()

void IST_PLTRST ( )

◆ K_WORK_DEFINE() [1/2]

K_WORK_DEFINE ( reinit_i3c_work  ,
reinit_i3c_hub   
)

◆ K_WORK_DEFINE() [2/2]

K_WORK_DEFINE ( switch_i3c_dimm_work  ,
switch_i3c_dimm_mux_to_cpu   
)

◆ K_WORK_DELAYABLE_DEFINE() [1/6]

K_WORK_DELAYABLE_DEFINE ( ABORT_FRB2_WDT_THREAD  ,
abort_frb2_wdt_thread   
)

◆ K_WORK_DELAYABLE_DEFINE() [2/6]

K_WORK_DELAYABLE_DEFINE ( APML_ALERT_work  ,
APML_ALERT_handler   
)

◆ K_WORK_DELAYABLE_DEFINE() [3/6]

K_WORK_DELAYABLE_DEFINE ( PROC_FAIL_work  ,
PROC_FAIL_handler   
)

◆ K_WORK_DELAYABLE_DEFINE() [4/6]

K_WORK_DELAYABLE_DEFINE ( read_pmic_critical_work  ,
read_pmic_error_when_dc_off   
)

◆ K_WORK_DELAYABLE_DEFINE() [5/6]

K_WORK_DELAYABLE_DEFINE ( set_DC_on_5s_work  ,
set_DC_on_delayed_status   
)

◆ K_WORK_DELAYABLE_DEFINE() [6/6]

K_WORK_DELAYABLE_DEFINE ( SLP3_work  ,
SLP3_handler   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_isr  ,
LOG_LEVEL_DBG   
)

◆ process_vr_pmalert_ocp_sel()

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

◆ reinit_i3c_hub()

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

◆ switch_i3c_dimm_mux_to_cpu()

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

Variable Documentation

◆ event_work_items

add_sel_info event_work_items[]

◆ hw_event_register

uint8_t hw_event_register[13] = { 0 }

◆ vr_event_work_item

add_vr_sel_info vr_event_work_item[]