162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* Copyright (C) 2012-2019 ARM Limited or its affiliates. */ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifndef __CC_HOST_H__ 562306a36Sopenharmony_ci#define __CC_HOST_H__ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci// -------------------------------------- 862306a36Sopenharmony_ci// BLOCK: HOST_P 962306a36Sopenharmony_ci// -------------------------------------- 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci/* IRR */ 1362306a36Sopenharmony_ci#define CC_HOST_IRR_REG_OFFSET 0xA00UL 1462306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_0_INT_BIT_SHIFT 0x1UL 1562306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_0_INT_BIT_SIZE 0x1UL 1662306a36Sopenharmony_ci#define CC_HOST_IRR_DSCRPTR_COMPLETION_LOW_INT_BIT_SHIFT 0x2UL 1762306a36Sopenharmony_ci#define CC_HOST_IRR_DSCRPTR_COMPLETION_LOW_INT_BIT_SIZE 0x1UL 1862306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_1_INT_BIT_SHIFT 0x3UL 1962306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_1_INT_BIT_SIZE 0x1UL 2062306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_2_INT_BIT_SHIFT 0x4UL 2162306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_2_INT_BIT_SIZE 0x1UL 2262306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_3_INT_BIT_SHIFT 0x5UL 2362306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_3_INT_BIT_SIZE 0x1UL 2462306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_4_INT_BIT_SHIFT 0x6UL 2562306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_4_INT_BIT_SIZE 0x1UL 2662306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_5_INT_BIT_SHIFT 0x7UL 2762306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_5_INT_BIT_SIZE 0x1UL 2862306a36Sopenharmony_ci#define CC_HOST_IRR_AXI_ERR_INT_BIT_SHIFT 0x8UL 2962306a36Sopenharmony_ci#define CC_HOST_IRR_AXI_ERR_INT_BIT_SIZE 0x1UL 3062306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_6_INT_BIT_SHIFT 0x9UL 3162306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_6_INT_BIT_SIZE 0x1UL 3262306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_7_INT_BIT_SHIFT 0xAUL 3362306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_AES_7_INT_BIT_SIZE 0x1UL 3462306a36Sopenharmony_ci#define CC_HOST_IRR_GPR0_BIT_SHIFT 0xBUL 3562306a36Sopenharmony_ci#define CC_HOST_IRR_GPR0_BIT_SIZE 0x1UL 3662306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_0_INT_BIT_SHIFT 0xCUL 3762306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_0_INT_BIT_SIZE 0x1UL 3862306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_1_INT_BIT_SHIFT 0xDUL 3962306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_1_INT_BIT_SIZE 0x1UL 4062306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_2_INT_BIT_SHIFT 0xEUL 4162306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_2_INT_BIT_SIZE 0x1UL 4262306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_3_INT_BIT_SHIFT 0xFUL 4362306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_3_INT_BIT_SIZE 0x1UL 4462306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_4_INT_BIT_SHIFT 0x10UL 4562306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_4_INT_BIT_SIZE 0x1UL 4662306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_5_INT_BIT_SHIFT 0x11UL 4762306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_5_INT_BIT_SIZE 0x1UL 4862306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_6_INT_BIT_SHIFT 0x12UL 4962306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_6_INT_BIT_SIZE 0x1UL 5062306a36Sopenharmony_ci#define CC_HOST_IRR_DSCRPTR_WATERMARK_INT_BIT_SHIFT 0x13UL 5162306a36Sopenharmony_ci#define CC_HOST_IRR_DSCRPTR_WATERMARK_INT_BIT_SIZE 0x1UL 5262306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_7_INT_BIT_SHIFT 0x14UL 5362306a36Sopenharmony_ci#define CC_HOST_IRR_REE_OP_ABORTED_SM_7_INT_BIT_SIZE 0x1UL 5462306a36Sopenharmony_ci#define CC_HOST_IRR_AXIM_COMP_INT_BIT_SHIFT 0x17UL 5562306a36Sopenharmony_ci#define CC_HOST_IRR_AXIM_COMP_INT_BIT_SIZE 0x1UL 5662306a36Sopenharmony_ci#define CC_HOST_SEP_SRAM_THRESHOLD_REG_OFFSET 0xA10UL 5762306a36Sopenharmony_ci#define CC_HOST_SEP_SRAM_THRESHOLD_VALUE_BIT_SHIFT 0x0UL 5862306a36Sopenharmony_ci#define CC_HOST_SEP_SRAM_THRESHOLD_VALUE_BIT_SIZE 0xCUL 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ci/* IMR */ 6162306a36Sopenharmony_ci#define CC_HOST_IMR_REG_OFFSET 0x0A04UL 6262306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_0_MASK_BIT_SHIFT 0x1UL 6362306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_0_MASK_BIT_SIZE 0x1UL 6462306a36Sopenharmony_ci#define CC_HOST_IMR_DSCRPTR_COMPLETION_MASK_BIT_SHIFT 0x2UL 6562306a36Sopenharmony_ci#define CC_HOST_IMR_DSCRPTR_COMPLETION_MASK_BIT_SIZE 0x1UL 6662306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_1_MASK_BIT_SHIFT 0x3UL 6762306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_1_MASK_BIT_SIZE 0x1UL 6862306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_2_MASK_BIT_SHIFT 0x4UL 6962306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_2_MASK_BIT_SIZE 0x1UL 7062306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_3_MASK_BIT_SHIFT 0x5UL 7162306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_3_MASK_BIT_SIZE 0x1UL 7262306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_4_MASK_BIT_SHIFT 0x6UL 7362306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_4_MASK_BIT_SIZE 0x1UL 7462306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_5_MASK_BIT_SHIFT 0x7UL 7562306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_5_MASK_BIT_SIZE 0x1UL 7662306a36Sopenharmony_ci#define CC_HOST_IMR_AXI_ERR_MASK_BIT_SHIFT 0x8UL 7762306a36Sopenharmony_ci#define CC_HOST_IMR_AXI_ERR_MASK_BIT_SIZE 0x1UL 7862306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_6_MASK_BIT_SHIFT 0x9UL 7962306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_6_MASK_BIT_SIZE 0x1UL 8062306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_7_MASK_BIT_SHIFT 0xAUL 8162306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_AES_7_MASK_BIT_SIZE 0x1UL 8262306a36Sopenharmony_ci#define CC_HOST_IMR_GPR0_BIT_SHIFT 0xBUL 8362306a36Sopenharmony_ci#define CC_HOST_IMR_GPR0_BIT_SIZE 0x1UL 8462306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_0_MASK_BIT_SHIFT 0xCUL 8562306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_0_MASK_BIT_SIZE 0x1UL 8662306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_1_MASK_BIT_SHIFT 0xDUL 8762306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_1_MASK_BIT_SIZE 0x1UL 8862306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_2_MASK_BIT_SHIFT 0xEUL 8962306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_2_MASK_BIT_SIZE 0x1UL 9062306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_3_MASK_BIT_SHIFT 0xFUL 9162306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_3_MASK_BIT_SIZE 0x1UL 9262306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_4_MASK_BIT_SHIFT 0x10UL 9362306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_4_MASK_BIT_SIZE 0x1UL 9462306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_5_MASK_BIT_SHIFT 0x11UL 9562306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_5_MASK_BIT_SIZE 0x1UL 9662306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_6_MASK_BIT_SHIFT 0x12UL 9762306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_6_MASK_BIT_SIZE 0x1UL 9862306a36Sopenharmony_ci#define CC_HOST_IMR_DSCRPTR_WATERMARK_MASK0_BIT_SHIFT 0x13UL 9962306a36Sopenharmony_ci#define CC_HOST_IMR_DSCRPTR_WATERMARK_MASK0_BIT_SIZE 0x1UL 10062306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_7_MASK_BIT_SHIFT 0x14UL 10162306a36Sopenharmony_ci#define CC_HOST_IMR_REE_OP_ABORTED_SM_7_MASK_BIT_SIZE 0x1UL 10262306a36Sopenharmony_ci#define CC_HOST_IMR_AXIM_COMP_INT_MASK_BIT_SHIFT 0x17UL 10362306a36Sopenharmony_ci#define CC_HOST_IMR_AXIM_COMP_INT_MASK_BIT_SIZE 0x1UL 10462306a36Sopenharmony_ci 10562306a36Sopenharmony_ci/* ICR */ 10662306a36Sopenharmony_ci#define CC_HOST_ICR_REG_OFFSET 0xA08UL 10762306a36Sopenharmony_ci#define CC_HOST_ICR_DSCRPTR_COMPLETION_BIT_SHIFT 0x2UL 10862306a36Sopenharmony_ci#define CC_HOST_ICR_DSCRPTR_COMPLETION_BIT_SIZE 0x1UL 10962306a36Sopenharmony_ci#define CC_HOST_ICR_AXI_ERR_CLEAR_BIT_SHIFT 0x8UL 11062306a36Sopenharmony_ci#define CC_HOST_ICR_AXI_ERR_CLEAR_BIT_SIZE 0x1UL 11162306a36Sopenharmony_ci#define CC_HOST_ICR_GPR_INT_CLEAR_BIT_SHIFT 0xBUL 11262306a36Sopenharmony_ci#define CC_HOST_ICR_GPR_INT_CLEAR_BIT_SIZE 0x1UL 11362306a36Sopenharmony_ci#define CC_HOST_ICR_DSCRPTR_WATERMARK_QUEUE0_CLEAR_BIT_SHIFT 0x13UL 11462306a36Sopenharmony_ci#define CC_HOST_ICR_DSCRPTR_WATERMARK_QUEUE0_CLEAR_BIT_SIZE 0x1UL 11562306a36Sopenharmony_ci#define CC_HOST_ICR_AXIM_COMP_INT_CLEAR_BIT_SHIFT 0x17UL 11662306a36Sopenharmony_ci#define CC_HOST_ICR_AXIM_COMP_INT_CLEAR_BIT_SIZE 0x1UL 11762306a36Sopenharmony_ci#define CC_NVM_IS_IDLE_REG_OFFSET 0x0A10UL 11862306a36Sopenharmony_ci#define CC_NVM_IS_IDLE_VALUE_BIT_SHIFT 0x0UL 11962306a36Sopenharmony_ci#define CC_NVM_IS_IDLE_VALUE_BIT_SIZE 0x1UL 12062306a36Sopenharmony_ci#define CC_SECURITY_DISABLED_REG_OFFSET 0x0A1CUL 12162306a36Sopenharmony_ci#define CC_SECURITY_DISABLED_VALUE_BIT_SHIFT 0x0UL 12262306a36Sopenharmony_ci#define CC_SECURITY_DISABLED_VALUE_BIT_SIZE 0x1UL 12362306a36Sopenharmony_ci#define CC_HOST_SIGNATURE_712_REG_OFFSET 0xA24UL 12462306a36Sopenharmony_ci#define CC_HOST_SIGNATURE_630_REG_OFFSET 0xAC8UL 12562306a36Sopenharmony_ci#define CC_HOST_SIGNATURE_VALUE_BIT_SHIFT 0x0UL 12662306a36Sopenharmony_ci#define CC_HOST_SIGNATURE_VALUE_BIT_SIZE 0x20UL 12762306a36Sopenharmony_ci#define CC_HOST_BOOT_REG_OFFSET 0xA28UL 12862306a36Sopenharmony_ci#define CC_HOST_BOOT_SYNTHESIS_CONFIG_BIT_SHIFT 0x0UL 12962306a36Sopenharmony_ci#define CC_HOST_BOOT_SYNTHESIS_CONFIG_BIT_SIZE 0x1UL 13062306a36Sopenharmony_ci#define CC_HOST_BOOT_LARGE_RKEK_LOCAL_BIT_SHIFT 0x1UL 13162306a36Sopenharmony_ci#define CC_HOST_BOOT_LARGE_RKEK_LOCAL_BIT_SIZE 0x1UL 13262306a36Sopenharmony_ci#define CC_HOST_BOOT_HASH_IN_FUSES_LOCAL_BIT_SHIFT 0x2UL 13362306a36Sopenharmony_ci#define CC_HOST_BOOT_HASH_IN_FUSES_LOCAL_BIT_SIZE 0x1UL 13462306a36Sopenharmony_ci#define CC_HOST_BOOT_EXT_MEM_SECURED_LOCAL_BIT_SHIFT 0x3UL 13562306a36Sopenharmony_ci#define CC_HOST_BOOT_EXT_MEM_SECURED_LOCAL_BIT_SIZE 0x1UL 13662306a36Sopenharmony_ci#define CC_HOST_BOOT_RKEK_ECC_EXISTS_LOCAL_N_BIT_SHIFT 0x5UL 13762306a36Sopenharmony_ci#define CC_HOST_BOOT_RKEK_ECC_EXISTS_LOCAL_N_BIT_SIZE 0x1UL 13862306a36Sopenharmony_ci#define CC_HOST_BOOT_SRAM_SIZE_LOCAL_BIT_SHIFT 0x6UL 13962306a36Sopenharmony_ci#define CC_HOST_BOOT_SRAM_SIZE_LOCAL_BIT_SIZE 0x3UL 14062306a36Sopenharmony_ci#define CC_HOST_BOOT_DSCRPTR_EXISTS_LOCAL_BIT_SHIFT 0x9UL 14162306a36Sopenharmony_ci#define CC_HOST_BOOT_DSCRPTR_EXISTS_LOCAL_BIT_SIZE 0x1UL 14262306a36Sopenharmony_ci#define CC_HOST_BOOT_PAU_EXISTS_LOCAL_BIT_SHIFT 0xAUL 14362306a36Sopenharmony_ci#define CC_HOST_BOOT_PAU_EXISTS_LOCAL_BIT_SIZE 0x1UL 14462306a36Sopenharmony_ci#define CC_HOST_BOOT_RNG_EXISTS_LOCAL_BIT_SHIFT 0xBUL 14562306a36Sopenharmony_ci#define CC_HOST_BOOT_RNG_EXISTS_LOCAL_BIT_SIZE 0x1UL 14662306a36Sopenharmony_ci#define CC_HOST_BOOT_PKA_EXISTS_LOCAL_BIT_SHIFT 0xCUL 14762306a36Sopenharmony_ci#define CC_HOST_BOOT_PKA_EXISTS_LOCAL_BIT_SIZE 0x1UL 14862306a36Sopenharmony_ci#define CC_HOST_BOOT_RC4_EXISTS_LOCAL_BIT_SHIFT 0xDUL 14962306a36Sopenharmony_ci#define CC_HOST_BOOT_RC4_EXISTS_LOCAL_BIT_SIZE 0x1UL 15062306a36Sopenharmony_ci#define CC_HOST_BOOT_SHA_512_PRSNT_LOCAL_BIT_SHIFT 0xEUL 15162306a36Sopenharmony_ci#define CC_HOST_BOOT_SHA_512_PRSNT_LOCAL_BIT_SIZE 0x1UL 15262306a36Sopenharmony_ci#define CC_HOST_BOOT_SHA_256_PRSNT_LOCAL_BIT_SHIFT 0xFUL 15362306a36Sopenharmony_ci#define CC_HOST_BOOT_SHA_256_PRSNT_LOCAL_BIT_SIZE 0x1UL 15462306a36Sopenharmony_ci#define CC_HOST_BOOT_MD5_PRSNT_LOCAL_BIT_SHIFT 0x10UL 15562306a36Sopenharmony_ci#define CC_HOST_BOOT_MD5_PRSNT_LOCAL_BIT_SIZE 0x1UL 15662306a36Sopenharmony_ci#define CC_HOST_BOOT_HASH_EXISTS_LOCAL_BIT_SHIFT 0x11UL 15762306a36Sopenharmony_ci#define CC_HOST_BOOT_HASH_EXISTS_LOCAL_BIT_SIZE 0x1UL 15862306a36Sopenharmony_ci#define CC_HOST_BOOT_C2_EXISTS_LOCAL_BIT_SHIFT 0x12UL 15962306a36Sopenharmony_ci#define CC_HOST_BOOT_C2_EXISTS_LOCAL_BIT_SIZE 0x1UL 16062306a36Sopenharmony_ci#define CC_HOST_BOOT_DES_EXISTS_LOCAL_BIT_SHIFT 0x13UL 16162306a36Sopenharmony_ci#define CC_HOST_BOOT_DES_EXISTS_LOCAL_BIT_SIZE 0x1UL 16262306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_XCBC_MAC_EXISTS_LOCAL_BIT_SHIFT 0x14UL 16362306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_XCBC_MAC_EXISTS_LOCAL_BIT_SIZE 0x1UL 16462306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_CMAC_EXISTS_LOCAL_BIT_SHIFT 0x15UL 16562306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_CMAC_EXISTS_LOCAL_BIT_SIZE 0x1UL 16662306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_CCM_EXISTS_LOCAL_BIT_SHIFT 0x16UL 16762306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_CCM_EXISTS_LOCAL_BIT_SIZE 0x1UL 16862306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_XEX_HW_T_CALC_LOCAL_BIT_SHIFT 0x17UL 16962306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_XEX_HW_T_CALC_LOCAL_BIT_SIZE 0x1UL 17062306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_XEX_EXISTS_LOCAL_BIT_SHIFT 0x18UL 17162306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_XEX_EXISTS_LOCAL_BIT_SIZE 0x1UL 17262306a36Sopenharmony_ci#define CC_HOST_BOOT_CTR_EXISTS_LOCAL_BIT_SHIFT 0x19UL 17362306a36Sopenharmony_ci#define CC_HOST_BOOT_CTR_EXISTS_LOCAL_BIT_SIZE 0x1UL 17462306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_DIN_BYTE_RESOLUTION_LOCAL_BIT_SHIFT 0x1AUL 17562306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_DIN_BYTE_RESOLUTION_LOCAL_BIT_SIZE 0x1UL 17662306a36Sopenharmony_ci#define CC_HOST_BOOT_TUNNELING_ENB_LOCAL_BIT_SHIFT 0x1BUL 17762306a36Sopenharmony_ci#define CC_HOST_BOOT_TUNNELING_ENB_LOCAL_BIT_SIZE 0x1UL 17862306a36Sopenharmony_ci#define CC_HOST_BOOT_SUPPORT_256_192_KEY_LOCAL_BIT_SHIFT 0x1CUL 17962306a36Sopenharmony_ci#define CC_HOST_BOOT_SUPPORT_256_192_KEY_LOCAL_BIT_SIZE 0x1UL 18062306a36Sopenharmony_ci#define CC_HOST_BOOT_ONLY_ENCRYPT_LOCAL_BIT_SHIFT 0x1DUL 18162306a36Sopenharmony_ci#define CC_HOST_BOOT_ONLY_ENCRYPT_LOCAL_BIT_SIZE 0x1UL 18262306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_EXISTS_LOCAL_BIT_SHIFT 0x1EUL 18362306a36Sopenharmony_ci#define CC_HOST_BOOT_AES_EXISTS_LOCAL_BIT_SIZE 0x1UL 18462306a36Sopenharmony_ci#define CC_HOST_VERSION_712_REG_OFFSET 0xA40UL 18562306a36Sopenharmony_ci#define CC_HOST_VERSION_630_REG_OFFSET 0xAD8UL 18662306a36Sopenharmony_ci#define CC_HOST_VERSION_VALUE_BIT_SHIFT 0x0UL 18762306a36Sopenharmony_ci#define CC_HOST_VERSION_VALUE_BIT_SIZE 0x20UL 18862306a36Sopenharmony_ci#define CC_HOST_KFDE0_VALID_REG_OFFSET 0xA60UL 18962306a36Sopenharmony_ci#define CC_HOST_KFDE0_VALID_VALUE_BIT_SHIFT 0x0UL 19062306a36Sopenharmony_ci#define CC_HOST_KFDE0_VALID_VALUE_BIT_SIZE 0x1UL 19162306a36Sopenharmony_ci#define CC_HOST_KFDE1_VALID_REG_OFFSET 0xA64UL 19262306a36Sopenharmony_ci#define CC_HOST_KFDE1_VALID_VALUE_BIT_SHIFT 0x0UL 19362306a36Sopenharmony_ci#define CC_HOST_KFDE1_VALID_VALUE_BIT_SIZE 0x1UL 19462306a36Sopenharmony_ci#define CC_HOST_KFDE2_VALID_REG_OFFSET 0xA68UL 19562306a36Sopenharmony_ci#define CC_HOST_KFDE2_VALID_VALUE_BIT_SHIFT 0x0UL 19662306a36Sopenharmony_ci#define CC_HOST_KFDE2_VALID_VALUE_BIT_SIZE 0x1UL 19762306a36Sopenharmony_ci#define CC_HOST_KFDE3_VALID_REG_OFFSET 0xA6CUL 19862306a36Sopenharmony_ci#define CC_HOST_KFDE3_VALID_VALUE_BIT_SHIFT 0x0UL 19962306a36Sopenharmony_ci#define CC_HOST_KFDE3_VALID_VALUE_BIT_SIZE 0x1UL 20062306a36Sopenharmony_ci#define CC_HOST_GPR0_REG_OFFSET 0xA70UL 20162306a36Sopenharmony_ci#define CC_HOST_GPR0_VALUE_BIT_SHIFT 0x0UL 20262306a36Sopenharmony_ci#define CC_HOST_GPR0_VALUE_BIT_SIZE 0x20UL 20362306a36Sopenharmony_ci#define CC_GPR_HOST_REG_OFFSET 0xA74UL 20462306a36Sopenharmony_ci#define CC_GPR_HOST_VALUE_BIT_SHIFT 0x0UL 20562306a36Sopenharmony_ci#define CC_GPR_HOST_VALUE_BIT_SIZE 0x20UL 20662306a36Sopenharmony_ci#define CC_HOST_POWER_DOWN_EN_REG_OFFSET 0xA78UL 20762306a36Sopenharmony_ci#define CC_HOST_POWER_DOWN_EN_VALUE_BIT_SHIFT 0x0UL 20862306a36Sopenharmony_ci#define CC_HOST_POWER_DOWN_EN_VALUE_BIT_SIZE 0x1UL 20962306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REG_OFFSET 0x0A7CUL 21062306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_AES_ENGINE_BIT_SHIFT 0x0UL 21162306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_AES_ENGINE_BIT_SIZE 0x1UL 21262306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_AES_MAC_ENGINE_BIT_SHIFT 0x1UL 21362306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_AES_MAC_ENGINE_BIT_SIZE 0x1UL 21462306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_GHASH_ENGINE_BIT_SHIFT 0x2UL 21562306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_GHASH_ENGINE_BIT_SIZE 0x1UL 21662306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_DES_ENGINE_BIT_SHIFT 0x3UL 21762306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_DES_ENGINE_BIT_SIZE 0x1UL 21862306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_HASH_ENGINE_BIT_SHIFT 0x4UL 21962306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_HASH_ENGINE_BIT_SIZE 0x1UL 22062306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_SM3_ENGINE_BIT_SHIFT 0x5UL 22162306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_SM3_ENGINE_BIT_SIZE 0x1UL 22262306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_SM4_ENGINE_BIT_SHIFT 0x6UL 22362306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_REMOVE_SM4_ENGINE_BIT_SIZE 0x1UL 22462306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_OTP_DISCONNECTED_BIT_SHIFT 0x7UL 22562306a36Sopenharmony_ci#define CC_HOST_REMOVE_INPUT_PINS_OTP_DISCONNECTED_BIT_SIZE 0x1UL 22662306a36Sopenharmony_ci// -------------------------------------- 22762306a36Sopenharmony_ci// BLOCK: ID_REGISTERS 22862306a36Sopenharmony_ci// -------------------------------------- 22962306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_4_REG_OFFSET 0x0FD0UL 23062306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_4_VALUE_BIT_SHIFT 0x0UL 23162306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_4_VALUE_BIT_SIZE 0x4UL 23262306a36Sopenharmony_ci#define CC_PIDRESERVED0_REG_OFFSET 0x0FD4UL 23362306a36Sopenharmony_ci#define CC_PIDRESERVED1_REG_OFFSET 0x0FD8UL 23462306a36Sopenharmony_ci#define CC_PIDRESERVED2_REG_OFFSET 0x0FDCUL 23562306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_0_REG_OFFSET 0x0FE0UL 23662306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_0_VALUE_BIT_SHIFT 0x0UL 23762306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_0_VALUE_BIT_SIZE 0x8UL 23862306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_1_REG_OFFSET 0x0FE4UL 23962306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_1_PART_1_BIT_SHIFT 0x0UL 24062306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_1_PART_1_BIT_SIZE 0x4UL 24162306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_1_DES_0_JEP106_BIT_SHIFT 0x4UL 24262306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_1_DES_0_JEP106_BIT_SIZE 0x4UL 24362306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_2_REG_OFFSET 0x0FE8UL 24462306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_2_DES_1_JEP106_BIT_SHIFT 0x0UL 24562306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_2_DES_1_JEP106_BIT_SIZE 0x3UL 24662306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_2_JEDEC_BIT_SHIFT 0x3UL 24762306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_2_JEDEC_BIT_SIZE 0x1UL 24862306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_2_REVISION_BIT_SHIFT 0x4UL 24962306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_2_REVISION_BIT_SIZE 0x4UL 25062306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_3_REG_OFFSET 0x0FECUL 25162306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_3_CMOD_BIT_SHIFT 0x0UL 25262306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_3_CMOD_BIT_SIZE 0x4UL 25362306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_3_REVAND_BIT_SHIFT 0x4UL 25462306a36Sopenharmony_ci#define CC_PERIPHERAL_ID_3_REVAND_BIT_SIZE 0x4UL 25562306a36Sopenharmony_ci#define CC_COMPONENT_ID_0_REG_OFFSET 0x0FF0UL 25662306a36Sopenharmony_ci#define CC_COMPONENT_ID_0_VALUE_BIT_SHIFT 0x0UL 25762306a36Sopenharmony_ci#define CC_COMPONENT_ID_0_VALUE_BIT_SIZE 0x8UL 25862306a36Sopenharmony_ci#define CC_COMPONENT_ID_1_REG_OFFSET 0x0FF4UL 25962306a36Sopenharmony_ci#define CC_COMPONENT_ID_1_PRMBL_1_BIT_SHIFT 0x0UL 26062306a36Sopenharmony_ci#define CC_COMPONENT_ID_1_PRMBL_1_BIT_SIZE 0x4UL 26162306a36Sopenharmony_ci#define CC_COMPONENT_ID_1_CLASS_BIT_SHIFT 0x4UL 26262306a36Sopenharmony_ci#define CC_COMPONENT_ID_1_CLASS_BIT_SIZE 0x4UL 26362306a36Sopenharmony_ci#define CC_COMPONENT_ID_2_REG_OFFSET 0x0FF8UL 26462306a36Sopenharmony_ci#define CC_COMPONENT_ID_2_VALUE_BIT_SHIFT 0x0UL 26562306a36Sopenharmony_ci#define CC_COMPONENT_ID_2_VALUE_BIT_SIZE 0x8UL 26662306a36Sopenharmony_ci#define CC_COMPONENT_ID_3_REG_OFFSET 0x0FFCUL 26762306a36Sopenharmony_ci#define CC_COMPONENT_ID_3_VALUE_BIT_SHIFT 0x0UL 26862306a36Sopenharmony_ci#define CC_COMPONENT_ID_3_VALUE_BIT_SIZE 0x8UL 26962306a36Sopenharmony_ci// -------------------------------------- 27062306a36Sopenharmony_ci// BLOCK: HOST_SRAM 27162306a36Sopenharmony_ci// -------------------------------------- 27262306a36Sopenharmony_ci#define CC_SRAM_DATA_REG_OFFSET 0xF00UL 27362306a36Sopenharmony_ci#define CC_SRAM_DATA_VALUE_BIT_SHIFT 0x0UL 27462306a36Sopenharmony_ci#define CC_SRAM_DATA_VALUE_BIT_SIZE 0x20UL 27562306a36Sopenharmony_ci#define CC_SRAM_ADDR_REG_OFFSET 0xF04UL 27662306a36Sopenharmony_ci#define CC_SRAM_ADDR_VALUE_BIT_SHIFT 0x0UL 27762306a36Sopenharmony_ci#define CC_SRAM_ADDR_VALUE_BIT_SIZE 0xFUL 27862306a36Sopenharmony_ci#define CC_SRAM_DATA_READY_REG_OFFSET 0xF08UL 27962306a36Sopenharmony_ci#define CC_SRAM_DATA_READY_VALUE_BIT_SHIFT 0x0UL 28062306a36Sopenharmony_ci#define CC_SRAM_DATA_READY_VALUE_BIT_SIZE 0x1UL 28162306a36Sopenharmony_ci 28262306a36Sopenharmony_ci#endif //__CC_HOST_H__ 283