OpenBIC
OpenSource Bridge-IC
plat_power_seq.c File Reference
#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"
Include dependency graph for plat_power_seq.c:

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)
 

Function Documentation

◆ check_powers_disabled()

int check_powers_disabled ( uint8_t  pwr_stage)
Here is the call graph for this function:

◆ check_powers_enabled()

int check_powers_enabled ( uint8_t  pwr_stage)
Here is the call graph for this function:

◆ cxl_ready_access()

bool cxl_ready_access ( uint8_t  sensor_num)
Here is the call graph for this function:

◆ cxl_ready_handler()

void cxl_ready_handler ( )

◆ disable_powers()

void disable_powers ( uint8_t  pwr_stage)
Here is the call graph for this function:

◆ enable_power_on_rst()

void enable_power_on_rst ( )
Here is the call graph for this function:

◆ enable_powers()

void enable_powers ( uint8_t  pwr_stage)
Here is the call graph for this function:

◆ execute_power_off_sequence()

void execute_power_off_sequence ( )
Here is the call graph for this function:

◆ execute_power_on_sequence()

void execute_power_on_sequence ( )
Here is the call graph for this function:

◆ get_cxl_ready_status()

bool get_cxl_ready_status ( )

◆ is_power_controlled()

bool is_power_controlled ( uint8_t  power_pin,
uint8_t  check_power_status,
char *  power_name 
)
Here is the call graph for this function:

◆ K_WORK_DELAYABLE_DEFINE() [1/3]

K_WORK_DELAYABLE_DEFINE ( cxl_ready_thread  ,
cxl_ready_handler   
)

◆ K_WORK_DELAYABLE_DEFINE() [2/3]

K_WORK_DELAYABLE_DEFINE ( enable_power_on_rst_work  ,
enable_power_on_rst   
)

◆ K_WORK_DELAYABLE_DEFINE() [3/3]

K_WORK_DELAYABLE_DEFINE ( set_dc_on_5s_work  ,
set_DC_on_delayed_status   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_power_seq  )

◆ power_off_handler()

int power_off_handler ( uint8_t  power_stage)
Here is the call graph for this function:

◆ power_on_handler()

int power_on_handler ( uint8_t  power_stage)
Here is the call graph for this function:

◆ set_mb_dc_status()

void set_mb_dc_status ( uint8_t  gpio_num)
Here is the call graph for this function: