OpenBIC
OpenSource Bridge-IC
plat_class.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_CLASS_H
18
#define PLAT_CLASS_H
19
20
#include "
hal_gpio.h
"
21
#include "
plat_gpio.h
"
22
23
enum
PALTFORM_BOARD_ID
{
24
FM_BOARD_ID_0
= BOARD_ID0,
25
FM_BOARD_ID_1
= BOARD_ID1,
26
FM_BOARD_ID_2
= BOARD_ID2,
27
FM_BOARD_ID_3
= BOARD_ID3,
28
};
29
30
enum
E1S_CONFIG_HSC
{
31
CONFIG_HSC_ADM1278
= 0x00,
32
CONFIG_HSC_MAXIN
,
33
CONFIG_HSC_MPS
,
34
CONFIG_HSC_BYPASS
,
35
};
36
37
enum
E1S_CONFIG_ADC
{
38
CONFIG_ADC_INA231
= 0x00,
39
CONFIG_ADC_ISL28022
,
40
};
41
42
void
init_platform_config
();
43
void
init_e1s_config
();
44
void
init_sys_board_id
(uint8_t board_id);
45
uint8_t
get_board_id
();
46
uint8_t
get_e1s_hsc_config
();
47
uint8_t
get_e1s_adc_config
();
48
uint8_t
get_e1s_pwrgd
();
49
50
#endif
init_platform_config
int init_platform_config()
Definition:
expansion_board.c:43
hal_gpio.h
PALTFORM_BOARD_ID
PALTFORM_BOARD_ID
Definition:
plat_class.h:23
FM_BOARD_ID_2
@ FM_BOARD_ID_2
Definition:
plat_class.h:26
FM_BOARD_ID_3
@ FM_BOARD_ID_3
Definition:
plat_class.h:27
FM_BOARD_ID_1
@ FM_BOARD_ID_1
Definition:
plat_class.h:25
FM_BOARD_ID_0
@ FM_BOARD_ID_0
Definition:
plat_class.h:24
E1S_CONFIG_HSC
E1S_CONFIG_HSC
Definition:
plat_class.h:30
CONFIG_HSC_MPS
@ CONFIG_HSC_MPS
Definition:
plat_class.h:33
CONFIG_HSC_ADM1278
@ CONFIG_HSC_ADM1278
Definition:
plat_class.h:31
CONFIG_HSC_BYPASS
@ CONFIG_HSC_BYPASS
Definition:
plat_class.h:34
CONFIG_HSC_MAXIN
@ CONFIG_HSC_MAXIN
Definition:
plat_class.h:32
get_e1s_hsc_config
uint8_t get_e1s_hsc_config()
Definition:
plat_class.c:42
get_e1s_pwrgd
uint8_t get_e1s_pwrgd()
Definition:
plat_class.c:52
E1S_CONFIG_ADC
E1S_CONFIG_ADC
Definition:
plat_class.h:37
CONFIG_ADC_INA231
@ CONFIG_ADC_INA231
Definition:
plat_class.h:38
CONFIG_ADC_ISL28022
@ CONFIG_ADC_ISL28022
Definition:
plat_class.h:39
get_board_id
uint8_t get_board_id()
Definition:
expansion_board.c:57
init_e1s_config
void init_e1s_config()
Definition:
plat_class.c:30
get_e1s_adc_config
uint8_t get_e1s_adc_config()
Definition:
plat_class.c:47
init_sys_board_id
void init_sys_board_id(uint8_t board_id)
Definition:
expansion_board.c:27
plat_gpio.h
meta-facebook
yv3-vf
src
platform
plat_class.h
Generated by
1.9.2