1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
7 // --------------------------------------
9 // --------------------------------------
10 #define CC_HOST_IRR_REG_OFFSET 0xA00UL
11 #define CC_HOST_IRR_DSCRPTR_COMPLETION_LOW_INT_BIT_SHIFT 0x2UL
12 #define CC_HOST_IRR_DSCRPTR_COMPLETION_LOW_INT_BIT_SIZE 0x1UL
13 #define CC_HOST_IRR_AXI_ERR_INT_BIT_SHIFT 0x8UL
14 #define CC_HOST_IRR_AXI_ERR_INT_BIT_SIZE 0x1UL
15 #define CC_HOST_IRR_GPR0_BIT_SHIFT 0xBUL
16 #define CC_HOST_IRR_GPR0_BIT_SIZE 0x1UL
17 #define CC_HOST_IRR_DSCRPTR_WATERMARK_INT_BIT_SHIFT 0x13UL
18 #define CC_HOST_IRR_DSCRPTR_WATERMARK_INT_BIT_SIZE 0x1UL
19 #define CC_HOST_IRR_AXIM_COMP_INT_BIT_SHIFT 0x17UL
20 #define CC_HOST_IRR_AXIM_COMP_INT_BIT_SIZE 0x1UL
21 #define CC_HOST_SEP_SRAM_THRESHOLD_REG_OFFSET 0xA10UL
22 #define CC_HOST_SEP_SRAM_THRESHOLD_VALUE_BIT_SHIFT 0x0UL
23 #define CC_HOST_SEP_SRAM_THRESHOLD_VALUE_BIT_SIZE 0xCUL
24 #define CC_HOST_IMR_REG_OFFSET 0xA04UL
25 #define CC_HOST_IMR_NOT_USED_MASK_BIT_SHIFT 0x1UL
26 #define CC_HOST_IMR_NOT_USED_MASK_BIT_SIZE 0x1UL
27 #define CC_HOST_IMR_DSCRPTR_COMPLETION_MASK_BIT_SHIFT 0x2UL
28 #define CC_HOST_IMR_DSCRPTR_COMPLETION_MASK_BIT_SIZE 0x1UL
29 #define CC_HOST_IMR_AXI_ERR_MASK_BIT_SHIFT 0x8UL
30 #define CC_HOST_IMR_AXI_ERR_MASK_BIT_SIZE 0x1UL
31 #define CC_HOST_IMR_GPR0_BIT_SHIFT 0xBUL
32 #define CC_HOST_IMR_GPR0_BIT_SIZE 0x1UL
33 #define CC_HOST_IMR_DSCRPTR_WATERMARK_MASK0_BIT_SHIFT 0x13UL
34 #define CC_HOST_IMR_DSCRPTR_WATERMARK_MASK0_BIT_SIZE 0x1UL
35 #define CC_HOST_IMR_AXIM_COMP_INT_MASK_BIT_SHIFT 0x17UL
36 #define CC_HOST_IMR_AXIM_COMP_INT_MASK_BIT_SIZE 0x1UL
37 #define CC_HOST_ICR_REG_OFFSET 0xA08UL
38 #define CC_HOST_ICR_DSCRPTR_COMPLETION_BIT_SHIFT 0x2UL
39 #define CC_HOST_ICR_DSCRPTR_COMPLETION_BIT_SIZE 0x1UL
40 #define CC_HOST_ICR_AXI_ERR_CLEAR_BIT_SHIFT 0x8UL
41 #define CC_HOST_ICR_AXI_ERR_CLEAR_BIT_SIZE 0x1UL
42 #define CC_HOST_ICR_GPR_INT_CLEAR_BIT_SHIFT 0xBUL
43 #define CC_HOST_ICR_GPR_INT_CLEAR_BIT_SIZE 0x1UL
44 #define CC_HOST_ICR_DSCRPTR_WATERMARK_QUEUE0_CLEAR_BIT_SHIFT 0x13UL
45 #define CC_HOST_ICR_DSCRPTR_WATERMARK_QUEUE0_CLEAR_BIT_SIZE 0x1UL
46 #define CC_HOST_ICR_AXIM_COMP_INT_CLEAR_BIT_SHIFT 0x17UL
47 #define CC_HOST_ICR_AXIM_COMP_INT_CLEAR_BIT_SIZE 0x1UL
48 #define CC_HOST_SIGNATURE_REG_OFFSET 0xA24UL
49 #define CC_HOST_SIGNATURE_VALUE_BIT_SHIFT 0x0UL
50 #define CC_HOST_SIGNATURE_VALUE_BIT_SIZE 0x20UL
51 #define CC_HOST_BOOT_REG_OFFSET 0xA28UL
52 #define CC_HOST_BOOT_SYNTHESIS_CONFIG_BIT_SHIFT 0x0UL
53 #define CC_HOST_BOOT_SYNTHESIS_CONFIG_BIT_SIZE 0x1UL
54 #define CC_HOST_BOOT_LARGE_RKEK_LOCAL_BIT_SHIFT 0x1UL
55 #define CC_HOST_BOOT_LARGE_RKEK_LOCAL_BIT_SIZE 0x1UL
56 #define CC_HOST_BOOT_HASH_IN_FUSES_LOCAL_BIT_SHIFT 0x2UL
57 #define CC_HOST_BOOT_HASH_IN_FUSES_LOCAL_BIT_SIZE 0x1UL
58 #define CC_HOST_BOOT_EXT_MEM_SECURED_LOCAL_BIT_SHIFT 0x3UL
59 #define CC_HOST_BOOT_EXT_MEM_SECURED_LOCAL_BIT_SIZE 0x1UL
60 #define CC_HOST_BOOT_RKEK_ECC_EXISTS_LOCAL_N_BIT_SHIFT 0x5UL
61 #define CC_HOST_BOOT_RKEK_ECC_EXISTS_LOCAL_N_BIT_SIZE 0x1UL
62 #define CC_HOST_BOOT_SRAM_SIZE_LOCAL_BIT_SHIFT 0x6UL
63 #define CC_HOST_BOOT_SRAM_SIZE_LOCAL_BIT_SIZE 0x3UL
64 #define CC_HOST_BOOT_DSCRPTR_EXISTS_LOCAL_BIT_SHIFT 0x9UL
65 #define CC_HOST_BOOT_DSCRPTR_EXISTS_LOCAL_BIT_SIZE 0x1UL
66 #define CC_HOST_BOOT_PAU_EXISTS_LOCAL_BIT_SHIFT 0xAUL
67 #define CC_HOST_BOOT_PAU_EXISTS_LOCAL_BIT_SIZE 0x1UL
68 #define CC_HOST_BOOT_RNG_EXISTS_LOCAL_BIT_SHIFT 0xBUL
69 #define CC_HOST_BOOT_RNG_EXISTS_LOCAL_BIT_SIZE 0x1UL
70 #define CC_HOST_BOOT_PKA_EXISTS_LOCAL_BIT_SHIFT 0xCUL
71 #define CC_HOST_BOOT_PKA_EXISTS_LOCAL_BIT_SIZE 0x1UL
72 #define CC_HOST_BOOT_RC4_EXISTS_LOCAL_BIT_SHIFT 0xDUL
73 #define CC_HOST_BOOT_RC4_EXISTS_LOCAL_BIT_SIZE 0x1UL
74 #define CC_HOST_BOOT_SHA_512_PRSNT_LOCAL_BIT_SHIFT 0xEUL
75 #define CC_HOST_BOOT_SHA_512_PRSNT_LOCAL_BIT_SIZE 0x1UL
76 #define CC_HOST_BOOT_SHA_256_PRSNT_LOCAL_BIT_SHIFT 0xFUL
77 #define CC_HOST_BOOT_SHA_256_PRSNT_LOCAL_BIT_SIZE 0x1UL
78 #define CC_HOST_BOOT_MD5_PRSNT_LOCAL_BIT_SHIFT 0x10UL
79 #define CC_HOST_BOOT_MD5_PRSNT_LOCAL_BIT_SIZE 0x1UL
80 #define CC_HOST_BOOT_HASH_EXISTS_LOCAL_BIT_SHIFT 0x11UL
81 #define CC_HOST_BOOT_HASH_EXISTS_LOCAL_BIT_SIZE 0x1UL
82 #define CC_HOST_BOOT_C2_EXISTS_LOCAL_BIT_SHIFT 0x12UL
83 #define CC_HOST_BOOT_C2_EXISTS_LOCAL_BIT_SIZE 0x1UL
84 #define CC_HOST_BOOT_DES_EXISTS_LOCAL_BIT_SHIFT 0x13UL
85 #define CC_HOST_BOOT_DES_EXISTS_LOCAL_BIT_SIZE 0x1UL
86 #define CC_HOST_BOOT_AES_XCBC_MAC_EXISTS_LOCAL_BIT_SHIFT 0x14UL
87 #define CC_HOST_BOOT_AES_XCBC_MAC_EXISTS_LOCAL_BIT_SIZE 0x1UL
88 #define CC_HOST_BOOT_AES_CMAC_EXISTS_LOCAL_BIT_SHIFT 0x15UL
89 #define CC_HOST_BOOT_AES_CMAC_EXISTS_LOCAL_BIT_SIZE 0x1UL
90 #define CC_HOST_BOOT_AES_CCM_EXISTS_LOCAL_BIT_SHIFT 0x16UL
91 #define CC_HOST_BOOT_AES_CCM_EXISTS_LOCAL_BIT_SIZE 0x1UL
92 #define CC_HOST_BOOT_AES_XEX_HW_T_CALC_LOCAL_BIT_SHIFT 0x17UL
93 #define CC_HOST_BOOT_AES_XEX_HW_T_CALC_LOCAL_BIT_SIZE 0x1UL
94 #define CC_HOST_BOOT_AES_XEX_EXISTS_LOCAL_BIT_SHIFT 0x18UL
95 #define CC_HOST_BOOT_AES_XEX_EXISTS_LOCAL_BIT_SIZE 0x1UL
96 #define CC_HOST_BOOT_CTR_EXISTS_LOCAL_BIT_SHIFT 0x19UL
97 #define CC_HOST_BOOT_CTR_EXISTS_LOCAL_BIT_SIZE 0x1UL
98 #define CC_HOST_BOOT_AES_DIN_BYTE_RESOLUTION_LOCAL_BIT_SHIFT 0x1AUL
99 #define CC_HOST_BOOT_AES_DIN_BYTE_RESOLUTION_LOCAL_BIT_SIZE 0x1UL
100 #define CC_HOST_BOOT_TUNNELING_ENB_LOCAL_BIT_SHIFT 0x1BUL
101 #define CC_HOST_BOOT_TUNNELING_ENB_LOCAL_BIT_SIZE 0x1UL
102 #define CC_HOST_BOOT_SUPPORT_256_192_KEY_LOCAL_BIT_SHIFT 0x1CUL
103 #define CC_HOST_BOOT_SUPPORT_256_192_KEY_LOCAL_BIT_SIZE 0x1UL
104 #define CC_HOST_BOOT_ONLY_ENCRYPT_LOCAL_BIT_SHIFT 0x1DUL
105 #define CC_HOST_BOOT_ONLY_ENCRYPT_LOCAL_BIT_SIZE 0x1UL
106 #define CC_HOST_BOOT_AES_EXISTS_LOCAL_BIT_SHIFT 0x1EUL
107 #define CC_HOST_BOOT_AES_EXISTS_LOCAL_BIT_SIZE 0x1UL
108 #define CC_HOST_VERSION_REG_OFFSET 0xA40UL
109 #define CC_HOST_VERSION_VALUE_BIT_SHIFT 0x0UL
110 #define CC_HOST_VERSION_VALUE_BIT_SIZE 0x20UL
111 #define CC_HOST_KFDE0_VALID_REG_OFFSET 0xA60UL
112 #define CC_HOST_KFDE0_VALID_VALUE_BIT_SHIFT 0x0UL
113 #define CC_HOST_KFDE0_VALID_VALUE_BIT_SIZE 0x1UL
114 #define CC_HOST_KFDE1_VALID_REG_OFFSET 0xA64UL
115 #define CC_HOST_KFDE1_VALID_VALUE_BIT_SHIFT 0x0UL
116 #define CC_HOST_KFDE1_VALID_VALUE_BIT_SIZE 0x1UL
117 #define CC_HOST_KFDE2_VALID_REG_OFFSET 0xA68UL
118 #define CC_HOST_KFDE2_VALID_VALUE_BIT_SHIFT 0x0UL
119 #define CC_HOST_KFDE2_VALID_VALUE_BIT_SIZE 0x1UL
120 #define CC_HOST_KFDE3_VALID_REG_OFFSET 0xA6CUL
121 #define CC_HOST_KFDE3_VALID_VALUE_BIT_SHIFT 0x0UL
122 #define CC_HOST_KFDE3_VALID_VALUE_BIT_SIZE 0x1UL
123 #define CC_HOST_GPR0_REG_OFFSET 0xA70UL
124 #define CC_HOST_GPR0_VALUE_BIT_SHIFT 0x0UL
125 #define CC_HOST_GPR0_VALUE_BIT_SIZE 0x20UL
126 #define CC_GPR_HOST_REG_OFFSET 0xA74UL
127 #define CC_GPR_HOST_VALUE_BIT_SHIFT 0x0UL
128 #define CC_GPR_HOST_VALUE_BIT_SIZE 0x20UL
129 #define CC_HOST_POWER_DOWN_EN_REG_OFFSET 0xA78UL
130 #define CC_HOST_POWER_DOWN_EN_VALUE_BIT_SHIFT 0x0UL
131 #define CC_HOST_POWER_DOWN_EN_VALUE_BIT_SIZE 0x1UL
132 // --------------------------------------
134 // --------------------------------------
135 #define CC_SRAM_DATA_REG_OFFSET 0xF00UL
136 #define CC_SRAM_DATA_VALUE_BIT_SHIFT 0x0UL
137 #define CC_SRAM_DATA_VALUE_BIT_SIZE 0x20UL
138 #define CC_SRAM_ADDR_REG_OFFSET 0xF04UL
139 #define CC_SRAM_ADDR_VALUE_BIT_SHIFT 0x0UL
140 #define CC_SRAM_ADDR_VALUE_BIT_SIZE 0xFUL
141 #define CC_SRAM_DATA_READY_REG_OFFSET 0xF08UL
142 #define CC_SRAM_DATA_READY_VALUE_BIT_SHIFT 0x0UL
143 #define CC_SRAM_DATA_READY_VALUE_BIT_SIZE 0x1UL
145 #endif //__CC_HOST_H__