OpenBIC
OpenSource Bridge-IC
version.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 VERSION_H
18
#define VERSION_H
19
20
/*
21
FIRMWARE REVISION_1
22
[bit 0-3] BOARD_ID
23
[bit 4-7] PROJECT_STAGE
24
0x00 POC
25
0x01 EVT
26
0x02 DVT
27
0x03 PVT
28
0x04 MP
29
30
FIRMWARE REVISION_2
31
Count of release firmware at each stage.
32
*/
33
#define GET_FW_VERSION1(board_id, stage) ((board_id & 0x0F) | (stage << 4))
34
35
typedef
enum
{
36
POC
= 0,
37
EVT
,
38
DVT
,
39
PVT
,
40
MP
,
41
}
PROJECT_STAGE
;
42
43
#endif
PROJECT_STAGE
PROJECT_STAGE
Definition:
version.h:35
EVT
@ EVT
Definition:
version.h:37
POC
@ POC
Definition:
version.h:36
DVT
@ DVT
Definition:
version.h:38
PVT
@ PVT
Definition:
version.h:39
MP
@ MP
Definition:
version.h:40
common
include
version.h
Generated by
1.9.2