OpenBIC
OpenSource Bridge-IC
|
#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"
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 () |
#define ADCUNLOCK_BBEVENT_ERROR 0b10001000 /*ADCUNLOCK and BBEVENT occurred*/ |
#define DC_ON_5_SECOND 5 |
#define DUMMY_ARG 0 |
#define I2C_RETRY 5 |
#define MFR_SPECIFIC_ERROR 0b00010000 /*MFR_SPECIFIC error occurred*/ |
#define NON_ABOVE_ERROR 0b00000001 /*None of the Above error occurred*/ |
#define P0V8_P0V9_VR 3 |
#define POWER_SEQ_CTRL_STACK_SIZE 1000 |
#define PVDDQ_AB_P0V8_VR 4 |
#define PVDDQ_CD_VR 5 |
void check_power_abnormal | ( | uint8_t | power_good_gpio_num, |
uint8_t | control_power_gpio_num | ||
) |
void ISR_MB_DC_STATE | ( | ) |
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_PASICA_PMALT | ( | ) |
void ISR_PVDDQ_AB_PMALT | ( | ) |
void ISR_PVDDQ_AB_POWER_GOOD_LOST | ( | ) |
void ISR_PVDDQ_CD_PMALT | ( | ) |
void ISR_PVDDQ_CD_POWER_GOOD_LOST | ( | ) |
void ISR_PVPP_AB_POWER_GOOD_LOST | ( | ) |
void ISR_PVPP_CD_POWER_GOOD_LOST | ( | ) |
void ISR_PVTT_AB_POWER_GOOD_LOST | ( | ) |
void ISR_PVTT_CD_POWER_GOOD_LOST | ( | ) |
K_WORK_DEFINE | ( | cxl_power_off_work | , |
control_power_off_sequence | |||
) |
K_WORK_DEFINE | ( | cxl_power_on_work | , |
control_power_on_sequence | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | record_cxl_version_work | , |
record_cxl_version | |||
) |
LOG_MODULE_REGISTER | ( | plat_isr | ) |
void record_cxl_version | ( | ) |