OpenBIC
OpenSource Bridge-IC
plat_power_seq.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef PLAT_PWRSEQ_H
18#define PLAT_PWRSEQ_H
19
20#include "hal_gpio.h"
21#include "plat_gpio.h"
22
23void pwr_related_pin_init(void);
24uint8_t get_dev_pwrgd(uint8_t idx);
25uint8_t get_nvme_dev_ready_15s(uint8_t idx);
26uint8_t fm_p3v3_sw_en(uint8_t idx, uint8_t val);
27uint8_t fm_p12v_sw_en(uint8_t idx, uint8_t val);
28uint8_t clkbuf_oe_en(uint8_t idx, uint8_t val);
29uint8_t get_fm_pwrdis_status(uint8_t idx);
30uint8_t fm_pwrdis_en(uint8_t idx, uint8_t val);
31void check_dc_off_process(void);
32uint8_t m2_dev_power_switch_with_pwrdis_chk(uint8_t idx, uint8_t enable, uint8_t chk_pwrdis,
33 uint8_t force_ctl_3v3);
34uint8_t m2_dev_power_switch(uint8_t idx, uint8_t enable);
35uint8_t device_all_power_set(uint8_t idx, uint8_t set_val);
36void dev_pwrgd_handler(uint8_t idx);
37uint8_t get_fm_p12v_sw_en(uint8_t idx);
38uint8_t pwrgd_p12v_aux_100ms_get(void);
39void pwrgd_p12v_aux_100ms_set(uint32_t val, uint32_t unused1);
40void plat_set_dc_status(uint32_t dc_pin, uint32_t unused);
41
46
47#endif
uint8_t idx
Definition: plat_util.c:39
uint32_t val
Definition: plat_util.c:40
uint8_t device_all_power_set(uint8_t idx, uint8_t set_val)
Definition: plat_power_seq.c:252
uint8_t get_fm_p12v_sw_en(uint8_t idx)
Definition: plat_power_seq.c:105
void pwr_related_pin_init(void)
Definition: plat_power_seq.c:37
void dev_pwrgd_handler(uint8_t idx)
Definition: plat_power_seq.c:295
void plat_set_dc_status(uint32_t dc_pin, uint32_t unused)
Definition: plat_power_seq.c:325
uint8_t fm_pwrdis_en(uint8_t idx, uint8_t val)
Definition: plat_power_seq.c:148
uint8_t get_nvme_dev_ready_15s(uint8_t idx)
Definition: plat_power_seq.c:62
uint8_t clkbuf_oe_en(uint8_t idx, uint8_t val)
Definition: plat_power_seq.c:119
void dev_pwrgd_handler_dev1(void)
uint8_t get_dev_pwrgd(uint8_t idx)
Definition: plat_power_seq.c:52
uint8_t m2_dev_power_switch(uint8_t idx, uint8_t enable)
Definition: plat_power_seq.c:247
uint8_t fm_p3v3_sw_en(uint8_t idx, uint8_t val)
Definition: plat_power_seq.c:72
void pwrgd_p12v_aux_100ms_set(uint32_t val, uint32_t unused1)
Definition: plat_power_seq.c:314
uint8_t m2_dev_power_switch_with_pwrdis_chk(uint8_t idx, uint8_t enable, uint8_t chk_pwrdis, uint8_t force_ctl_3v3)
Definition: plat_power_seq.c:197
uint8_t get_fm_pwrdis_status(uint8_t idx)
Definition: plat_power_seq.c:134
uint8_t fm_p12v_sw_en(uint8_t idx, uint8_t val)
Definition: plat_power_seq.c:88
void dev_pwrgd_handler_dev2(void)
uint8_t pwrgd_p12v_aux_100ms_get(void)
Definition: plat_power_seq.c:320
void check_dc_off_process(void)
Definition: plat_power_seq.c:163
void dev_pwrgd_handler_dev3(void)
void dev_pwrgd_handler_dev0(void)