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
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
35};
36
40};
41
43void init_e1s_config();
44void init_sys_board_id(uint8_t board_id);
45uint8_t get_board_id();
46uint8_t get_e1s_hsc_config();
47uint8_t get_e1s_adc_config();
48uint8_t get_e1s_pwrgd();
49
50#endif
int init_platform_config()
Definition: expansion_board.c:43
PALTFORM_BOARD_ID
Definition: plat_class.h:23
@ FM_BOARD_ID_2
Definition: plat_class.h:26
@ FM_BOARD_ID_3
Definition: plat_class.h:27
@ FM_BOARD_ID_1
Definition: plat_class.h:25
@ FM_BOARD_ID_0
Definition: plat_class.h:24
E1S_CONFIG_HSC
Definition: plat_class.h:30
@ CONFIG_HSC_MPS
Definition: plat_class.h:33
@ CONFIG_HSC_ADM1278
Definition: plat_class.h:31
@ CONFIG_HSC_BYPASS
Definition: plat_class.h:34
@ CONFIG_HSC_MAXIN
Definition: plat_class.h:32
uint8_t get_e1s_hsc_config()
Definition: plat_class.c:42
uint8_t get_e1s_pwrgd()
Definition: plat_class.c:52
E1S_CONFIG_ADC
Definition: plat_class.h:37
@ CONFIG_ADC_INA231
Definition: plat_class.h:38
@ CONFIG_ADC_ISL28022
Definition: plat_class.h:39
uint8_t get_board_id()
Definition: expansion_board.c:57
void init_e1s_config()
Definition: plat_class.c:30
uint8_t get_e1s_adc_config()
Definition: plat_class.c:47
void init_sys_board_id(uint8_t board_id)
Definition: expansion_board.c:27