OpenBIC
OpenSource Bridge-IC
plat_power_seq.c File Reference
#include <zephyr.h>
#include <stdio.h>
#include "ipmi.h"
#include "ipmb.h"
#include "libipmi.h"
#include "plat_gpio.h"
#include "plat_isr.h"
#include "expansion_board.h"
#include "plat_sensor_table.h"
#include "plat_power_seq.h"
#include <logging/log.h>
#include "power_status.h"
Include dependency graph for plat_power_seq.c:

Macros

#define DC_ON_5_SECOND   5
 

Functions

 LOG_MODULE_REGISTER (power_sequence)
 
 K_WORK_DELAYABLE_DEFINE (set_DC_on_5s_work, set_DC_on_delayed_status)
 
void set_MB_DC_status (uint8_t gpio_num)
 
void control_power_on_sequence ()
 
void control_power_off_sequence ()
 
void control_power_stage (uint8_t control_mode, uint8_t control_seq)
 
int check_power_stage (uint8_t check_mode, uint8_t check_seq, uint8_t stage)
 

Macro Definition Documentation

◆ DC_ON_5_SECOND

#define DC_ON_5_SECOND   5

Function Documentation

◆ check_power_stage()

int check_power_stage ( uint8_t  check_mode,
uint8_t  check_seq,
uint8_t  stage 
)
Here is the call graph for this function:

◆ control_power_off_sequence()

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

◆ control_power_on_sequence()

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

◆ control_power_stage()

void control_power_stage ( uint8_t  control_mode,
uint8_t  control_seq 
)
Here is the call graph for this function:

◆ K_WORK_DELAYABLE_DEFINE()

K_WORK_DELAYABLE_DEFINE ( set_DC_on_5s_work  ,
set_DC_on_delayed_status   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( power_sequence  )

◆ set_MB_DC_status()

void set_MB_DC_status ( uint8_t  gpio_num)