bdk: more atf prep
This commit is contained in:
@@ -464,6 +464,98 @@
|
||||
#define MC_UNTRANSLATED_REGION_CHECK 0x948
|
||||
#define MC_DA_CONFIG0 0x9dc
|
||||
|
||||
/* MC_SECURITY_CARVEOUTX_CLIENT_FORCE_INTERNAL_ACCESS0 */
|
||||
#define SEC_CARVEOUT_CA0_R_PTCR BIT(0)
|
||||
#define SEC_CARVEOUT_CA0_R_DISPLAY0A BIT(1)
|
||||
#define SEC_CARVEOUT_CA0_R_DISPLAY0AB BIT(2)
|
||||
#define SEC_CARVEOUT_CA0_R_DISPLAY0B BIT(3)
|
||||
#define SEC_CARVEOUT_CA0_R_DISPLAY0BB BIT(4)
|
||||
#define SEC_CARVEOUT_CA0_R_DISPLAY0C BIT(5)
|
||||
#define SEC_CARVEOUT_CA0_R_DISPLAY0CB BIT(6)
|
||||
#define SEC_CARVEOUT_CA0_R_AFI BIT(14)
|
||||
#define SEC_CARVEOUT_CA0_R_BPMP_C BIT(15)
|
||||
#define SEC_CARVEOUT_CA0_R_DISPLAYHC BIT(16)
|
||||
#define SEC_CARVEOUT_CA0_R_DISPLAYHCB BIT(17)
|
||||
#define SEC_CARVEOUT_CA0_R_HDA BIT(21)
|
||||
#define SEC_CARVEOUT_CA0_R_HOST1XDMA BIT(22)
|
||||
#define SEC_CARVEOUT_CA0_R_HOST1X BIT(23)
|
||||
#define SEC_CARVEOUT_CA0_R_NVENC BIT(28)
|
||||
#define SEC_CARVEOUT_CA0_R_PPCSAHBDMA BIT(29)
|
||||
#define SEC_CARVEOUT_CA0_R_PPCSAHBSLV BIT(30)
|
||||
#define SEC_CARVEOUT_CA0_R_SATAR BIT(31)
|
||||
|
||||
/* MC_SECURITY_CARVEOUTX_CLIENT_FORCE_INTERNAL_ACCESS1 */
|
||||
#define SEC_CARVEOUT_CA1_R_VDEBSEV BIT(2)
|
||||
#define SEC_CARVEOUT_CA1_R_VDEMBE BIT(3)
|
||||
#define SEC_CARVEOUT_CA1_R_VDEMCE BIT(4)
|
||||
#define SEC_CARVEOUT_CA1_R_VDETPE BIT(5)
|
||||
#define SEC_CARVEOUT_CA1_R_CCPLEXLP_C BIT(6)
|
||||
#define SEC_CARVEOUT_CA1_R_CCPLEX_C BIT(7)
|
||||
#define SEC_CARVEOUT_CA1_W_NVENC BIT(11)
|
||||
#define SEC_CARVEOUT_CA1_W_AFI BIT(17)
|
||||
#define SEC_CARVEOUT_CA1_W_BPMP_C BIT(18)
|
||||
#define SEC_CARVEOUT_CA1_W_HDA BIT(21)
|
||||
#define SEC_CARVEOUT_CA1_W_HOST1X BIT(22)
|
||||
#define SEC_CARVEOUT_CA1_W_CCPLEXLP_C BIT(24)
|
||||
#define SEC_CARVEOUT_CA1_W_CCPLEX_C BIT(25)
|
||||
#define SEC_CARVEOUT_CA1_W_PPCSAHBDMA BIT(27)
|
||||
#define SEC_CARVEOUT_CA1_W_PPCSAHBSLV BIT(28)
|
||||
#define SEC_CARVEOUT_CA1_W_SATA BIT(29)
|
||||
#define SEC_CARVEOUT_CA1_W_VDEBSEV BIT(30)
|
||||
#define SEC_CARVEOUT_CA1_W_VDEDBG BIT(31)
|
||||
|
||||
/* MC_SECURITY_CARVEOUTX_CLIENT_FORCE_INTERNAL_ACCESS2 */
|
||||
#define SEC_CARVEOUT_CA2_W_VDEMBE BIT(0)
|
||||
#define SEC_CARVEOUT_CA2_W_VDETPM BIT(1)
|
||||
#define SEC_CARVEOUT_CA2_R_ISPRA BIT(4)
|
||||
#define SEC_CARVEOUT_CA2_W_ISPWA BIT(6)
|
||||
#define SEC_CARVEOUT_CA2_W_ISPWB BIT(7)
|
||||
#define SEC_CARVEOUT_CA2_R_XUSB_HOST BIT(10)
|
||||
#define SEC_CARVEOUT_CA2_W_XUSB_HOST BIT(11)
|
||||
#define SEC_CARVEOUT_CA2_R_XUSB_DEV BIT(12)
|
||||
#define SEC_CARVEOUT_CA2_W_XUSB_DEV BIT(13)
|
||||
#define SEC_CARVEOUT_CA2_R_SE2 BIT(14)
|
||||
#define SEC_CARVEOUT_CA2_W_SE2 BIT(16)
|
||||
#define SEC_CARVEOUT_CA2_R_TSEC BIT(20)
|
||||
#define SEC_CARVEOUT_CA2_W_TSEC BIT(21)
|
||||
#define SEC_CARVEOUT_CA2_R_ADSP_SC BIT(22)
|
||||
#define SEC_CARVEOUT_CA2_W_ADSP_SC BIT(23)
|
||||
#define SEC_CARVEOUT_CA2_R_GPU BIT(24)
|
||||
#define SEC_CARVEOUT_CA2_W_GPU BIT(25)
|
||||
#define SEC_CARVEOUT_CA2_R_DISPLAYT BIT(26)
|
||||
|
||||
/* MC_SECURITY_CARVEOUTX_CLIENT_FORCE_INTERNAL_ACCESS3 */
|
||||
#define SEC_CARVEOUT_CA3_R_SDMMCA BIT(0)
|
||||
#define SEC_CARVEOUT_CA3_R_SDMMCAA BIT(1)
|
||||
#define SEC_CARVEOUT_CA3_R_SDMMC BIT(2)
|
||||
#define SEC_CARVEOUT_CA3_R_SDMMCAB BIT(3)
|
||||
#define SEC_CARVEOUT_CA3_W_SDMMCA BIT(4)
|
||||
#define SEC_CARVEOUT_CA3_W_SDMMCAA BIT(5)
|
||||
#define SEC_CARVEOUT_CA3_W_SDMMC BIT(6)
|
||||
#define SEC_CARVEOUT_CA3_W_SDMMCAB BIT(7)
|
||||
#define SEC_CARVEOUT_CA3_R_VIC BIT(12)
|
||||
#define SEC_CARVEOUT_CA3_W_VIC BIT(13)
|
||||
#define SEC_CARVEOUT_CA3_W_VIW BIT(18)
|
||||
#define SEC_CARVEOUT_CA3_R_DISPLAYD BIT(19)
|
||||
#define SEC_CARVEOUT_CA3_R_NVDEC BIT(24)
|
||||
#define SEC_CARVEOUT_CA3_W_NVDEC BIT(25)
|
||||
#define SEC_CARVEOUT_CA3_R_APE BIT(26)
|
||||
#define SEC_CARVEOUT_CA3_W_APE BIT(27)
|
||||
#define SEC_CARVEOUT_CA3_R_NVJPG BIT(30)
|
||||
#define SEC_CARVEOUT_CA3_W_NVJPG BIT(31)
|
||||
|
||||
/* MC_SECURITY_CARVEOUTX_CLIENT_FORCE_INTERNAL_ACCESS4 */
|
||||
#define SEC_CARVEOUT_CA4_R_SE BIT(0)
|
||||
#define SEC_CARVEOUT_CA4_W_SE BIT(1)
|
||||
#define SEC_CARVEOUT_CA4_R_AXIAP BIT(2)
|
||||
#define SEC_CARVEOUT_CA4_W_AXIAP BIT(3)
|
||||
#define SEC_CARVEOUT_CA4_R_ETR BIT(4)
|
||||
#define SEC_CARVEOUT_CA4_W_ETR BIT(5)
|
||||
#define SEC_CARVEOUT_CA4_R_TSECB BIT(6)
|
||||
#define SEC_CARVEOUT_CA4_W_TSECB BIT(7)
|
||||
#define SEC_CARVEOUT_CA4_R_GPU2 BIT(8)
|
||||
#define SEC_CARVEOUT_CA4_W_GPU2 BIT(9)
|
||||
|
||||
// MC_VIDEO_PROTECT_REG_CTRL
|
||||
#define VPR_LOCK_MODE_SHIFT 0
|
||||
#define VPR_CTRL_UNLOCKED (0 << VPR_LOCK_MODE_SHIFT)
|
||||
@@ -475,8 +567,8 @@
|
||||
// MC_SECURITY_CARVEOUTX_CFG0
|
||||
// Mode of LOCK_MODE.
|
||||
#define PROTECT_MODE_SHIFT 0
|
||||
#define SEC_CARVEOUT_CFG_SECURE (0 << PROTECT_MODE_SHIFT)
|
||||
#define SEC_CARVEOUT_CFG_TZ_SECURE (1 << PROTECT_MODE_SHIFT)
|
||||
#define SEC_CARVEOUT_CFG_ALL_SECURE (0 << PROTECT_MODE_SHIFT)
|
||||
#define SEC_CARVEOUT_CFG_TZ_SECURE (1 << PROTECT_MODE_SHIFT)
|
||||
// Enables PROTECT_MODE.
|
||||
#define LOCK_MODE_SHIFT 1
|
||||
#define SEC_CARVEOUT_CFG_UNLOCKED (0 << LOCK_MODE_SHIFT)
|
||||
@@ -499,6 +591,7 @@
|
||||
#define SEC_CARVEOUT_CFG_WR_FALCON_HS (8 << WRITE_ACCESS_LEVEL_SHIFT)
|
||||
|
||||
#define SEC_CARVEOUT_CFG_APERTURE_ID_MASK (3 << 11)
|
||||
#define SEC_CARVEOUT_CFG_APERTURE_ID(id) ((id) << 11)
|
||||
|
||||
#define DISABLE_READ_CHECK_ACCESS_LEVEL_SHIFT 14
|
||||
#define SEC_CARVEOUT_CFG_DIS_RD_CHECK_L0 (1 << DISABLE_READ_CHECK_ACCESS_LEVEL_SHIFT)
|
||||
|
||||
Reference in New Issue
Block a user