OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <logging/log.h>
#include <drivers/sensor.h>
#include <drivers/pwm.h>
#include "power_status.h"
#include "vistara.h"
#include "plat_class.h"
#include "plat_gpio.h"
#include "plat_power_seq.h"
Functions | |
LOG_MODULE_REGISTER (plat_power_seq) | |
K_WORK_DELAYABLE_DEFINE (set_dc_on_5s_work, set_DC_on_delayed_status) | |
K_WORK_DELAYABLE_DEFINE (cxl_ready_thread, cxl_ready_handler) | |
K_WORK_DELAYABLE_DEFINE (enable_power_on_rst_work, enable_power_on_rst) | |
void | enable_power_on_rst () |
void | set_mb_dc_status (uint8_t gpio_num) |
void | execute_power_on_sequence () |
void | execute_power_off_sequence () |
int | power_on_handler (uint8_t power_stage) |
int | power_off_handler (uint8_t power_stage) |
void | enable_powers (uint8_t pwr_stage) |
void | disable_powers (uint8_t pwr_stage) |
int | check_powers_enabled (uint8_t pwr_stage) |
int | check_powers_disabled (uint8_t pwr_stage) |
bool | is_power_controlled (uint8_t power_pin, uint8_t check_power_status, char *power_name) |
void | cxl_ready_handler () |
bool | get_cxl_ready_status () |
bool | cxl_ready_access (uint8_t sensor_num) |
int check_powers_disabled | ( | uint8_t | pwr_stage | ) |
int check_powers_enabled | ( | uint8_t | pwr_stage | ) |
bool cxl_ready_access | ( | uint8_t | sensor_num | ) |
void cxl_ready_handler | ( | ) |
void disable_powers | ( | uint8_t | pwr_stage | ) |
void enable_power_on_rst | ( | ) |
void enable_powers | ( | uint8_t | pwr_stage | ) |
void execute_power_off_sequence | ( | ) |
void execute_power_on_sequence | ( | ) |
bool get_cxl_ready_status | ( | ) |
bool is_power_controlled | ( | uint8_t | power_pin, |
uint8_t | check_power_status, | ||
char * | power_name | ||
) |
K_WORK_DELAYABLE_DEFINE | ( | cxl_ready_thread | , |
cxl_ready_handler | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | enable_power_on_rst_work | , |
enable_power_on_rst | |||
) |
K_WORK_DELAYABLE_DEFINE | ( | set_dc_on_5s_work | , |
set_DC_on_delayed_status | |||
) |
LOG_MODULE_REGISTER | ( | plat_power_seq | ) |
int power_off_handler | ( | uint8_t | power_stage | ) |
int power_on_handler | ( | uint8_t | power_stage | ) |
void set_mb_dc_status | ( | uint8_t | gpio_num | ) |