• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: efuse driver wrap
15  *
16  * Create: 2023-04-13
17  */
18 #ifndef EFUSE_WRAP_H
19 #define EFUSE_WRAP_H
20 
21 #include <stdint.h>
22 
23 #define EFUSE_IDX_NRW 0x0
24 #define EFUSE_IDX_RO  0x1
25 #define EFUSE_IDX_WO  0x2
26 #define EFUSE_IDX_RW  0x3
27 
28 typedef enum {
29     EFUSE_CHIP_ID = 0,
30     EFUSE_DIE_ID = 1,
31     EFUSE_MCU_VER_ID = 2,
32     EFUSE_FLASHBOOT_VER_ID = 3,
33     EFUSE_PARAMS_VER_ID = 4,
34     EFUSE_HASH_ROOT_PUBLIC_KEY_ID = 5,
35     EFUSE_MSID_ID = 6,
36     EFUSE_SEC_VERIFY_ENABLE = 7,
37     EFUSE_IDX_MAX,
38 } efuse_idx;
39 
40 uint32_t efuse_read_item(efuse_idx efuse_id, uint8_t *data, uint16_t data_len);
41 
42 #endif