HPM SDK
HPMicro Software Development Kit
hpm_otp_table.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021-2025 HPMicro
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*
6
*/
7
8
9
#ifndef HPM_OTP_TABLE_H
10
#define HPM_OTP_TABLE_H
11
12
/* OTP WORD OFFSET */
13
#define OTP_TABLE_HARD_LOCK_OFFSET (0U)
14
#define OTP_TABLE_LIFECYCLE_B_OFFSET (1U)
15
#define OTP_TABLE_TCU_DISABLE_OFFSET (1U)
16
#define OTP_TABLE_DEBUG_DISABLE_OFFSET (1U)
17
#define OTP_TABLE_JTAG_DISABLE_OFFSET (1U)
18
#define OTP_TABLE_PUK_REVOKE_OFFSET (1U)
19
#define OTP_TABLE_LIFECYCLE_A_OFFSET (1U)
20
#define OTP_TABLE_SW_VER_OFFSET (3U)
21
#define OTP_TABLE_DIE_TRACE_OFFSET (8U)
22
#define OTP_TABLE_DEBUG_KEY_OFFSET (12U)
23
#define OTP_TABLE_TSNS_BASE_OFFSET (21U)
24
#define OTP_TABLE_TSNS_SLOPE_OFFSET (21U)
25
#define OTP_TABLE_CHIP_ID_OFFSET (64U)
26
#define OTP_TABLE_USB_PID_OFFSET (68U)
27
#define OTP_TABLE_USB_VID_OFFSET (68U)
28
#define OTP_TABLE_PUBLIC_KEY_HASH_OFFSET (80U)
29
#define OTP_TABLE_UUID_OFFSET (88U)
30
#define OTP_TABLE_EXIP0_KEY_OFFSET (96U)
31
#define OTP_TABLE_MASTER_KEY_OFFSET (112U)
32
33
/* HARD_LOCK */
34
#define OTP_TABLE_HARD_LOCK_MASK (0xFFFFFFFFU)
35
#define OTP_TABLE_HARD_LOCK_SHIFT (0x0U)
36
#define OTP_TABLE_HARD_LOCK_SET(x) (((uint32_t)(x) << OTP_TABLE_HARD_LOCK_SHIFT) & OTP_TABLE_HARD_LOCK_MASK)
37
#define OTP_TABLE_HARD_LOCK_GET(x) (((uint32_t)(x) & OTP_TABLE_HARD_LOCK_MASK) >> OTP_TABLE_HARD_LOCK_SHIFT)
38
39
/* LIFECYCLE_B */
40
#define OTP_TABLE_LIFECYCLE_B_MASK (0xF0000000U)
41
#define OTP_TABLE_LIFECYCLE_B_SHIFT (0x1CU)
42
#define OTP_TABLE_LIFECYCLE_B_SET(x) (((uint32_t)(x) << OTP_TABLE_LIFECYCLE_B_SHIFT) & OTP_TABLE_LIFECYCLE_B_MASK)
43
#define OTP_TABLE_LIFECYCLE_B_GET(x) (((uint32_t)(x) & OTP_TABLE_LIFECYCLE_B_MASK) >> OTP_TABLE_LIFECYCLE_B_SHIFT)
44
45
/* TCU_DISABLE */
46
#define OTP_TABLE_TCU_DISABLE_MASK (0x80000U)
47
#define OTP_TABLE_TCU_DISABLE_SHIFT (0x13U)
48
#define OTP_TABLE_TCU_DISABLE_SET(x) (((uint32_t)(x) << OTP_TABLE_TCU_DISABLE_SHIFT) & OTP_TABLE_TCU_DISABLE_MASK)
49
#define OTP_TABLE_TCU_DISABLE_GET(x) (((uint32_t)(x) & OTP_TABLE_TCU_DISABLE_MASK) >> OTP_TABLE_TCU_DISABLE_SHIFT)
50
51
/* DEBUG_DISABLE */
52
#define OTP_TABLE_DEBUG_DISABLE_MASK (0x20000U)
53
#define OTP_TABLE_DEBUG_DISABLE_SHIFT (0x11U)
54
#define OTP_TABLE_DEBUG_DISABLE_SET(x) (((uint32_t)(x) << OTP_TABLE_DEBUG_DISABLE_SHIFT) & OTP_TABLE_DEBUG_DISABLE_MASK)
55
#define OTP_TABLE_DEBUG_DISABLE_GET(x) (((uint32_t)(x) & OTP_TABLE_DEBUG_DISABLE_MASK) >> OTP_TABLE_DEBUG_DISABLE_SHIFT)
56
57
/* JTAG_DISABLE */
58
#define OTP_TABLE_JTAG_DISABLE_MASK (0x10000U)
59
#define OTP_TABLE_JTAG_DISABLE_SHIFT (0x10U)
60
#define OTP_TABLE_JTAG_DISABLE_SET(x) (((uint32_t)(x) << OTP_TABLE_JTAG_DISABLE_SHIFT) & OTP_TABLE_JTAG_DISABLE_MASK)
61
#define OTP_TABLE_JTAG_DISABLE_GET(x) (((uint32_t)(x) & OTP_TABLE_JTAG_DISABLE_MASK) >> OTP_TABLE_JTAG_DISABLE_SHIFT)
62
63
/* PUK_REVOKE */
64
#define OTP_TABLE_PUK_REVOKE_MASK (0xFF00U)
65
#define OTP_TABLE_PUK_REVOKE_SHIFT (0x8U)
66
#define OTP_TABLE_PUK_REVOKE_SET(x) (((uint32_t)(x) << OTP_TABLE_PUK_REVOKE_SHIFT) & OTP_TABLE_PUK_REVOKE_MASK)
67
#define OTP_TABLE_PUK_REVOKE_GET(x) (((uint32_t)(x) & OTP_TABLE_PUK_REVOKE_MASK) >> OTP_TABLE_PUK_REVOKE_SHIFT)
68
69
/* LIFECYCLE_A */
70
#define OTP_TABLE_LIFECYCLE_A_MASK (0xFU)
71
#define OTP_TABLE_LIFECYCLE_A_SHIFT (0x0U)
72
#define OTP_TABLE_LIFECYCLE_A_SET(x) (((uint32_t)(x) << OTP_TABLE_LIFECYCLE_A_SHIFT) & OTP_TABLE_LIFECYCLE_A_MASK)
73
#define OTP_TABLE_LIFECYCLE_A_GET(x) (((uint32_t)(x) & OTP_TABLE_LIFECYCLE_A_MASK) >> OTP_TABLE_LIFECYCLE_A_SHIFT)
74
75
/* SW_VER */
76
#define OTP_TABLE_SW_VER_MASK (0xFFFFFFFFU)
77
#define OTP_TABLE_SW_VER_SHIFT (0x0U)
78
#define OTP_TABLE_SW_VER_SET(x) (((uint32_t)(x) << OTP_TABLE_SW_VER_SHIFT) & OTP_TABLE_SW_VER_MASK)
79
#define OTP_TABLE_SW_VER_GET(x) (((uint32_t)(x) & OTP_TABLE_SW_VER_MASK) >> OTP_TABLE_SW_VER_SHIFT)
80
81
/* DIE_TRACE */
82
#define OTP_TABLE_DIE_TRACE_SHIFT (0x0U)
83
#define OTP_TABLE_DIE_TRACE_BIT_LENGTH (0x80U)
84
85
/* DEBUG_KEY */
86
#define OTP_TABLE_DEBUG_KEY_SHIFT (0x0U)
87
#define OTP_TABLE_DEBUG_KEY_BIT_LENGTH (0x80U)
88
89
/* TSNS_BASE */
90
#define OTP_TABLE_TSNS_BASE_MASK (0xFFFU)
91
#define OTP_TABLE_TSNS_BASE_SHIFT (0x0U)
92
#define OTP_TABLE_TSNS_BASE_SET(x) (((uint32_t)(x) << OTP_TABLE_TSNS_BASE_SHIFT) & OTP_TABLE_TSNS_BASE_MASK)
93
#define OTP_TABLE_TSNS_BASE_GET(x) (((uint32_t)(x) & OTP_TABLE_TSNS_BASE_MASK) >> OTP_TABLE_TSNS_BASE_SHIFT)
94
95
/* TSNS_SLOPE */
96
#define OTP_TABLE_TSNS_SLOPE_MASK (0xFFF000U)
97
#define OTP_TABLE_TSNS_SLOPE_SHIFT (0xCU)
98
#define OTP_TABLE_TSNS_SLOPE_SET(x) (((uint32_t)(x) << OTP_TABLE_TSNS_SLOPE_SHIFT) & OTP_TABLE_TSNS_SLOPE_MASK)
99
#define OTP_TABLE_TSNS_SLOPE_GET(x) (((uint32_t)(x) & OTP_TABLE_TSNS_SLOPE_MASK) >> OTP_TABLE_TSNS_SLOPE_SHIFT)
100
101
/* CHIP_ID */
102
#define OTP_TABLE_CHIP_ID_MASK (0xFFFFFFFFU)
103
#define OTP_TABLE_CHIP_ID_SHIFT (0x0U)
104
#define OTP_TABLE_CHIP_ID_SET(x) (((uint32_t)(x) << OTP_TABLE_CHIP_ID_SHIFT) & OTP_TABLE_CHIP_ID_MASK)
105
#define OTP_TABLE_CHIP_ID_GET(x) (((uint32_t)(x) & OTP_TABLE_CHIP_ID_MASK) >> OTP_TABLE_CHIP_ID_SHIFT)
106
107
/* USB_PID */
108
#define OTP_TABLE_USB_PID_MASK (0xFFFFU)
109
#define OTP_TABLE_USB_PID_SHIFT (0x0U)
110
#define OTP_TABLE_USB_PID_SET(x) (((uint32_t)(x) << OTP_TABLE_USB_PID_SHIFT) & OTP_TABLE_USB_PID_MASK)
111
#define OTP_TABLE_USB_PID_GET(x) (((uint32_t)(x) & OTP_TABLE_USB_PID_MASK) >> OTP_TABLE_USB_PID_SHIFT)
112
113
/* USB_VID */
114
#define OTP_TABLE_USB_VID_MASK (0xFFFF0000U)
115
#define OTP_TABLE_USB_VID_SHIFT (0x10U)
116
#define OTP_TABLE_USB_VID_SET(x) (((uint32_t)(x) << OTP_TABLE_USB_VID_SHIFT) & OTP_TABLE_USB_VID_MASK)
117
#define OTP_TABLE_USB_VID_GET(x) (((uint32_t)(x) & OTP_TABLE_USB_VID_MASK) >> OTP_TABLE_USB_VID_SHIFT)
118
119
/* PUBLIC_KEY_HASH */
120
#define OTP_TABLE_PUBLIC_KEY_HASH_SHIFT (0x0U)
121
#define OTP_TABLE_PUBLIC_KEY_HASH_BIT_LENGTH (0x100U)
122
123
/* UUID */
124
#define OTP_TABLE_UUID_SHIFT (0x0U)
125
#define OTP_TABLE_UUID_BIT_LENGTH (0x80U)
126
127
/* EXIP0_KEY */
128
#define OTP_TABLE_EXIP0_KEY_SHIFT (0x0U)
129
#define OTP_TABLE_EXIP0_KEY_BIT_LENGTH (0x100U)
130
131
/* MASTER_KEY */
132
#define OTP_TABLE_MASTER_KEY_SHIFT (0x0U)
133
#define OTP_TABLE_MASTER_KEY_BIT_LENGTH (0x100U)
134
135
136
#endif
/* HPM_OTP_TABLE_H */
soc
HPM5300
HPM5301
hpm_otp_table.h
Generated on Tue Apr 1 2025 05:30:26 for HPM SDK by
1.9.1