1864a00b8SJacek Lawrynowicz /* SPDX-License-Identifier: GPL-2.0-only */ 2864a00b8SJacek Lawrynowicz /* 3864a00b8SJacek Lawrynowicz * Copyright (C) 2020-2023 Intel Corporation 4864a00b8SJacek Lawrynowicz */ 5864a00b8SJacek Lawrynowicz 6864a00b8SJacek Lawrynowicz #ifndef __IVPU_HW_MTL_REG_H__ 7864a00b8SJacek Lawrynowicz #define __IVPU_HW_MTL_REG_H__ 8864a00b8SJacek Lawrynowicz 9864a00b8SJacek Lawrynowicz #include <linux/bits.h> 10864a00b8SJacek Lawrynowicz 11*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_INTERRUPT_TYPE 0x00000000u 12864a00b8SJacek Lawrynowicz 13*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_INTERRUPT_STAT 0x00000004u 14*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_INTERRUPT_STAT_FREQ_CHANGE_MASK BIT_MASK(0) 15*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_INTERRUPT_STAT_ATS_ERR_MASK BIT_MASK(1) 16*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_INTERRUPT_STAT_UFI_ERR_MASK BIT_MASK(2) 17864a00b8SJacek Lawrynowicz 18*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_PAYLOAD0 0x00000008u 19*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_PAYLOAD0_MIN_RATIO_MASK GENMASK(15, 0) 20*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_PAYLOAD0_MAX_RATIO_MASK GENMASK(31, 16) 21864a00b8SJacek Lawrynowicz 22*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_PAYLOAD1 0x0000000cu 23*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_PAYLOAD1_TARGET_RATIO_MASK GENMASK(15, 0) 24*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_PAYLOAD1_EPP_MASK GENMASK(31, 16) 25864a00b8SJacek Lawrynowicz 26*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_PAYLOAD2 0x00000010u 27*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_PAYLOAD2_CONFIG_MASK GENMASK(15, 0) 28864a00b8SJacek Lawrynowicz 29*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_CMD 0x00000014u 30*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_REQ_CMD_SEND_MASK BIT_MASK(0) 31864a00b8SJacek Lawrynowicz 32*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_DOWNLOAD 0x00000018u 33*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_WP_DOWNLOAD_TARGET_RATIO_MASK GENMASK(15, 0) 34864a00b8SJacek Lawrynowicz 35*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_CURRENT_PLL 0x0000001cu 36*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_CURRENT_PLL_RATIO_MASK GENMASK(15, 0) 37864a00b8SJacek Lawrynowicz 38*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_PLL_ENABLE 0x00000020u 39864a00b8SJacek Lawrynowicz 40*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_FMIN_FUSE 0x00000024u 41*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_FMIN_FUSE_MIN_RATIO_MASK GENMASK(7, 0) 42*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_FMIN_FUSE_PN_RATIO_MASK GENMASK(15, 8) 43864a00b8SJacek Lawrynowicz 44*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_FMAX_FUSE 0x00000028u 45*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_FMAX_FUSE_MAX_RATIO_MASK GENMASK(7, 0) 46864a00b8SJacek Lawrynowicz 47*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_TILE_FUSE 0x0000002cu 48*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_TILE_FUSE_VALID_MASK BIT_MASK(0) 49*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_TILE_FUSE_SKU_MASK GENMASK(3, 2) 50864a00b8SJacek Lawrynowicz 51*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_LOCAL_INT_MASK 0x00000030u 52*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_GLOBAL_INT_MASK 0x00000034u 53864a00b8SJacek Lawrynowicz 54*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_PLL_STATUS 0x00000040u 55*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_PLL_STATUS_LOCK_MASK BIT_MASK(1) 56864a00b8SJacek Lawrynowicz 57*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_STATUS 0x00000044u 58*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_STATUS_READY_MASK BIT_MASK(0) 59*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_STATUS_IDLE_MASK BIT_MASK(1) 60864a00b8SJacek Lawrynowicz 61*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_D0I3_CONTROL 0x00000060u 62*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_D0I3_CONTROL_INPROGRESS_MASK BIT_MASK(0) 63*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_D0I3_CONTROL_I3_MASK BIT_MASK(2) 64864a00b8SJacek Lawrynowicz 65*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_IP_RESET 0x00000050u 66*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_IP_RESET_TRIGGER_MASK BIT_MASK(0) 67864a00b8SJacek Lawrynowicz 68*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_TELEMETRY_OFFSET 0x00000080u 69*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_TELEMETRY_SIZE 0x00000084u 70*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_VPU_TELEMETRY_ENABLE 0x00000088u 71864a00b8SJacek Lawrynowicz 72*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_ATS_ERR_LOG_0 0x000000a0u 73*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_ATS_ERR_LOG_1 0x000000a4u 74*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_ATS_ERR_CLEAR 0x000000a8u 75864a00b8SJacek Lawrynowicz 76*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_UFI_ERR_LOG 0x000000b0u 77*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_UFI_ERR_LOG_CQ_ID_MASK GENMASK(11, 0) 78*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_UFI_ERR_LOG_AXI_ID_MASK GENMASK(19, 12) 79*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_UFI_ERR_LOG_OPCODE_MASK GENMASK(24, 20) 80864a00b8SJacek Lawrynowicz 81*51d66a7bSJacek Lawrynowicz #define VPU_37XX_BUTTRESS_UFI_ERR_CLEAR 0x000000b4u 82864a00b8SJacek Lawrynowicz 83*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_CLK_SET 0x00000084u 84*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_CLK_SET_TOP_NOC_MASK BIT_MASK(1) 85*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_CLK_SET_DSS_MAS_MASK BIT_MASK(10) 86*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_CLK_SET_MSS_MAS_MASK BIT_MASK(11) 87864a00b8SJacek Lawrynowicz 88*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_SET 0x00000094u 89*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_SET_TOP_NOC_MASK BIT_MASK(1) 90*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_SET_DSS_MAS_MASK BIT_MASK(10) 91*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_SET_MSS_MAS_MASK BIT_MASK(11) 92864a00b8SJacek Lawrynowicz 93*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_CLR 0x00000098u 94*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_CLR_AON_MASK BIT_MASK(0) 95*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_CLR_TOP_NOC_MASK BIT_MASK(1) 96*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_CLR_DSS_MAS_MASK BIT_MASK(10) 97*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_CPR_RST_CLR_MSS_MAS_MASK BIT_MASK(11) 98864a00b8SJacek Lawrynowicz 99*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_HW_VERSION 0x00000108u 100*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_HW_VERSION_SOC_REVISION_MASK GENMASK(7, 0) 101*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_HW_VERSION_SOC_NUMBER_MASK GENMASK(15, 8) 102*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_HW_VERSION_VPU_GENERATION_MASK GENMASK(23, 16) 103864a00b8SJacek Lawrynowicz 104*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_GEN_CTRL 0x00000118u 105*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_GEN_CTRL_PS_MASK GENMASK(31, 29) 106864a00b8SJacek Lawrynowicz 107*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_NOC_QREQN 0x00000154u 108*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_NOC_QREQN_TOP_SOCMMIO_MASK BIT_MASK(0) 109864a00b8SJacek Lawrynowicz 110*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_NOC_QACCEPTN 0x00000158u 111*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_NOC_QACCEPTN_TOP_SOCMMIO_MASK BIT_MASK(0) 112864a00b8SJacek Lawrynowicz 113*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_NOC_QDENY 0x0000015cu 114*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_NOC_QDENY_TOP_SOCMMIO_MASK BIT_MASK(0) 115864a00b8SJacek Lawrynowicz 116864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QREQN 0x00000160u 117864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QREQN_CPU_CTRL_MASK BIT_MASK(0) 118864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QREQN_HOSTIF_L2CACHE_MASK BIT_MASK(1) 119864a00b8SJacek Lawrynowicz 120864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QACCEPTN 0x00000164u 121864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QACCEPTN_CPU_CTRL_MASK BIT_MASK(0) 122864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QACCEPTN_HOSTIF_L2CACHE_MASK BIT_MASK(1) 123864a00b8SJacek Lawrynowicz 124864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QDENY 0x00000168u 125864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QDENY_CPU_CTRL_MASK BIT_MASK(0) 126864a00b8SJacek Lawrynowicz #define MTL_VPU_TOP_NOC_QDENY_HOSTIF_L2CACHE_MASK BIT_MASK(1) 127864a00b8SJacek Lawrynowicz 128*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_FW_SOC_IRQ_EN 0x00000170u 129*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_FW_SOC_IRQ_EN_CSS_ROM_CMX_MASK BIT_MASK(0) 130*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_FW_SOC_IRQ_EN_CSS_DBG_MASK BIT_MASK(1) 131*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_FW_SOC_IRQ_EN_CSS_CTRL_MASK BIT_MASK(2) 132*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_FW_SOC_IRQ_EN_DEC400_MASK BIT_MASK(3) 133*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_FW_SOC_IRQ_EN_MSS_NCE_MASK BIT_MASK(4) 134*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_FW_SOC_IRQ_EN_MSS_MBI_MASK BIT_MASK(5) 135*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_FW_SOC_IRQ_EN_MSS_MBI_CMX_MASK BIT_MASK(6) 136864a00b8SJacek Lawrynowicz 137*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0 0x00010210u 138*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_TIMER_0_INT_MASK BIT_MASK(0) 139*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_TIMER_1_INT_MASK BIT_MASK(1) 140*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_TIMER_2_INT_MASK BIT_MASK(2) 141*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_TIMER_3_INT_MASK BIT_MASK(3) 142*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_HOST_IPC_FIFO_INT_MASK BIT_MASK(4) 143*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_MMU_IRQ_0_INT_MASK BIT_MASK(5) 144*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_MMU_IRQ_1_INT_MASK BIT_MASK(6) 145*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_MMU_IRQ_2_INT_MASK BIT_MASK(7) 146*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_NOC_FIREWALL_INT_MASK BIT_MASK(8) 147*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_CPU_INT_REDIRECT_0_INT_MASK BIT_MASK(30) 148*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_0_CPU_INT_REDIRECT_1_INT_MASK BIT_MASK(31) 149864a00b8SJacek Lawrynowicz 150*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_1 0x00010214u 151*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_1_CPU_INT_REDIRECT_2_INT_MASK BIT_MASK(0) 152*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_1_CPU_INT_REDIRECT_3_INT_MASK BIT_MASK(1) 153*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_STATUS_1_CPU_INT_REDIRECT_4_INT_MASK BIT_MASK(2) 154864a00b8SJacek Lawrynowicz 155*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_CLEAR_0 0x00010220u 156*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_CLEAR_1 0x00010224u 157*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_ICB_ENABLE_0 0x00010240u 158864a00b8SJacek Lawrynowicz 159*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_TIM_IPC_FIFO_ATM 0x000200f4u 160864a00b8SJacek Lawrynowicz 161*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_TIM_IPC_FIFO_STAT 0x000200fcu 162*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_TIM_IPC_FIFO_STAT_READ_POINTER_MASK GENMASK(7, 0) 163*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_TIM_IPC_FIFO_STAT_WRITE_POINTER_MASK GENMASK(15, 8) 164*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_TIM_IPC_FIFO_STAT_FILL_LEVEL_MASK GENMASK(23, 16) 165*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_TIM_IPC_FIFO_STAT_RSVD0_MASK GENMASK(31, 24) 166864a00b8SJacek Lawrynowicz 167*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_PWR_ISO_EN0 0x00030020u 168*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_PWR_ISO_EN0_MSS_CPU_MASK BIT_MASK(3) 169864a00b8SJacek Lawrynowicz 170*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_PWR_ISLAND_EN0 0x00030024u 171*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_PWR_ISLAND_EN0_MSS_CPU_MASK BIT_MASK(3) 172864a00b8SJacek Lawrynowicz 173*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_PWR_ISLAND_TRICKLE_EN0 0x00030028u 174*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_PWR_ISLAND_TRICKLE_EN0_MSS_CPU_MASK BIT_MASK(3) 175864a00b8SJacek Lawrynowicz 176*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_PWR_ISLAND_STATUS0 0x0003002cu 177*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_PWR_ISLAND_STATUS0_MSS_CPU_MASK BIT_MASK(3) 178864a00b8SJacek Lawrynowicz 179*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_VPU_IDLE_GEN 0x00030200u 180*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_VPU_IDLE_GEN_EN_MASK BIT_MASK(0) 181864a00b8SJacek Lawrynowicz 182*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_DPU_ACTIVE 0x00030204u 183*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_AON_DPU_ACTIVE_DPU_ACTIVE_MASK BIT_MASK(0) 184864a00b8SJacek Lawrynowicz 185*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_LOADING_ADDRESS_LO 0x00041040u 186*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_LOADING_ADDRESS_LO_DONE_MASK BIT_MASK(0) 187*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_LOADING_ADDRESS_LO_IOSF_RS_ID_MASK GENMASK(2, 1) 188*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_LOADING_ADDRESS_LO_IMAGE_LOCATION_MASK GENMASK(31, 3) 189864a00b8SJacek Lawrynowicz 190*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_WORKPOINT_CONFIG_MIRROR 0x00082020u 191*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_WORKPOINT_CONFIG_MIRROR_FINAL_PLL_FREQ_MASK GENMASK(15, 0) 192*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_SS_WORKPOINT_CONFIG_MIRROR_CONFIG_ID_MASK GENMASK(31, 16) 193864a00b8SJacek Lawrynowicz 194*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_IDR0 0x00200000u 195*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_IDR1 0x00200004u 196*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_IDR3 0x0020000cu 197*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_IDR5 0x00200014u 198*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_CR0 0x00200020u 199*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_CR0ACK 0x00200024u 200*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_CR1 0x00200028u 201*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_CR2 0x0020002cu 202*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_IRQ_CTRL 0x00200050u 203*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_IRQ_CTRLACK 0x00200054u 204864a00b8SJacek Lawrynowicz 205*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERROR 0x00200060u 206*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERROR_CMDQ_MASK BIT_MASK(0) 207*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERROR_EVTQ_ABT_MASK BIT_MASK(2) 208*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERROR_PRIQ_ABT_MASK BIT_MASK(3) 209*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERROR_MSI_CMDQ_ABT_MASK BIT_MASK(4) 210*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERROR_MSI_EVTQ_ABT_MASK BIT_MASK(5) 211*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERROR_MSI_PRIQ_ABT_MASK BIT_MASK(6) 212*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERROR_MSI_ABT_MASK BIT_MASK(7) 213864a00b8SJacek Lawrynowicz 214*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_GERRORN 0x00200064u 215864a00b8SJacek Lawrynowicz 216*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_STRTAB_BASE 0x00200080u 217*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_STRTAB_BASE_CFG 0x00200088u 218*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_CMDQ_BASE 0x00200090u 219*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_CMDQ_PROD 0x00200098u 220*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_CMDQ_CONS 0x0020009cu 221*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_EVTQ_BASE 0x002000a0u 222*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_EVTQ_PROD 0x002000a8u 223*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_EVTQ_CONS 0x002000acu 224*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_EVTQ_PROD_SEC (0x002000a8u + SZ_64K) 225*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_MMU_EVTQ_CONS_SEC (0x002000acu + SZ_64K) 226864a00b8SJacek Lawrynowicz 227*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES 0x00360000u 228*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES_CACHE_OVERRIDE_EN_MASK BIT_MASK(0) 229*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES_AWCACHE_OVERRIDE_MASK BIT_MASK(1) 230*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES_ARCACHE_OVERRIDE_MASK BIT_MASK(2) 231*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES_NOSNOOP_OVERRIDE_EN_MASK BIT_MASK(3) 232*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES_AW_NOSNOOP_OVERRIDE_MASK BIT_MASK(4) 233*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES_AR_NOSNOOP_OVERRIDE_MASK BIT_MASK(5) 234*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES_PTW_AW_CONTEXT_FLAG_MASK GENMASK(10, 6) 235*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TCU_PTW_OVERRIDES_PTW_AR_CONTEXT_FLAG_MASK GENMASK(15, 11) 236864a00b8SJacek Lawrynowicz 237*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV 0x00360004u 238*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU0_AWMMUSSIDV_MASK BIT_MASK(0) 239*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU0_ARMMUSSIDV_MASK BIT_MASK(1) 240*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU1_AWMMUSSIDV_MASK BIT_MASK(2) 241*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU1_ARMMUSSIDV_MASK BIT_MASK(3) 242*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU2_AWMMUSSIDV_MASK BIT_MASK(4) 243*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU2_ARMMUSSIDV_MASK BIT_MASK(5) 244*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU3_AWMMUSSIDV_MASK BIT_MASK(6) 245*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU3_ARMMUSSIDV_MASK BIT_MASK(7) 246*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU4_AWMMUSSIDV_MASK BIT_MASK(8) 247*51d66a7bSJacek Lawrynowicz #define VPU_37XX_HOST_IF_TBU_MMUSSIDV_TBU4_ARMMUSSIDV_MASK BIT_MASK(9) 248864a00b8SJacek Lawrynowicz 249864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_DSU_LEON_RT_BASE 0x04000000u 250864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_DSU_LEON_RT_DSU_CTRL 0x04000000u 251864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_DSU_LEON_RT_PC_REG 0x04400010u 252864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_DSU_LEON_RT_NPC_REG 0x04400014u 253864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_DSU_LEON_RT_DSU_TRAP_REG 0x04400020u 254864a00b8SJacek Lawrynowicz 255864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_CLK_SET 0x06010004u 256864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_CLK_SET_CPU_DSU_MASK BIT_MASK(1) 257864a00b8SJacek Lawrynowicz 258864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_RST_CLR 0x06010018u 259864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_RST_CLR_CPU_DSU_MASK BIT_MASK(1) 260864a00b8SJacek Lawrynowicz 261864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_LEON_RT_VEC 0x06010040u 262864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_LEON_RT_VEC_IRQI_RSTRUN0_MASK BIT_MASK(0) 263864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_LEON_RT_VEC_IRQI_RESUME0_MASK BIT_MASK(1) 264864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_LEON_RT_VEC_IRQI_RSTRUN1_MASK BIT_MASK(2) 265864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_LEON_RT_VEC_IRQI_RESUME1_MASK BIT_MASK(3) 266864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_MSSCPU_CPR_LEON_RT_VEC_IRQI_RSTVEC_MASK GENMASK(31, 4) 267864a00b8SJacek Lawrynowicz 268864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_TIM_WATCHDOG 0x0602009cu 269864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_TIM_WDOG_EN 0x060200a4u 270864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_TIM_SAFE 0x060200a8u 271864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_TIM_IPC_FIFO 0x060200f0u 272864a00b8SJacek Lawrynowicz 273864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_TIM_GEN_CONFIG 0x06021008u 274864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_TIM_GEN_CONFIG_WDOG_TO_INT_CLR_MASK BIT_MASK(9) 275864a00b8SJacek Lawrynowicz 276864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_DOORBELL_0 0x06300000u 277864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_DOORBELL_0_SET_MASK BIT_MASK(0) 278864a00b8SJacek Lawrynowicz 279864a00b8SJacek Lawrynowicz #define MTL_VPU_CPU_SS_DOORBELL_1 0x06301000u 280864a00b8SJacek Lawrynowicz 281864a00b8SJacek Lawrynowicz #endif /* __IVPU_HW_MTL_REG_H__ */ 282