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

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)
 

Macro Definition Documentation

◆ DEV_PWRGD_HANDLER

#define DEV_PWRGD_HANDLER (   idx)
Value:
void dev_pwrgd_handler_dev##idx(void) \
{ \
dev_pwrgd_handler(idx); \
}
uint8_t idx
Definition: plat_util.c:39

Function Documentation

◆ check_dc_off_process()

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

◆ clkbuf_oe_en()

uint8_t clkbuf_oe_en ( uint8_t  idx,
uint8_t  val 
)
Here is the call graph for this function:

◆ DEV_PWRGD_HANDLER() [1/4]

DEV_PWRGD_HANDLER ( )

◆ DEV_PWRGD_HANDLER() [2/4]

DEV_PWRGD_HANDLER ( )

◆ DEV_PWRGD_HANDLER() [3/4]

DEV_PWRGD_HANDLER ( )

◆ DEV_PWRGD_HANDLER() [4/4]

DEV_PWRGD_HANDLER ( )

◆ dev_pwrgd_handler()

void dev_pwrgd_handler ( uint8_t  idx)
Here is the call graph for this function:

◆ device_all_power_set()

uint8_t device_all_power_set ( uint8_t  idx,
uint8_t  set_val 
)
Here is the call graph for this function:

◆ fm_p12v_sw_en()

uint8_t fm_p12v_sw_en ( uint8_t  idx,
uint8_t  val 
)
Here is the call graph for this function:

◆ fm_p3v3_sw_en()

uint8_t fm_p3v3_sw_en ( uint8_t  idx,
uint8_t  val 
)
Here is the call graph for this function:

◆ fm_pwrdis_en()

uint8_t fm_pwrdis_en ( uint8_t  idx,
uint8_t  val 
)
Here is the call graph for this function:

◆ get_dev_pwrgd()

uint8_t get_dev_pwrgd ( uint8_t  idx)

◆ get_fm_p12v_sw_en()

uint8_t get_fm_p12v_sw_en ( uint8_t  idx)
Here is the call graph for this function:

◆ get_fm_pwrdis_status()

uint8_t get_fm_pwrdis_status ( uint8_t  idx)
Here is the call graph for this function:

◆ get_nvme_dev_ready_15s()

uint8_t get_nvme_dev_ready_15s ( uint8_t  idx)

◆ m2_dev_power_switch()

uint8_t m2_dev_power_switch ( uint8_t  idx,
uint8_t  enable 
)
Here is the call graph for this function:

◆ m2_dev_power_switch_with_pwrdis_chk()

uint8_t m2_dev_power_switch_with_pwrdis_chk ( uint8_t  idx,
uint8_t  enable,
uint8_t  chk_pwrdis,
uint8_t  force_ctl_3v3 
)
Here is the call graph for this function:

◆ plat_set_dc_status()

void plat_set_dc_status ( uint32_t  dc_pin,
uint32_t  unused 
)
Here is the call graph for this function:

◆ pwr_related_pin_init()

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

◆ pwrgd_p12v_aux_100ms_get()

uint8_t pwrgd_p12v_aux_100ms_get ( void  )

◆ pwrgd_p12v_aux_100ms_set()

void pwrgd_p12v_aux_100ms_set ( uint32_t  val,
uint32_t  unused1 
)