OpenBIC
OpenSource Bridge-IC
plat_fru.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_FRU_H
18#define PLAT_FRU_H
19
20#include "plat_i2c.h"
21#include "i2c-mux-pca984x.h"
22
23#define MC_FRU_PORT I2C_BUS1
24#define MC_FRU_ADDR (0xA0 >> 1)
25#define CXL_FRU_PORT I2C_BUS2
26#define CXL_FRU_ADDR (0xA8 >> 1)
27#define CXL_FRU_MUX0_ADDR (0xE0 >> 1)
28#define CXL_FRU_MUX1_ADDR (0xE2 >> 1)
29#define CXL_FRU_MUX1_CHANNEL 2
30
31enum FRU_ID {
32 MC_FRU_ID = 0x11,
46 // OTHER_FRU_ID,
48};
49
50enum {
59};
60
61/* Skip fru id 0~16, 18~29 */
62#define FRU_CFG_NUM 10
63#define BIC_FRU_DEV_ID MC_FRU_ID
64
65uint8_t pal_cxl_map_mux0_channel(uint8_t cxl_fru_id);
66
67#endif
FRU_ID
Definition: plat_fru.h:20
@ MAX_FRU_ID
Definition: plat_fru.h:44
uint8_t pal_cxl_map_mux0_channel(uint8_t cxl_fru_id)
Definition: plat_fru.c:148
@ CXL_FRU_MUX0_CHANNEL2
Definition: plat_fru.h:53
@ CXL_FRU_MUX0_CHANNEL4
Definition: plat_fru.h:55
@ CXL_FRU_MUX0_CHANNEL1
Definition: plat_fru.h:52
@ CXL_FRU_MUX0_CHANNEL7
Definition: plat_fru.h:58
@ CXL_FRU_MUX0_CHANNEL6
Definition: plat_fru.h:57
@ CXL_FRU_MUX0_CHANNEL3
Definition: plat_fru.h:54
@ CXL_FRU_MUX0_CHANNEL0
Definition: plat_fru.h:51
@ CXL_FRU_MUX0_CHANNEL5
Definition: plat_fru.h:56
@ CXL_FRU_ID3
Definition: plat_fru.h:35
@ MC_E1S_1_FRU_ID
Definition: plat_fru.h:40
@ CXL_FRU_ID6
Definition: plat_fru.h:42
@ CXL_FRU_ID2
Definition: plat_fru.h:34
@ MC_E1S_3_FRU_ID
Definition: plat_fru.h:38
@ CXL_FRU_ID4
Definition: plat_fru.h:36
@ SYS_DEBUG_ID
Definition: plat_fru.h:45
@ CXL_FRU_ID8
Definition: plat_fru.h:44
@ CXL_FRU_ID7
Definition: plat_fru.h:43
@ MC_FRU_ID
Definition: plat_fru.h:32
@ CXL_FRU_ID5
Definition: plat_fru.h:41
@ CXL_FRU_ID1
Definition: plat_fru.h:33
@ MC_E1S_4_FRU_ID
Definition: plat_fru.h:37
@ MC_E1S_2_FRU_ID
Definition: plat_fru.h:39