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
23
void
pwr_related_pin_init
(
void
);
24
uint8_t
get_dev_pwrgd
(uint8_t
idx
);
25
uint8_t
get_nvme_dev_ready_15s
(uint8_t
idx
);
26
uint8_t
fm_p3v3_sw_en
(uint8_t
idx
, uint8_t
val
);
27
uint8_t
fm_p12v_sw_en
(uint8_t
idx
, uint8_t
val
);
28
uint8_t
clkbuf_oe_en
(uint8_t
idx
, uint8_t
val
);
29
uint8_t
get_fm_pwrdis_status
(uint8_t
idx
);
30
uint8_t
fm_pwrdis_en
(uint8_t
idx
, uint8_t
val
);
31
void
check_dc_off_process
(
void
);
32
uint8_t
m2_dev_power_switch_with_pwrdis_chk
(uint8_t
idx
, uint8_t enable, uint8_t chk_pwrdis,
33
uint8_t force_ctl_3v3);
34
uint8_t
m2_dev_power_switch
(uint8_t
idx
, uint8_t enable);
35
uint8_t
device_all_power_set
(uint8_t
idx
, uint8_t set_val);
36
void
dev_pwrgd_handler
(uint8_t
idx
);
37
uint8_t
get_fm_p12v_sw_en
(uint8_t
idx
);
38
uint8_t
pwrgd_p12v_aux_100ms_get
(
void
);
39
void
pwrgd_p12v_aux_100ms_set
(uint32_t
val
, uint32_t unused1);
40
void
plat_set_dc_status
(uint32_t dc_pin, uint32_t unused);
41
42
void
dev_pwrgd_handler_dev0
(
void
);
43
void
dev_pwrgd_handler_dev1
(
void
);
44
void
dev_pwrgd_handler_dev2
(
void
);
45
void
dev_pwrgd_handler_dev3
(
void
);
46
47
#endif
idx
uint8_t idx
Definition:
plat_util.c:39
val
uint32_t val
Definition:
plat_util.c:40
hal_gpio.h
device_all_power_set
uint8_t device_all_power_set(uint8_t idx, uint8_t set_val)
Definition:
plat_power_seq.c:252
get_fm_p12v_sw_en
uint8_t get_fm_p12v_sw_en(uint8_t idx)
Definition:
plat_power_seq.c:105
pwr_related_pin_init
void pwr_related_pin_init(void)
Definition:
plat_power_seq.c:37
dev_pwrgd_handler
void dev_pwrgd_handler(uint8_t idx)
Definition:
plat_power_seq.c:295
plat_set_dc_status
void plat_set_dc_status(uint32_t dc_pin, uint32_t unused)
Definition:
plat_power_seq.c:325
fm_pwrdis_en
uint8_t fm_pwrdis_en(uint8_t idx, uint8_t val)
Definition:
plat_power_seq.c:148
get_nvme_dev_ready_15s
uint8_t get_nvme_dev_ready_15s(uint8_t idx)
Definition:
plat_power_seq.c:62
clkbuf_oe_en
uint8_t clkbuf_oe_en(uint8_t idx, uint8_t val)
Definition:
plat_power_seq.c:119
dev_pwrgd_handler_dev1
void dev_pwrgd_handler_dev1(void)
get_dev_pwrgd
uint8_t get_dev_pwrgd(uint8_t idx)
Definition:
plat_power_seq.c:52
m2_dev_power_switch
uint8_t m2_dev_power_switch(uint8_t idx, uint8_t enable)
Definition:
plat_power_seq.c:247
fm_p3v3_sw_en
uint8_t fm_p3v3_sw_en(uint8_t idx, uint8_t val)
Definition:
plat_power_seq.c:72
pwrgd_p12v_aux_100ms_set
void pwrgd_p12v_aux_100ms_set(uint32_t val, uint32_t unused1)
Definition:
plat_power_seq.c:314
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)
Definition:
plat_power_seq.c:197
get_fm_pwrdis_status
uint8_t get_fm_pwrdis_status(uint8_t idx)
Definition:
plat_power_seq.c:134
fm_p12v_sw_en
uint8_t fm_p12v_sw_en(uint8_t idx, uint8_t val)
Definition:
plat_power_seq.c:88
dev_pwrgd_handler_dev2
void dev_pwrgd_handler_dev2(void)
pwrgd_p12v_aux_100ms_get
uint8_t pwrgd_p12v_aux_100ms_get(void)
Definition:
plat_power_seq.c:320
check_dc_off_process
void check_dc_off_process(void)
Definition:
plat_power_seq.c:163
dev_pwrgd_handler_dev3
void dev_pwrgd_handler_dev3(void)
dev_pwrgd_handler_dev0
void dev_pwrgd_handler_dev0(void)
plat_gpio.h
meta-facebook
yv3-vf
src
platform
plat_power_seq.h
Generated by
1.9.2