OpenBIC
OpenSource Bridge-IC
|
#include <zephyr.h>
#include <stdio.h>
#include <stdbool.h>
#include "ipmi.h"
#include "ipmb.h"
#include "hal_gpio.h"
#include "power_status.h"
#include "plat_m2.h"
#include "plat_class.h"
#include "plat_util.h"
#include "plat_isr.h"
#include "plat_i2c.h"
#include "plat_hwmon.h"
#include "plat_power_seq.h"
Macros | |
#define | DEV_PWRGD_HANDLER(idx) |
Functions | |
void | pwr_related_pin_init (void) |
uint8_t | get_dev_pwrgd (uint8_t idx) |
uint8_t | get_nvme_dev_ready_15s (uint8_t idx) |
uint8_t | fm_p3v3_sw_en (uint8_t idx, uint8_t val) |
uint8_t | fm_p12v_sw_en (uint8_t idx, uint8_t val) |
uint8_t | get_fm_p12v_sw_en (uint8_t idx) |
uint8_t | clkbuf_oe_en (uint8_t idx, uint8_t val) |
uint8_t | get_fm_pwrdis_status (uint8_t idx) |
uint8_t | fm_pwrdis_en (uint8_t idx, uint8_t val) |
void | check_dc_off_process (void) |
uint8_t | m2_dev_power_switch_with_pwrdis_chk (uint8_t idx, uint8_t enable, uint8_t chk_pwrdis, uint8_t force_ctl_3v3) |
uint8_t | m2_dev_power_switch (uint8_t idx, uint8_t enable) |
uint8_t | device_all_power_set (uint8_t idx, uint8_t set_val) |
void | dev_pwrgd_handler (uint8_t idx) |
void | pwrgd_p12v_aux_100ms_set (uint32_t val, uint32_t unused1) |
uint8_t | pwrgd_p12v_aux_100ms_get (void) |
void | plat_set_dc_status (uint32_t dc_pin, uint32_t unused) |
DEV_PWRGD_HANDLER (0) | |
DEV_PWRGD_HANDLER (1) | |
DEV_PWRGD_HANDLER (2) | |
DEV_PWRGD_HANDLER (3) | |
#define DEV_PWRGD_HANDLER | ( | idx | ) |
void check_dc_off_process | ( | void | ) |
uint8_t clkbuf_oe_en | ( | uint8_t | idx, |
uint8_t | val | ||
) |
DEV_PWRGD_HANDLER | ( | 0 | ) |
DEV_PWRGD_HANDLER | ( | 1 | ) |
DEV_PWRGD_HANDLER | ( | 2 | ) |
DEV_PWRGD_HANDLER | ( | 3 | ) |
void dev_pwrgd_handler | ( | uint8_t | idx | ) |
uint8_t device_all_power_set | ( | uint8_t | idx, |
uint8_t | set_val | ||
) |
uint8_t fm_p12v_sw_en | ( | uint8_t | idx, |
uint8_t | val | ||
) |
uint8_t fm_p3v3_sw_en | ( | uint8_t | idx, |
uint8_t | val | ||
) |
uint8_t fm_pwrdis_en | ( | uint8_t | idx, |
uint8_t | val | ||
) |
uint8_t get_dev_pwrgd | ( | uint8_t | idx | ) |
uint8_t get_fm_p12v_sw_en | ( | uint8_t | idx | ) |
uint8_t get_fm_pwrdis_status | ( | uint8_t | idx | ) |
uint8_t get_nvme_dev_ready_15s | ( | uint8_t | idx | ) |
uint8_t m2_dev_power_switch | ( | uint8_t | idx, |
uint8_t | enable | ||
) |
uint8_t m2_dev_power_switch_with_pwrdis_chk | ( | uint8_t | idx, |
uint8_t | enable, | ||
uint8_t | chk_pwrdis, | ||
uint8_t | force_ctl_3v3 | ||
) |
void plat_set_dc_status | ( | uint32_t | dc_pin, |
uint32_t | unused | ||
) |
void pwr_related_pin_init | ( | void | ) |
uint8_t pwrgd_p12v_aux_100ms_get | ( | void | ) |
void pwrgd_p12v_aux_100ms_set | ( | uint32_t | val, |
uint32_t | unused1 | ||
) |