OpenBIC
OpenSource Bridge-IC
plat_isr.c File Reference
#include <zephyr.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ipmi.h>
#include <pmbus.h>
#include <libipmi.h>
#include <ipmb.h>
#include <libutil.h>
#include <hal_i2c.h>
#include <logging/log.h>
#include "plat_power_seq.h"
#include "power_status.h"
#include "plat_gpio.h"
#include "plat_isr.h"
#include "plat_i2c.h"
#include "plat_sensor_table.h"
#include "util_worker.h"
#include "sensor.h"
#include "plat_hook.h"
#include "plat_fru.h"
#include "eeprom.h"
#include "cci.h"
#include "mctp.h"
#include "plat_mctp.h"
#include "plat_ipmi.h"
Include dependency graph for plat_isr.c:

Macros

#define DUMMY_ARG   0
 
#define POWER_SEQ_CTRL_STACK_SIZE   1000
 
#define DC_ON_5_SECOND   5
 
#define I2C_RETRY   5
 
#define P0V8_P0V9_VR   3
 
#define PVDDQ_AB_P0V8_VR   4
 
#define PVDDQ_CD_VR   5
 
#define NON_ABOVE_ERROR   0b00000001 /*None of the Above error occurred*/
 
#define MFR_SPECIFIC_ERROR   0b00010000 /*MFR_SPECIFIC error occurred*/
 
#define ADCUNLOCK_BBEVENT_ERROR   0b10001000 /*ADCUNLOCK and BBEVENT occurred*/
 

Functions

 LOG_MODULE_REGISTER (plat_isr)
 
 K_WORK_DEFINE (cxl_power_on_work, control_power_on_sequence)
 
 K_WORK_DEFINE (cxl_power_off_work, control_power_off_sequence)
 
 K_WORK_DELAYABLE_DEFINE (record_cxl_version_work, record_cxl_version)
 
void check_power_abnormal (uint8_t power_good_gpio_num, uint8_t control_power_gpio_num)
 
void ISR_MB_DC_STATE ()
 
void record_cxl_version ()
 
void ISR_MB_RST ()
 
void ISR_P0V8_ASICA_POWER_GOOD_LOST ()
 
void ISR_P0V8_ASICD_POWER_GOOD_LOST ()
 
void ISR_P0V9_ASICA_POWER_GOOD_LOST ()
 
void ISR_P1V8_ASIC_POWER_GOOD_LOST ()
 
void ISR_PVPP_AB_POWER_GOOD_LOST ()
 
void ISR_PVPP_CD_POWER_GOOD_LOST ()
 
void ISR_PVDDQ_AB_POWER_GOOD_LOST ()
 
void ISR_PVDDQ_CD_POWER_GOOD_LOST ()
 
void ISR_PVTT_AB_POWER_GOOD_LOST ()
 
void ISR_PVTT_CD_POWER_GOOD_LOST ()
 
void ISR_PASICA_PMALT ()
 
void ISR_PVDDQ_AB_PMALT ()
 
void ISR_PVDDQ_CD_PMALT ()
 

Macro Definition Documentation

◆ ADCUNLOCK_BBEVENT_ERROR

#define ADCUNLOCK_BBEVENT_ERROR   0b10001000 /*ADCUNLOCK and BBEVENT occurred*/

◆ DC_ON_5_SECOND

#define DC_ON_5_SECOND   5

◆ DUMMY_ARG

#define DUMMY_ARG   0

◆ I2C_RETRY

#define I2C_RETRY   5

◆ MFR_SPECIFIC_ERROR

#define MFR_SPECIFIC_ERROR   0b00010000 /*MFR_SPECIFIC error occurred*/

◆ NON_ABOVE_ERROR

#define NON_ABOVE_ERROR   0b00000001 /*None of the Above error occurred*/

◆ P0V8_P0V9_VR

#define P0V8_P0V9_VR   3

◆ POWER_SEQ_CTRL_STACK_SIZE

#define POWER_SEQ_CTRL_STACK_SIZE   1000

◆ PVDDQ_AB_P0V8_VR

#define PVDDQ_AB_P0V8_VR   4

◆ PVDDQ_CD_VR

#define PVDDQ_CD_VR   5

Function Documentation

◆ check_power_abnormal()

void check_power_abnormal ( uint8_t  power_good_gpio_num,
uint8_t  control_power_gpio_num 
)
Here is the call graph for this function:

◆ ISR_MB_DC_STATE()

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

◆ ISR_MB_RST()

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

◆ ISR_P0V8_ASICA_POWER_GOOD_LOST()

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

◆ ISR_P0V8_ASICD_POWER_GOOD_LOST()

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

◆ ISR_P0V9_ASICA_POWER_GOOD_LOST()

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

◆ ISR_P1V8_ASIC_POWER_GOOD_LOST()

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

◆ ISR_PASICA_PMALT()

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

◆ ISR_PVDDQ_AB_PMALT()

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

◆ ISR_PVDDQ_AB_POWER_GOOD_LOST()

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

◆ ISR_PVDDQ_CD_PMALT()

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

◆ ISR_PVDDQ_CD_POWER_GOOD_LOST()

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

◆ ISR_PVPP_AB_POWER_GOOD_LOST()

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

◆ ISR_PVPP_CD_POWER_GOOD_LOST()

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

◆ ISR_PVTT_AB_POWER_GOOD_LOST()

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

◆ ISR_PVTT_CD_POWER_GOOD_LOST()

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

◆ K_WORK_DEFINE() [1/2]

K_WORK_DEFINE ( cxl_power_off_work  ,
control_power_off_sequence   
)

◆ K_WORK_DEFINE() [2/2]

K_WORK_DEFINE ( cxl_power_on_work  ,
control_power_on_sequence   
)

◆ K_WORK_DELAYABLE_DEFINE()

K_WORK_DELAYABLE_DEFINE ( record_cxl_version_work  ,
record_cxl_version   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_isr  )

◆ record_cxl_version()

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