18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* Copyright (C) 2012-2019 ARM Limited or its affiliates. */ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef __CC_HOST_H__ 58c2ecf20Sopenharmony_ci#define __CC_HOST_H__ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci// -------------------------------------- 88c2ecf20Sopenharmony_ci// BLOCK: HOST_P 98c2ecf20Sopenharmony_ci// -------------------------------------- 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* IRR */ 138c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REG_OFFSET 0xA00UL 148c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_0_INT_BIT_SHIFT 0x1UL 158c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_0_INT_BIT_SIZE 0x1UL 168c2ecf20Sopenharmony_ci#define CC_HOST_IRR_DSCRPTR_COMPLETION_LOW_INT_BIT_SHIFT 0x2UL 178c2ecf20Sopenharmony_ci#define CC_HOST_IRR_DSCRPTR_COMPLETION_LOW_INT_BIT_SIZE 0x1UL 188c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_1_INT_BIT_SHIFT 0x3UL 198c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_1_INT_BIT_SIZE 0x1UL 208c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_2_INT_BIT_SHIFT 0x4UL 218c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_2_INT_BIT_SIZE 0x1UL 228c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_3_INT_BIT_SHIFT 0x5UL 238c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_3_INT_BIT_SIZE 0x1UL 248c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_4_INT_BIT_SHIFT 0x6UL 258c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_4_INT_BIT_SIZE 0x1UL 268c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_5_INT_BIT_SHIFT 0x7UL 278c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_5_INT_BIT_SIZE 0x1UL 288c2ecf20Sopenharmony_ci#define CC_HOST_IRR_AXI_ERR_INT_BIT_SHIFT 0x8UL 298c2ecf20Sopenharmony_ci#define CC_HOST_IRR_AXI_ERR_INT_BIT_SIZE 0x1UL 308c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_6_INT_BIT_SHIFT 0x9UL 318c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_6_INT_BIT_SIZE 0x1UL 328c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_7_INT_BIT_SHIFT 0xAUL 338c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_7_INT_BIT_SIZE 0x1UL 348c2ecf20Sopenharmony_ci#define CC_HOST_IRR_GPR0_BIT_SHIFT 0xBUL 358c2ecf20Sopenharmony_ci#define CC_HOST_IRR_GPR0_BIT_SIZE 0x1UL 368c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_0_INT_BIT_SHIFT 0xCUL 378c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_0_INT_BIT_SIZE 0x1UL 388c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_1_INT_BIT_SHIFT 0xDUL 398c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_1_INT_BIT_SIZE 0x1UL 408c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_2_INT_BIT_SHIFT 0xEUL 418c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_2_INT_BIT_SIZE 0x1UL 428c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_3_INT_BIT_SHIFT 0xFUL 438c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_3_INT_BIT_SIZE 0x1UL 448c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_4_INT_BIT_SHIFT 0x10UL 458c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_4_INT_BIT_SIZE 0x1UL 468c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_5_INT_BIT_SHIFT 0x11UL 478c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_5_INT_BIT_SIZE 0x1UL 488c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_6_INT_BIT_SHIFT 0x12UL 498c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_6_INT_BIT_SIZE 0x1UL 508c2ecf20Sopenharmony_ci#define CC_HOST_IRR_DSCRPTR_WATERMARK_INT_BIT_SHIFT 0x13UL 518c2ecf20Sopenharmony_ci#define CC_HOST_IRR_DSCRPTR_WATERMARK_INT_BIT_SIZE 0x1UL 528c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_7_INT_BIT_SHIFT 0x14UL 538c2ecf20Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_7_INT_BIT_SIZE 0x1UL 548c2ecf20Sopenharmony_ci#define CC_HOST_IRR_AXIM_COMP_INT_BIT_SHIFT 0x17UL 558c2ecf20Sopenharmony_ci#define CC_HOST_IRR_AXIM_COMP_INT_BIT_SIZE 0x1UL 568c2ecf20Sopenharmony_ci#define CC_HOST_SEP_SRAM_THRESHOLD_REG_OFFSET 0xA10UL 578c2ecf20Sopenharmony_ci#define CC_HOST_SEP_SRAM_THRESHOLD_VALUE_BIT_SHIFT 0x0UL 588c2ecf20Sopenharmony_ci#define CC_HOST_SEP_SRAM_THRESHOLD_VALUE_BIT_SIZE 0xCUL 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci/* IMR */ 618c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REG_OFFSET 0x0A04UL 628c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_0_MASK_BIT_SHIFT 0x1UL 638c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_0_MASK_BIT_SIZE 0x1UL 648c2ecf20Sopenharmony_ci#define CC_HOST_IMR_DSCRPTR_COMPLETION_MASK_BIT_SHIFT 0x2UL 658c2ecf20Sopenharmony_ci#define CC_HOST_IMR_DSCRPTR_COMPLETION_MASK_BIT_SIZE 0x1UL 668c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_1_MASK_BIT_SHIFT 0x3UL 678c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_1_MASK_BIT_SIZE 0x1UL 688c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_2_MASK_BIT_SHIFT 0x4UL 698c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_2_MASK_BIT_SIZE 0x1UL 708c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_3_MASK_BIT_SHIFT 0x5UL 718c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_3_MASK_BIT_SIZE 0x1UL 728c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_4_MASK_BIT_SHIFT 0x6UL 738c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_4_MASK_BIT_SIZE 0x1UL 748c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_5_MASK_BIT_SHIFT 0x7UL 758c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_5_MASK_BIT_SIZE 0x1UL 768c2ecf20Sopenharmony_ci#define CC_HOST_IMR_AXI_ERR_MASK_BIT_SHIFT 0x8UL 778c2ecf20Sopenharmony_ci#define CC_HOST_IMR_AXI_ERR_MASK_BIT_SIZE 0x1UL 788c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_6_MASK_BIT_SHIFT 0x9UL 798c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_6_MASK_BIT_SIZE 0x1UL 808c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_7_MASK_BIT_SHIFT 0xAUL 818c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_7_MASK_BIT_SIZE 0x1UL 828c2ecf20Sopenharmony_ci#define CC_HOST_IMR_GPR0_BIT_SHIFT 0xBUL 838c2ecf20Sopenharmony_ci#define CC_HOST_IMR_GPR0_BIT_SIZE 0x1UL 848c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_0_MASK_BIT_SHIFT 0xCUL 858c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_0_MASK_BIT_SIZE 0x1UL 868c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_1_MASK_BIT_SHIFT 0xDUL 878c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_1_MASK_BIT_SIZE 0x1UL 888c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_2_MASK_BIT_SHIFT 0xEUL 898c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_2_MASK_BIT_SIZE 0x1UL 908c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_3_MASK_BIT_SHIFT 0xFUL 918c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_3_MASK_BIT_SIZE 0x1UL 928c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_4_MASK_BIT_SHIFT 0x10UL 938c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_4_MASK_BIT_SIZE 0x1UL 948c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_5_MASK_BIT_SHIFT 0x11UL 958c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_5_MASK_BIT_SIZE 0x1UL 968c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_6_MASK_BIT_SHIFT 0x12UL 978c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_6_MASK_BIT_SIZE 0x1UL 988c2ecf20Sopenharmony_ci#define CC_HOST_IMR_DSCRPTR_WATERMARK_MASK0_BIT_SHIFT 0x13UL 998c2ecf20Sopenharmony_ci#define CC_HOST_IMR_DSCRPTR_WATERMARK_MASK0_BIT_SIZE 0x1UL 1008c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_7_MASK_BIT_SHIFT 0x14UL 1018c2ecf20Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_7_MASK_BIT_SIZE 0x1UL 1028c2ecf20Sopenharmony_ci#define CC_HOST_IMR_AXIM_COMP_INT_MASK_BIT_SHIFT 0x17UL 1038c2ecf20Sopenharmony_ci#define CC_HOST_IMR_AXIM_COMP_INT_MASK_BIT_SIZE 0x1UL 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci/* ICR */ 1068c2ecf20Sopenharmony_ci#define CC_HOST_ICR_REG_OFFSET 0xA08UL 1078c2ecf20Sopenharmony_ci#define CC_HOST_ICR_DSCRPTR_COMPLETION_BIT_SHIFT 0x2UL 1088c2ecf20Sopenharmony_ci#define CC_HOST_ICR_DSCRPTR_COMPLETION_BIT_SIZE 0x1UL 1098c2ecf20Sopenharmony_ci#define CC_HOST_ICR_AXI_ERR_CLEAR_BIT_SHIFT 0x8UL 1108c2ecf20Sopenharmony_ci#define CC_HOST_ICR_AXI_ERR_CLEAR_BIT_SIZE 0x1UL 1118c2ecf20Sopenharmony_ci#define CC_HOST_ICR_GPR_INT_CLEAR_BIT_SHIFT 0xBUL 1128c2ecf20Sopenharmony_ci#define CC_HOST_ICR_GPR_INT_CLEAR_BIT_SIZE 0x1UL 1138c2ecf20Sopenharmony_ci#define CC_HOST_ICR_DSCRPTR_WATERMARK_QUEUE0_CLEAR_BIT_SHIFT 0x13UL 1148c2ecf20Sopenharmony_ci#define CC_HOST_ICR_DSCRPTR_WATERMARK_QUEUE0_CLEAR_BIT_SIZE 0x1UL 1158c2ecf20Sopenharmony_ci#define CC_HOST_ICR_AXIM_COMP_INT_CLEAR_BIT_SHIFT 0x17UL 1168c2ecf20Sopenharmony_ci#define CC_HOST_ICR_AXIM_COMP_INT_CLEAR_BIT_SIZE 0x1UL 1178c2ecf20Sopenharmony_ci#define CC_NVM_IS_IDLE_REG_OFFSET 0x0A10UL 1188c2ecf20Sopenharmony_ci#define CC_NVM_IS_IDLE_VALUE_BIT_SHIFT 0x0UL 1198c2ecf20Sopenharmony_ci#define CC_NVM_IS_IDLE_VALUE_BIT_SIZE 0x1UL 1208c2ecf20Sopenharmony_ci#define CC_SECURITY_DISABLED_REG_OFFSET 0x0A1CUL 1218c2ecf20Sopenharmony_ci#define CC_SECURITY_DISABLED_VALUE_BIT_SHIFT 0x0UL 1228c2ecf20Sopenharmony_ci#define CC_SECURITY_DISABLED_VALUE_BIT_SIZE 0x1UL 1238c2ecf20Sopenharmony_ci#define CC_HOST_SIGNATURE_712_REG_OFFSET 0xA24UL 1248c2ecf20Sopenharmony_ci#define CC_HOST_SIGNATURE_630_REG_OFFSET 0xAC8UL 1258c2ecf20Sopenharmony_ci#define CC_HOST_SIGNATURE_VALUE_BIT_SHIFT 0x0UL 1268c2ecf20Sopenharmony_ci#define CC_HOST_SIGNATURE_VALUE_BIT_SIZE 0x20UL 1278c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_REG_OFFSET 0xA28UL 1288c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SYNTHESIS_CONFIG_BIT_SHIFT 0x0UL 1298c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SYNTHESIS_CONFIG_BIT_SIZE 0x1UL 1308c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_LARGE_RKEK_LOCAL_BIT_SHIFT 0x1UL 1318c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_LARGE_RKEK_LOCAL_BIT_SIZE 0x1UL 1328c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_HASH_IN_FUSES_LOCAL_BIT_SHIFT 0x2UL 1338c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_HASH_IN_FUSES_LOCAL_BIT_SIZE 0x1UL 1348c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_EXT_MEM_SECURED_LOCAL_BIT_SHIFT 0x3UL 1358c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_EXT_MEM_SECURED_LOCAL_BIT_SIZE 0x1UL 1368c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_RKEK_ECC_EXISTS_LOCAL_N_BIT_SHIFT 0x5UL 1378c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_RKEK_ECC_EXISTS_LOCAL_N_BIT_SIZE 0x1UL 1388c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SRAM_SIZE_LOCAL_BIT_SHIFT 0x6UL 1398c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SRAM_SIZE_LOCAL_BIT_SIZE 0x3UL 1408c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_DSCRPTR_EXISTS_LOCAL_BIT_SHIFT 0x9UL 1418c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_DSCRPTR_EXISTS_LOCAL_BIT_SIZE 0x1UL 1428c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_PAU_EXISTS_LOCAL_BIT_SHIFT 0xAUL 1438c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_PAU_EXISTS_LOCAL_BIT_SIZE 0x1UL 1448c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_RNG_EXISTS_LOCAL_BIT_SHIFT 0xBUL 1458c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_RNG_EXISTS_LOCAL_BIT_SIZE 0x1UL 1468c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_PKA_EXISTS_LOCAL_BIT_SHIFT 0xCUL 1478c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_PKA_EXISTS_LOCAL_BIT_SIZE 0x1UL 1488c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_RC4_EXISTS_LOCAL_BIT_SHIFT 0xDUL 1498c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_RC4_EXISTS_LOCAL_BIT_SIZE 0x1UL 1508c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SHA_512_PRSNT_LOCAL_BIT_SHIFT 0xEUL 1518c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SHA_512_PRSNT_LOCAL_BIT_SIZE 0x1UL 1528c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SHA_256_PRSNT_LOCAL_BIT_SHIFT 0xFUL 1538c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SHA_256_PRSNT_LOCAL_BIT_SIZE 0x1UL 1548c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_MD5_PRSNT_LOCAL_BIT_SHIFT 0x10UL 1558c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_MD5_PRSNT_LOCAL_BIT_SIZE 0x1UL 1568c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_HASH_EXISTS_LOCAL_BIT_SHIFT 0x11UL 1578c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_HASH_EXISTS_LOCAL_BIT_SIZE 0x1UL 1588c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_C2_EXISTS_LOCAL_BIT_SHIFT 0x12UL 1598c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_C2_EXISTS_LOCAL_BIT_SIZE 0x1UL 1608c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_DES_EXISTS_LOCAL_BIT_SHIFT 0x13UL 1618c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_DES_EXISTS_LOCAL_BIT_SIZE 0x1UL 1628c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_XCBC_MAC_EXISTS_LOCAL_BIT_SHIFT 0x14UL 1638c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_XCBC_MAC_EXISTS_LOCAL_BIT_SIZE 0x1UL 1648c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_CMAC_EXISTS_LOCAL_BIT_SHIFT 0x15UL 1658c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_CMAC_EXISTS_LOCAL_BIT_SIZE 0x1UL 1668c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_CCM_EXISTS_LOCAL_BIT_SHIFT 0x16UL 1678c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_CCM_EXISTS_LOCAL_BIT_SIZE 0x1UL 1688c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_XEX_HW_T_CALC_LOCAL_BIT_SHIFT 0x17UL 1698c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_XEX_HW_T_CALC_LOCAL_BIT_SIZE 0x1UL 1708c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_XEX_EXISTS_LOCAL_BIT_SHIFT 0x18UL 1718c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_XEX_EXISTS_LOCAL_BIT_SIZE 0x1UL 1728c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_CTR_EXISTS_LOCAL_BIT_SHIFT 0x19UL 1738c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_CTR_EXISTS_LOCAL_BIT_SIZE 0x1UL 1748c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_DIN_BYTE_RESOLUTION_LOCAL_BIT_SHIFT 0x1AUL 1758c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_DIN_BYTE_RESOLUTION_LOCAL_BIT_SIZE 0x1UL 1768c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_TUNNELING_ENB_LOCAL_BIT_SHIFT 0x1BUL 1778c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_TUNNELING_ENB_LOCAL_BIT_SIZE 0x1UL 1788c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SUPPORT_256_192_KEY_LOCAL_BIT_SHIFT 0x1CUL 1798c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_SUPPORT_256_192_KEY_LOCAL_BIT_SIZE 0x1UL 1808c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_ONLY_ENCRYPT_LOCAL_BIT_SHIFT 0x1DUL 1818c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_ONLY_ENCRYPT_LOCAL_BIT_SIZE 0x1UL 1828c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_EXISTS_LOCAL_BIT_SHIFT 0x1EUL 1838c2ecf20Sopenharmony_ci#define CC_HOST_BOOT_AES_EXISTS_LOCAL_BIT_SIZE 0x1UL 1848c2ecf20Sopenharmony_ci#define CC_HOST_VERSION_712_REG_OFFSET 0xA40UL 1858c2ecf20Sopenharmony_ci#define CC_HOST_VERSION_630_REG_OFFSET 0xAD8UL 1868c2ecf20Sopenharmony_ci#define CC_HOST_VERSION_VALUE_BIT_SHIFT 0x0UL 1878c2ecf20Sopenharmony_ci#define CC_HOST_VERSION_VALUE_BIT_SIZE 0x20UL 1888c2ecf20Sopenharmony_ci#define CC_HOST_KFDE0_VALID_REG_OFFSET 0xA60UL 1898c2ecf20Sopenharmony_ci#define CC_HOST_KFDE0_VALID_VALUE_BIT_SHIFT 0x0UL 1908c2ecf20Sopenharmony_ci#define CC_HOST_KFDE0_VALID_VALUE_BIT_SIZE 0x1UL 1918c2ecf20Sopenharmony_ci#define CC_HOST_KFDE1_VALID_REG_OFFSET 0xA64UL 1928c2ecf20Sopenharmony_ci#define CC_HOST_KFDE1_VALID_VALUE_BIT_SHIFT 0x0UL 1938c2ecf20Sopenharmony_ci#define CC_HOST_KFDE1_VALID_VALUE_BIT_SIZE 0x1UL 1948c2ecf20Sopenharmony_ci#define CC_HOST_KFDE2_VALID_REG_OFFSET 0xA68UL 1958c2ecf20Sopenharmony_ci#define CC_HOST_KFDE2_VALID_VALUE_BIT_SHIFT 0x0UL 1968c2ecf20Sopenharmony_ci#define CC_HOST_KFDE2_VALID_VALUE_BIT_SIZE 0x1UL 1978c2ecf20Sopenharmony_ci#define CC_HOST_KFDE3_VALID_REG_OFFSET 0xA6CUL 1988c2ecf20Sopenharmony_ci#define CC_HOST_KFDE3_VALID_VALUE_BIT_SHIFT 0x0UL 1998c2ecf20Sopenharmony_ci#define CC_HOST_KFDE3_VALID_VALUE_BIT_SIZE 0x1UL 2008c2ecf20Sopenharmony_ci#define CC_HOST_GPR0_REG_OFFSET 0xA70UL 2018c2ecf20Sopenharmony_ci#define CC_HOST_GPR0_VALUE_BIT_SHIFT 0x0UL 2028c2ecf20Sopenharmony_ci#define CC_HOST_GPR0_VALUE_BIT_SIZE 0x20UL 2038c2ecf20Sopenharmony_ci#define CC_GPR_HOST_REG_OFFSET 0xA74UL 2048c2ecf20Sopenharmony_ci#define CC_GPR_HOST_VALUE_BIT_SHIFT 0x0UL 2058c2ecf20Sopenharmony_ci#define CC_GPR_HOST_VALUE_BIT_SIZE 0x20UL 2068c2ecf20Sopenharmony_ci#define CC_HOST_POWER_DOWN_EN_REG_OFFSET 0xA78UL 2078c2ecf20Sopenharmony_ci#define CC_HOST_POWER_DOWN_EN_VALUE_BIT_SHIFT 0x0UL 2088c2ecf20Sopenharmony_ci#define CC_HOST_POWER_DOWN_EN_VALUE_BIT_SIZE 0x1UL 2098c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REG_OFFSET 0x0A7CUL 2108c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_AES_ENGINE_BIT_SHIFT 0x0UL 2118c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_AES_ENGINE_BIT_SIZE 0x1UL 2128c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_AES_MAC_ENGINE_BIT_SHIFT 0x1UL 2138c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_AES_MAC_ENGINE_BIT_SIZE 0x1UL 2148c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_GHASH_ENGINE_BIT_SHIFT 0x2UL 2158c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_GHASH_ENGINE_BIT_SIZE 0x1UL 2168c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_DES_ENGINE_BIT_SHIFT 0x3UL 2178c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_DES_ENGINE_BIT_SIZE 0x1UL 2188c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_HASH_ENGINE_BIT_SHIFT 0x4UL 2198c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_HASH_ENGINE_BIT_SIZE 0x1UL 2208c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_SM3_ENGINE_BIT_SHIFT 0x5UL 2218c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_SM3_ENGINE_BIT_SIZE 0x1UL 2228c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_SM4_ENGINE_BIT_SHIFT 0x6UL 2238c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_SM4_ENGINE_BIT_SIZE 0x1UL 2248c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_OTP_DISCONNECTED_BIT_SHIFT 0x7UL 2258c2ecf20Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_OTP_DISCONNECTED_BIT_SIZE 0x1UL 2268c2ecf20Sopenharmony_ci// -------------------------------------- 2278c2ecf20Sopenharmony_ci// BLOCK: ID_REGISTERS 2288c2ecf20Sopenharmony_ci// -------------------------------------- 2298c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_4_REG_OFFSET 0x0FD0UL 2308c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_4_VALUE_BIT_SHIFT 0x0UL 2318c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_4_VALUE_BIT_SIZE 0x4UL 2328c2ecf20Sopenharmony_ci#define CC_PIDRESERVED0_REG_OFFSET 0x0FD4UL 2338c2ecf20Sopenharmony_ci#define CC_PIDRESERVED1_REG_OFFSET 0x0FD8UL 2348c2ecf20Sopenharmony_ci#define CC_PIDRESERVED2_REG_OFFSET 0x0FDCUL 2358c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_0_REG_OFFSET 0x0FE0UL 2368c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_0_VALUE_BIT_SHIFT 0x0UL 2378c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_0_VALUE_BIT_SIZE 0x8UL 2388c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_1_REG_OFFSET 0x0FE4UL 2398c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_1_PART_1_BIT_SHIFT 0x0UL 2408c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_1_PART_1_BIT_SIZE 0x4UL 2418c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_1_DES_0_JEP106_BIT_SHIFT 0x4UL 2428c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_1_DES_0_JEP106_BIT_SIZE 0x4UL 2438c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_2_REG_OFFSET 0x0FE8UL 2448c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_2_DES_1_JEP106_BIT_SHIFT 0x0UL 2458c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_2_DES_1_JEP106_BIT_SIZE 0x3UL 2468c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_2_JEDEC_BIT_SHIFT 0x3UL 2478c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_2_JEDEC_BIT_SIZE 0x1UL 2488c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_2_REVISION_BIT_SHIFT 0x4UL 2498c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_2_REVISION_BIT_SIZE 0x4UL 2508c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_3_REG_OFFSET 0x0FECUL 2518c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_3_CMOD_BIT_SHIFT 0x0UL 2528c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_3_CMOD_BIT_SIZE 0x4UL 2538c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_3_REVAND_BIT_SHIFT 0x4UL 2548c2ecf20Sopenharmony_ci#define CC_PERIPHERAL_ID_3_REVAND_BIT_SIZE 0x4UL 2558c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_0_REG_OFFSET 0x0FF0UL 2568c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_0_VALUE_BIT_SHIFT 0x0UL 2578c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_0_VALUE_BIT_SIZE 0x8UL 2588c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_1_REG_OFFSET 0x0FF4UL 2598c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_1_PRMBL_1_BIT_SHIFT 0x0UL 2608c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_1_PRMBL_1_BIT_SIZE 0x4UL 2618c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_1_CLASS_BIT_SHIFT 0x4UL 2628c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_1_CLASS_BIT_SIZE 0x4UL 2638c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_2_REG_OFFSET 0x0FF8UL 2648c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_2_VALUE_BIT_SHIFT 0x0UL 2658c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_2_VALUE_BIT_SIZE 0x8UL 2668c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_3_REG_OFFSET 0x0FFCUL 2678c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_3_VALUE_BIT_SHIFT 0x0UL 2688c2ecf20Sopenharmony_ci#define CC_COMPONENT_ID_3_VALUE_BIT_SIZE 0x8UL 2698c2ecf20Sopenharmony_ci// -------------------------------------- 2708c2ecf20Sopenharmony_ci// BLOCK: HOST_SRAM 2718c2ecf20Sopenharmony_ci// -------------------------------------- 2728c2ecf20Sopenharmony_ci#define CC_SRAM_DATA_REG_OFFSET 0xF00UL 2738c2ecf20Sopenharmony_ci#define CC_SRAM_DATA_VALUE_BIT_SHIFT 0x0UL 2748c2ecf20Sopenharmony_ci#define CC_SRAM_DATA_VALUE_BIT_SIZE 0x20UL 2758c2ecf20Sopenharmony_ci#define CC_SRAM_ADDR_REG_OFFSET 0xF04UL 2768c2ecf20Sopenharmony_ci#define CC_SRAM_ADDR_VALUE_BIT_SHIFT 0x0UL 2778c2ecf20Sopenharmony_ci#define CC_SRAM_ADDR_VALUE_BIT_SIZE 0xFUL 2788c2ecf20Sopenharmony_ci#define CC_SRAM_DATA_READY_REG_OFFSET 0xF08UL 2798c2ecf20Sopenharmony_ci#define CC_SRAM_DATA_READY_VALUE_BIT_SHIFT 0x0UL 2808c2ecf20Sopenharmony_ci#define CC_SRAM_DATA_READY_VALUE_BIT_SIZE 0x1UL 2818c2ecf20Sopenharmony_ci 2828c2ecf20Sopenharmony_ci#endif //__CC_HOST_H__ 283