OpenBIC
OpenSource Bridge-IC
|
#include <zephyr.h>
#include <logging/log.h>
#include <sys/reboot.h>
#include <stdio.h>
#include <stdlib.h>
#include "cmsis_os.h"
#include "hal_gpio.h"
#include "util_sys.h"
#include "ipmi.h"
#include "libutil.h"
#include "sensor.h"
Macros | |
#define | SYS_RST_EVT_LOG_REG 0x7e6e2074 |
#define | MAX_RETRY 10 |
#define | CHECK_READY_FLAG_DELAY_MS 500 |
#define | bic_warm_reset_delay 2000 |
#define | bic_cold_reset_delay 100 |
Functions | |
LOG_MODULE_REGISTER (util_sys) | |
void | check_ac_lost () |
bool | is_ac_lost () |
void | bic_warm_reset () |
K_WORK_DEFINE (bic_warm_reset_work, bic_warm_reset) | |
void | submit_bic_warm_reset () |
void | bic_cold_reset () |
K_WORK_DEFINE (bic_cold_reset_work, bic_cold_reset) | |
void | submit_bic_cold_reset () |
__weak void | pal_warm_reset_prepare () |
__weak void | pal_cold_reset_prepare () |
__weak int | pal_submit_bmc_cold_reset () |
__weak int | pal_host_power_control (power_ctl_t ctl_type) |
__weak bool | pal_is_bmc_present () |
__weak bool | pal_is_bmc_ready () |
__weak int | pal_submit_12v_cycle_slot () |
__weak int | pal_clear_cmos () |
__weak uint8_t | get_system_class () |
__weak int | pal_get_set_add_debug_sel_mode_status (uint8_t options, uint8_t *status) |
__weak uint8_t | pal_get_bmc_interface () |
int | set_me_firmware_mode (uint8_t me_fw_mode) |
void | init_me_firmware () |
uint8_t | get_me_mode () |
void | set_sys_ready_pin (uint8_t ready_gpio_name) |
Variables | |
uint8_t | ISL69254_DEVICE_ID [5] = { 0x04, 0x00, 0x67, 0xD2, 0x49 } |
uint8_t | XDPE12284C_DEVICE_ID [3] = { 0x02, 0x79, 0x02 } |
uint8_t | ISL69259_DEVICE_ID [5] = { 0x04, 0x00, 0x46, 0xD2, 0x49 } |
#define bic_cold_reset_delay 100 |
#define bic_warm_reset_delay 2000 |
#define CHECK_READY_FLAG_DELAY_MS 500 |
#define MAX_RETRY 10 |
#define SYS_RST_EVT_LOG_REG 0x7e6e2074 |
enum RECOVERY_MODE_CAUSE |
void bic_cold_reset | ( | ) |
void bic_warm_reset | ( | ) |
void check_ac_lost | ( | ) |
uint8_t get_me_mode | ( | ) |
__weak uint8_t get_system_class | ( | ) |
void init_me_firmware | ( | ) |
bool is_ac_lost | ( | ) |
K_WORK_DEFINE | ( | bic_cold_reset_work | , |
bic_cold_reset | |||
) |
K_WORK_DEFINE | ( | bic_warm_reset_work | , |
bic_warm_reset | |||
) |
LOG_MODULE_REGISTER | ( | util_sys | ) |
__weak int pal_clear_cmos | ( | ) |
__weak void pal_cold_reset_prepare | ( | ) |
__weak uint8_t pal_get_bmc_interface | ( | ) |
__weak int pal_get_set_add_debug_sel_mode_status | ( | uint8_t | options, |
uint8_t * | status | ||
) |
__weak int pal_host_power_control | ( | power_ctl_t | ctl_type | ) |
__weak bool pal_is_bmc_present | ( | ) |
__weak bool pal_is_bmc_ready | ( | ) |
__weak int pal_submit_12v_cycle_slot | ( | ) |
int pal_submit_bmc_cold_reset | ( | ) |
__weak void pal_warm_reset_prepare | ( | ) |
int set_me_firmware_mode | ( | uint8_t | me_fw_mode | ) |
void set_sys_ready_pin | ( | uint8_t | ready_gpio_name | ) |
void submit_bic_cold_reset | ( | ) |
void submit_bic_warm_reset | ( | ) |
uint8_t ISL69254_DEVICE_ID[5] = { 0x04, 0x00, 0x67, 0xD2, 0x49 } |
uint8_t ISL69259_DEVICE_ID[5] = { 0x04, 0x00, 0x46, 0xD2, 0x49 } |
uint8_t XDPE12284C_DEVICE_ID[3] = { 0x02, 0x79, 0x02 } |