OpenBIC
OpenSource Bridge-IC
|
#include <logging/log.h>
#include <stdlib.h>
#include <pmbus.h>
#include "libipmi.h"
#include "app_handler.h"
#include "kcs.h"
#include "rg3mxxb12.h"
#include "p3h284x.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"
Macros | |
#define | MB_THROTTLE_WORKQ_STACK_SIZE 1024 |
#define | MB_THROTTLE_WORKQ_PRIORITY K_PRIO_PREEMPT(2) |
#define | SYS_THROTTLE_WORKQ_STACK_SIZE 1024 |
#define | SYS_THROTTLE_WORKQ_PRIORITY K_PRIO_PREEMPT(2) |
#define | POST_TIMEOUT_SECONDS 1200 |
#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 |
Variables | |
uint8_t | hw_event_register [13] = { 0 } |
add_vr_sel_info | vr_event_work_item [] |
add_sel_info | event_work_items [] |
struct k_work_q | mb_throttle_work_q |
struct k_work_q | sys_throttle_work_q |
const vr_fault_info | vr_fault_table [] |
const cpld_reg_info | cpld_reg_table [CPLD_REG_INFO_IDX_MAX] |
const uint8_t | vr_reg_list [][9] |
#define DC_ON_5_SECOND 5 |
#define DETECT_VR_WDT_DELAY_S 10 |
#define MB_THROTTLE_WORKQ_PRIORITY K_PRIO_PREEMPT(2) |
#define MB_THROTTLE_WORKQ_STACK_SIZE 1024 |
#define POST_TIMEOUT_SECONDS 1200 |
#define PROC_FAIL_START_DELAY_SECOND 10 |
#define READ_PMIC_CRITICAL_ERROR_MS 200 |
#define SYS_THROTTLE_WORKQ_PRIORITY K_PRIO_PREEMPT(2) |
#define SYS_THROTTLE_WORKQ_STACK_SIZE 1024 |
#define VR_EVENT_DELAY_MS 10 |
void add_post_timeout_sel_work_handler | ( | struct k_work * | work | ) |
void addsel_work_handler | ( | struct k_work * | work_item | ) |
void init_event_work | ( | ) |
void init_fastprochot_work_q | ( | void | ) |
void init_post_timeout_event_work | ( | void | ) |
void init_throttle_work_q | ( | void | ) |
void init_vr_event_work | ( | ) |
void ISR_APML_ALERT | ( | ) |
void ISR_BMC_READY | ( | ) |
void ISR_CPU_SMERR_BIC | ( | ) |
void ISR_DBP_PRSNT | ( | ) |
void ISR_DC_ON | ( | ) |
void ISR_HSC_OC | ( | ) |
void ISR_MB_THROTTLE | ( | ) |
void ISR_POST_COMPLETE | ( | ) |
void ISR_SLP3 | ( | ) |
void ISR_SOC_THMALTRIP | ( | ) |
void ISR_SYS_THROTTLE | ( | ) |
void ISR_UV_DETECT | ( | ) |
void ISR_VR_PWR_FAULT | ( | ) |
void ISR_WF_BIC_READY | ( | ) |
void IST_PLTRST | ( | ) |
K_THREAD_STACK_DEFINE | ( | mb_throttle_workq_stack | , |
MB_THROTTLE_WORKQ_STACK_SIZE | |||
) |
K_THREAD_STACK_DEFINE | ( | sys_throttle_workq_stack | , |
SYS_THROTTLE_WORKQ_STACK_SIZE | |||
) |
K_TIMER_DEFINE | ( | power_on_timer | , |
post_timeout_handler | , | ||
NULL | |||
) |
K_WORK_DEFINE | ( | reinit_i3c_work | , |
reinit_i3c_hub | |||
) |
K_WORK_DEFINE | ( | set_ffwf_eid_work | , |
set_ffwf_eid | |||
) |
K_WORK_DEFINE | ( | switch_i3c_dimm_work | , |
switch_i3c_dimm_mux_to_cpu | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | ABORT_FRB2_WDT_THREAD | , |
abort_frb2_wdt_thread | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | APML_ALERT_work | , |
APML_ALERT_handler | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | PROC_FAIL_work | , |
PROC_FAIL_handler | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | read_pmic_critical_work | , |
read_pmic_error_when_dc_off | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | set_DC_on_5s_work | , |
set_DC_on_delayed_status | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | SLP3_work | , |
SLP3_handler | |||
) |
LOG_MODULE_REGISTER | ( | plat_isr | , |
LOG_LEVEL_DBG | |||
) |
void post_timeout_handler | ( | struct k_timer * | timer_id | ) |
void process_vr_power_fault_sel | ( | struct k_work * | work_item | ) |
void reinit_i3c_hub | ( | ) |
void set_ffwf_eid | ( | ) |
void switch_i3c_dimm_mux_to_cpu | ( | ) |
const cpld_reg_info cpld_reg_table[CPLD_REG_INFO_IDX_MAX] |
add_sel_info event_work_items[] |
uint8_t hw_event_register[13] = { 0 } |
struct k_work_q mb_throttle_work_q |
struct k_work_q sys_throttle_work_q |
add_vr_sel_info vr_event_work_item[] |
const vr_fault_info vr_fault_table[] |
const uint8_t vr_reg_list[][9] |