OpenBIC
OpenSource Bridge-IC
plat_isr.c File Reference
#include <zephyr.h>
#include <stdio.h>
#include <stdlib.h>
#include <logging/log.h>
#include "libutil.h"
#include "libipmi.h"
#include "power_status.h"
#include "sensor.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
#include "plat_class.h"
#include "plat_isr.h"
#include "plat_hwmon.h"
#include "plat_event.h"
Include dependency graph for plat_isr.c:

Macros

#define AEGIS_CPLD_ADDR   (0x4C >> 1)
 
#define AEGIS_312M_CLK_GEN_ADDR   (0x12 >> 1)
 
#define AEGIS_EUSB_REPEATER_ADDR   (0x86 >> 1)
 

Functions

 LOG_MODULE_REGISTER (plat_isr)
 
void check_clk_handler ()
 
 K_TIMER_DEFINE (check_ubc_delayed_timer, check_ubc_delayed, NULL)
 
 K_WORK_DELAYABLE_DEFINE (check_clk_work, check_clk_handler)
 
void ISR_GPIO_FM_ASIC_0_THERMTRIP_R_N ()
 
void ISR_GPIO_RST_ATH_PWR_ON_PLD_R1_N ()
 
void ISR_GPIO_ATH_CURRENT_SENSE_0_NPCM_R ()
 
void ISR_GPIO_ATH_CURRENT_SENSE_1_NPCM_R ()
 
void ISR_GPIO_FM_ATH_HBM3_CATTRIP_ALARM_LV33_R ()
 
void ISR_GPIO_ALL_VR_PM_ALERT_R_N ()
 
void ISR_GPIO_ATH_SMB_ALERT_NPCM_LVC33_R_N ()
 
void ISR_GPIO_FM_PLD_UBC_EN_R ()
 
bool plat_i2c_read (uint8_t bus, uint8_t addr, uint8_t offset, uint8_t *data, uint8_t len)
 
bool plat_i2c_write (uint8_t bus, uint8_t addr, uint8_t offset, uint8_t *data, uint8_t len)
 
void plat_clock_init (void)
 
void plat_eusb_init (void)
 

Macro Definition Documentation

◆ AEGIS_312M_CLK_GEN_ADDR

#define AEGIS_312M_CLK_GEN_ADDR   (0x12 >> 1)

◆ AEGIS_CPLD_ADDR

#define AEGIS_CPLD_ADDR   (0x4C >> 1)

◆ AEGIS_EUSB_REPEATER_ADDR

#define AEGIS_EUSB_REPEATER_ADDR   (0x86 >> 1)

Function Documentation

◆ check_clk_handler()

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

◆ ISR_GPIO_ALL_VR_PM_ALERT_R_N()

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

◆ ISR_GPIO_ATH_CURRENT_SENSE_0_NPCM_R()

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

◆ ISR_GPIO_ATH_CURRENT_SENSE_1_NPCM_R()

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

◆ ISR_GPIO_ATH_SMB_ALERT_NPCM_LVC33_R_N()

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

◆ ISR_GPIO_FM_ASIC_0_THERMTRIP_R_N()

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

◆ ISR_GPIO_FM_ATH_HBM3_CATTRIP_ALARM_LV33_R()

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

◆ ISR_GPIO_FM_PLD_UBC_EN_R()

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

◆ ISR_GPIO_RST_ATH_PWR_ON_PLD_R1_N()

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

◆ K_TIMER_DEFINE()

K_TIMER_DEFINE ( check_ubc_delayed_timer  ,
check_ubc_delayed  ,
NULL   
)

◆ K_WORK_DELAYABLE_DEFINE()

K_WORK_DELAYABLE_DEFINE ( check_clk_work  ,
check_clk_handler   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_isr  )

◆ plat_clock_init()

void plat_clock_init ( void  )

◆ plat_eusb_init()

void plat_eusb_init ( void  )

◆ plat_i2c_read()

bool plat_i2c_read ( uint8_t  bus,
uint8_t  addr,
uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

◆ plat_i2c_write()

bool plat_i2c_write ( uint8_t  bus,
uint8_t  addr,
uint8_t  offset,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function: