WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
upg_otp_reg.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2021. All rights reserved.
3 * Description: header file of otp (register-op related)
4 */
5
6#ifndef UPG_OTP_REG_H
7#define UPG_OTP_REG_H
8
9#include <stdint.h>
10
11#ifdef __cplusplus
12#if __cplusplus
13extern "C" {
14#endif
15#endif
16
17#define REG_OTPC_BASE 0x500E0000
18
19#define OTP_SHADOW_BASE REG_OTPC_BASE
20#define OTP_BIT_ALIGNED_LOCKABLE (OTP_SHADOW_BASE + 0x0000)
21
22#define OTP_REE_KEY_MASK 0xFF000000
23#define OTP_REE_CODE_MASK 0x00FFFFFF
24
26 struct {
27 uint32_t scs_alg_sel : 1; /* [0] */
28 uint32_t tee_owner_sel : 1; /* [1] */
29 uint32_t rkp_deob_alg_sel : 1; /* [2] */
30 uint32_t ds_disable : 1; /* [3] */
31 uint32_t aidsp_owner_sel : 1; /* [4] */
32 uint32_t rkp_kdf_alg_sel : 1; /* [5] */
33 uint32_t dice_cdi_enable : 1; /* [6] */
34 uint32_t reserved_0 : 1; /* [7] */
35 uint32_t provision_a_disable : 1; /* [8] */
36 uint32_t provision_b_disable : 1; /* [9] */
37 uint32_t reserved_1 : 14; /* [23:10] */
38 uint32_t sha1_disable : 1; /* [24] */
39 uint32_t sm4_disable : 1; /* [25] */
40 uint32_t sm3_disable : 1; /* [26] */
41 uint32_t sm2_disable : 1; /* [27] */
42 uint32_t reserved_2 : 4; /* [31:28] */
44 uint32_t u32;
46
47#ifdef __cplusplus
48#if __cplusplus
49}
50#endif
51#endif
52#endif /* UPG_OTP_REG_H */
Definition upg_otp_reg.h:25
uint32_t provision_b_disable
Definition upg_otp_reg.h:36
uint32_t sha1_disable
Definition upg_otp_reg.h:38
uint32_t aidsp_owner_sel
Definition upg_otp_reg.h:31
uint32_t sm2_disable
Definition upg_otp_reg.h:41
uint32_t u32
Definition upg_otp_reg.h:44
uint32_t reserved_2
Definition upg_otp_reg.h:42
uint32_t dice_cdi_enable
Definition upg_otp_reg.h:33
uint32_t tee_owner_sel
Definition upg_otp_reg.h:28
struct otp_bit_aligned_lockable::@405 bits
uint32_t ds_disable
Definition upg_otp_reg.h:30
uint32_t rkp_deob_alg_sel
Definition upg_otp_reg.h:29
uint32_t provision_a_disable
Definition upg_otp_reg.h:35
uint32_t scs_alg_sel
Definition upg_otp_reg.h:27
uint32_t sm3_disable
Definition upg_otp_reg.h:40
uint32_t reserved_1
Definition upg_otp_reg.h:37
uint32_t sm4_disable
Definition upg_otp_reg.h:39
uint32_t reserved_0
Definition upg_otp_reg.h:34
uint32_t rkp_kdf_alg_sel
Definition upg_otp_reg.h:32
union otp_bit_aligned_lockable otp_bit_aligned_lockable_t