OpenBIC
OpenSource Bridge-IC
|
#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"
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) |
#define AEGIS_312M_CLK_GEN_ADDR (0x12 >> 1) |
#define AEGIS_CPLD_ADDR (0x4C >> 1) |
#define AEGIS_EUSB_REPEATER_ADDR (0x86 >> 1) |
void check_clk_handler | ( | ) |
void ISR_GPIO_ALL_VR_PM_ALERT_R_N | ( | ) |
void ISR_GPIO_ATH_CURRENT_SENSE_0_NPCM_R | ( | ) |
void ISR_GPIO_ATH_CURRENT_SENSE_1_NPCM_R | ( | ) |
void ISR_GPIO_ATH_SMB_ALERT_NPCM_LVC33_R_N | ( | ) |
void ISR_GPIO_FM_ASIC_0_THERMTRIP_R_N | ( | ) |
void ISR_GPIO_FM_ATH_HBM3_CATTRIP_ALARM_LV33_R | ( | ) |
void ISR_GPIO_FM_PLD_UBC_EN_R | ( | ) |
void ISR_GPIO_RST_ATH_PWR_ON_PLD_R1_N | ( | ) |
K_TIMER_DEFINE | ( | check_ubc_delayed_timer | , |
check_ubc_delayed | , | ||
NULL | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | check_clk_work | , |
check_clk_handler | |||
) |
LOG_MODULE_REGISTER | ( | plat_isr | ) |
void plat_clock_init | ( | void | ) |
void plat_eusb_init | ( | void | ) |
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 | ||
) |