Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

interconnect: qcom: sm6350: Retire DEFINE_QNODE

The struct definition macros are hard to read and compare, expand them.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20230811-topic-icc_retire_macrosd-v1-6-c03aaeffc769@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Konrad Dybcio and committed by
Georgi Djakov
5affec83 a5403ec6

+1146 -127
+1146 -127
drivers/interconnect/qcom/sm6350.c
··· 15 15 #include "icc-rpmh.h" 16 16 #include "sm6350.h" 17 17 18 - DEFINE_QNODE(qhm_a1noc_cfg, SM6350_MASTER_A1NOC_CFG, 1, 4, SM6350_SLAVE_SERVICE_A1NOC); 19 - DEFINE_QNODE(qhm_qup_0, SM6350_MASTER_QUP_0, 1, 4, SM6350_A1NOC_SNOC_SLV); 20 - DEFINE_QNODE(xm_emmc, SM6350_MASTER_EMMC, 1, 8, SM6350_A1NOC_SNOC_SLV); 21 - DEFINE_QNODE(xm_ufs_mem, SM6350_MASTER_UFS_MEM, 1, 8, SM6350_A1NOC_SNOC_SLV); 22 - DEFINE_QNODE(qhm_a2noc_cfg, SM6350_MASTER_A2NOC_CFG, 1, 4, SM6350_SLAVE_SERVICE_A2NOC); 23 - DEFINE_QNODE(qhm_qdss_bam, SM6350_MASTER_QDSS_BAM, 1, 4, SM6350_A2NOC_SNOC_SLV); 24 - DEFINE_QNODE(qhm_qup_1, SM6350_MASTER_QUP_1, 1, 4, SM6350_A2NOC_SNOC_SLV); 25 - DEFINE_QNODE(qxm_crypto, SM6350_MASTER_CRYPTO_CORE_0, 1, 8, SM6350_A2NOC_SNOC_SLV); 26 - DEFINE_QNODE(qxm_ipa, SM6350_MASTER_IPA, 1, 8, SM6350_A2NOC_SNOC_SLV); 27 - DEFINE_QNODE(xm_qdss_etr, SM6350_MASTER_QDSS_ETR, 1, 8, SM6350_A2NOC_SNOC_SLV); 28 - DEFINE_QNODE(xm_sdc2, SM6350_MASTER_SDCC_2, 1, 8, SM6350_A2NOC_SNOC_SLV); 29 - DEFINE_QNODE(xm_usb3_0, SM6350_MASTER_USB3, 1, 8, SM6350_A2NOC_SNOC_SLV); 30 - DEFINE_QNODE(qxm_camnoc_hf0_uncomp, SM6350_MASTER_CAMNOC_HF0_UNCOMP, 2, 32, SM6350_SLAVE_CAMNOC_UNCOMP); 31 - DEFINE_QNODE(qxm_camnoc_icp_uncomp, SM6350_MASTER_CAMNOC_ICP_UNCOMP, 1, 32, SM6350_SLAVE_CAMNOC_UNCOMP); 32 - DEFINE_QNODE(qxm_camnoc_sf_uncomp, SM6350_MASTER_CAMNOC_SF_UNCOMP, 1, 32, SM6350_SLAVE_CAMNOC_UNCOMP); 33 - DEFINE_QNODE(qup0_core_master, SM6350_MASTER_QUP_CORE_0, 1, 4, SM6350_SLAVE_QUP_CORE_0); 34 - DEFINE_QNODE(qup1_core_master, SM6350_MASTER_QUP_CORE_1, 1, 4, SM6350_SLAVE_QUP_CORE_1); 35 - DEFINE_QNODE(qnm_npu, SM6350_MASTER_NPU, 2, 32, SM6350_SLAVE_CDSP_GEM_NOC); 36 - DEFINE_QNODE(qxm_npu_dsp, SM6350_MASTER_NPU_PROC, 1, 8, SM6350_SLAVE_CDSP_GEM_NOC); 37 - DEFINE_QNODE(qnm_snoc, SM6350_SNOC_CNOC_MAS, 1, 8, SM6350_SLAVE_CAMERA_CFG, SM6350_SLAVE_SDCC_2, SM6350_SLAVE_CNOC_MNOC_CFG, SM6350_SLAVE_UFS_MEM_CFG, SM6350_SLAVE_QM_CFG, SM6350_SLAVE_SNOC_CFG, SM6350_SLAVE_QM_MPU_CFG, SM6350_SLAVE_GLM, SM6350_SLAVE_PDM, SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG, SM6350_SLAVE_A2NOC_CFG, SM6350_SLAVE_QDSS_CFG, SM6350_SLAVE_VSENSE_CTRL_CFG, SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG, SM6350_SLAVE_DISPLAY_CFG, SM6350_SLAVE_TCSR, SM6350_SLAVE_DCC_CFG, SM6350_SLAVE_CNOC_DDRSS, SM6350_SLAVE_DISPLAY_THROTTLE_CFG, SM6350_SLAVE_NPU_CFG, SM6350_SLAVE_AHB2PHY, SM6350_SLAVE_GRAPHICS_3D_CFG, SM6350_SLAVE_BOOT_ROM, SM6350_SLAVE_VENUS_CFG, SM6350_SLAVE_IPA_CFG, SM6350_SLAVE_SECURITY, SM6350_SLAVE_IMEM_CFG, SM6350_SLAVE_CNOC_MSS, SM6350_SLAVE_SERVICE_CNOC, SM6350_SLAVE_USB3, SM6350_SLAVE_VENUS_THROTTLE_CFG, SM6350_SLAVE_RBCPR_CX_CFG, SM6350_SLAVE_A1NOC_CFG, SM6350_SLAVE_AOSS, SM6350_SLAVE_PRNG, SM6350_SLAVE_EMMC_CFG, SM6350_SLAVE_CRYPTO_0_CFG, SM6350_SLAVE_PIMEM_CFG, SM6350_SLAVE_RBCPR_MX_CFG, SM6350_SLAVE_QUP_0, SM6350_SLAVE_QUP_1, SM6350_SLAVE_CLK_CTL); 38 - DEFINE_QNODE(xm_qdss_dap, SM6350_MASTER_QDSS_DAP, 1, 8, SM6350_SLAVE_CAMERA_CFG, SM6350_SLAVE_SDCC_2, SM6350_SLAVE_CNOC_MNOC_CFG, SM6350_SLAVE_UFS_MEM_CFG, SM6350_SLAVE_QM_CFG, SM6350_SLAVE_SNOC_CFG, SM6350_SLAVE_QM_MPU_CFG, SM6350_SLAVE_GLM, SM6350_SLAVE_PDM, SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG, SM6350_SLAVE_A2NOC_CFG, SM6350_SLAVE_QDSS_CFG, SM6350_SLAVE_VSENSE_CTRL_CFG, SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG, SM6350_SLAVE_DISPLAY_CFG, SM6350_SLAVE_TCSR, SM6350_SLAVE_DCC_CFG, SM6350_SLAVE_CNOC_DDRSS, SM6350_SLAVE_DISPLAY_THROTTLE_CFG, SM6350_SLAVE_NPU_CFG, SM6350_SLAVE_AHB2PHY, SM6350_SLAVE_GRAPHICS_3D_CFG, SM6350_SLAVE_BOOT_ROM, SM6350_SLAVE_VENUS_CFG, SM6350_SLAVE_IPA_CFG, SM6350_SLAVE_SECURITY, SM6350_SLAVE_IMEM_CFG, SM6350_SLAVE_CNOC_MSS, SM6350_SLAVE_SERVICE_CNOC, SM6350_SLAVE_USB3, SM6350_SLAVE_VENUS_THROTTLE_CFG, SM6350_SLAVE_RBCPR_CX_CFG, SM6350_SLAVE_A1NOC_CFG, SM6350_SLAVE_AOSS, SM6350_SLAVE_PRNG, SM6350_SLAVE_EMMC_CFG, SM6350_SLAVE_CRYPTO_0_CFG, SM6350_SLAVE_PIMEM_CFG, SM6350_SLAVE_RBCPR_MX_CFG, SM6350_SLAVE_QUP_0, SM6350_SLAVE_QUP_1, SM6350_SLAVE_CLK_CTL); 39 - DEFINE_QNODE(qhm_cnoc_dc_noc, SM6350_MASTER_CNOC_DC_NOC, 1, 4, SM6350_SLAVE_LLCC_CFG, SM6350_SLAVE_GEM_NOC_CFG); 40 - DEFINE_QNODE(acm_apps, SM6350_MASTER_AMPSS_M0, 1, 16, SM6350_SLAVE_LLCC, SM6350_SLAVE_GEM_NOC_SNOC); 41 - DEFINE_QNODE(acm_sys_tcu, SM6350_MASTER_SYS_TCU, 1, 8, SM6350_SLAVE_LLCC, SM6350_SLAVE_GEM_NOC_SNOC); 42 - DEFINE_QNODE(qhm_gemnoc_cfg, SM6350_MASTER_GEM_NOC_CFG, 1, 4, SM6350_SLAVE_MCDMA_MS_MPU_CFG, SM6350_SLAVE_SERVICE_GEM_NOC, SM6350_SLAVE_MSS_PROC_MS_MPU_CFG); 43 - DEFINE_QNODE(qnm_cmpnoc, SM6350_MASTER_COMPUTE_NOC, 1, 32, SM6350_SLAVE_LLCC, SM6350_SLAVE_GEM_NOC_SNOC); 44 - DEFINE_QNODE(qnm_mnoc_hf, SM6350_MASTER_MNOC_HF_MEM_NOC, 1, 32, SM6350_SLAVE_LLCC, SM6350_SLAVE_GEM_NOC_SNOC); 45 - DEFINE_QNODE(qnm_mnoc_sf, SM6350_MASTER_MNOC_SF_MEM_NOC, 1, 32, SM6350_SLAVE_LLCC, SM6350_SLAVE_GEM_NOC_SNOC); 46 - DEFINE_QNODE(qnm_snoc_gc, SM6350_MASTER_SNOC_GC_MEM_NOC, 1, 8, SM6350_SLAVE_LLCC); 47 - DEFINE_QNODE(qnm_snoc_sf, SM6350_MASTER_SNOC_SF_MEM_NOC, 1, 16, SM6350_SLAVE_LLCC); 48 - DEFINE_QNODE(qxm_gpu, SM6350_MASTER_GRAPHICS_3D, 2, 32, SM6350_SLAVE_LLCC, SM6350_SLAVE_GEM_NOC_SNOC); 49 - DEFINE_QNODE(llcc_mc, SM6350_MASTER_LLCC, 2, 4, SM6350_SLAVE_EBI_CH0); 50 - DEFINE_QNODE(qhm_mnoc_cfg, SM6350_MASTER_CNOC_MNOC_CFG, 1, 4, SM6350_SLAVE_SERVICE_MNOC); 51 - DEFINE_QNODE(qnm_video0, SM6350_MASTER_VIDEO_P0, 1, 32, SM6350_SLAVE_MNOC_SF_MEM_NOC); 52 - DEFINE_QNODE(qnm_video_cvp, SM6350_MASTER_VIDEO_PROC, 1, 8, SM6350_SLAVE_MNOC_SF_MEM_NOC); 53 - DEFINE_QNODE(qxm_camnoc_hf, SM6350_MASTER_CAMNOC_HF, 2, 32, SM6350_SLAVE_MNOC_HF_MEM_NOC); 54 - DEFINE_QNODE(qxm_camnoc_icp, SM6350_MASTER_CAMNOC_ICP, 1, 8, SM6350_SLAVE_MNOC_SF_MEM_NOC); 55 - DEFINE_QNODE(qxm_camnoc_sf, SM6350_MASTER_CAMNOC_SF, 1, 32, SM6350_SLAVE_MNOC_SF_MEM_NOC); 56 - DEFINE_QNODE(qxm_mdp0, SM6350_MASTER_MDP_PORT0, 1, 32, SM6350_SLAVE_MNOC_HF_MEM_NOC); 57 - DEFINE_QNODE(amm_npu_sys, SM6350_MASTER_NPU_SYS, 2, 32, SM6350_SLAVE_NPU_COMPUTE_NOC); 58 - DEFINE_QNODE(qhm_npu_cfg, SM6350_MASTER_NPU_NOC_CFG, 1, 4, SM6350_SLAVE_SERVICE_NPU_NOC, SM6350_SLAVE_ISENSE_CFG, SM6350_SLAVE_NPU_LLM_CFG, SM6350_SLAVE_NPU_INT_DMA_BWMON_CFG, SM6350_SLAVE_NPU_CP, SM6350_SLAVE_NPU_TCM, SM6350_SLAVE_NPU_CAL_DP0, SM6350_SLAVE_NPU_DPM); 59 - DEFINE_QNODE(qhm_snoc_cfg, SM6350_MASTER_SNOC_CFG, 1, 4, SM6350_SLAVE_SERVICE_SNOC); 60 - DEFINE_QNODE(qnm_aggre1_noc, SM6350_A1NOC_SNOC_MAS, 1, 16, SM6350_SLAVE_SNOC_GEM_NOC_SF, SM6350_SLAVE_PIMEM, SM6350_SLAVE_OCIMEM, SM6350_SLAVE_APPSS, SM6350_SNOC_CNOC_SLV, SM6350_SLAVE_QDSS_STM); 61 - DEFINE_QNODE(qnm_aggre2_noc, SM6350_A2NOC_SNOC_MAS, 1, 16, SM6350_SLAVE_SNOC_GEM_NOC_SF, SM6350_SLAVE_PIMEM, SM6350_SLAVE_OCIMEM, SM6350_SLAVE_APPSS, SM6350_SNOC_CNOC_SLV, SM6350_SLAVE_TCU, SM6350_SLAVE_QDSS_STM); 62 - DEFINE_QNODE(qnm_gemnoc, SM6350_MASTER_GEM_NOC_SNOC, 1, 8, SM6350_SLAVE_PIMEM, SM6350_SLAVE_OCIMEM, SM6350_SLAVE_APPSS, SM6350_SNOC_CNOC_SLV, SM6350_SLAVE_TCU, SM6350_SLAVE_QDSS_STM); 63 - DEFINE_QNODE(qxm_pimem, SM6350_MASTER_PIMEM, 1, 8, SM6350_SLAVE_SNOC_GEM_NOC_GC, SM6350_SLAVE_OCIMEM); 64 - DEFINE_QNODE(xm_gic, SM6350_MASTER_GIC, 1, 8, SM6350_SLAVE_SNOC_GEM_NOC_GC); 65 - DEFINE_QNODE(qns_a1noc_snoc, SM6350_A1NOC_SNOC_SLV, 1, 16, SM6350_A1NOC_SNOC_MAS); 66 - DEFINE_QNODE(srvc_aggre1_noc, SM6350_SLAVE_SERVICE_A1NOC, 1, 4); 67 - DEFINE_QNODE(qns_a2noc_snoc, SM6350_A2NOC_SNOC_SLV, 1, 16, SM6350_A2NOC_SNOC_MAS); 68 - DEFINE_QNODE(srvc_aggre2_noc, SM6350_SLAVE_SERVICE_A2NOC, 1, 4); 69 - DEFINE_QNODE(qns_camnoc_uncomp, SM6350_SLAVE_CAMNOC_UNCOMP, 1, 32); 70 - DEFINE_QNODE(qup0_core_slave, SM6350_SLAVE_QUP_CORE_0, 1, 4); 71 - DEFINE_QNODE(qup1_core_slave, SM6350_SLAVE_QUP_CORE_1, 1, 4); 72 - DEFINE_QNODE(qns_cdsp_gemnoc, SM6350_SLAVE_CDSP_GEM_NOC, 1, 32, SM6350_MASTER_COMPUTE_NOC); 73 - DEFINE_QNODE(qhs_a1_noc_cfg, SM6350_SLAVE_A1NOC_CFG, 1, 4, SM6350_MASTER_A1NOC_CFG); 74 - DEFINE_QNODE(qhs_a2_noc_cfg, SM6350_SLAVE_A2NOC_CFG, 1, 4, SM6350_MASTER_A2NOC_CFG); 75 - DEFINE_QNODE(qhs_ahb2phy0, SM6350_SLAVE_AHB2PHY, 1, 4); 76 - DEFINE_QNODE(qhs_ahb2phy2, SM6350_SLAVE_AHB2PHY_2, 1, 4); 77 - DEFINE_QNODE(qhs_aoss, SM6350_SLAVE_AOSS, 1, 4); 78 - DEFINE_QNODE(qhs_boot_rom, SM6350_SLAVE_BOOT_ROM, 1, 4); 79 - DEFINE_QNODE(qhs_camera_cfg, SM6350_SLAVE_CAMERA_CFG, 1, 4); 80 - DEFINE_QNODE(qhs_camera_nrt_thrott_cfg, SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG, 1, 4); 81 - DEFINE_QNODE(qhs_camera_rt_throttle_cfg, SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG, 1, 4); 82 - DEFINE_QNODE(qhs_clk_ctl, SM6350_SLAVE_CLK_CTL, 1, 4); 83 - DEFINE_QNODE(qhs_cpr_cx, SM6350_SLAVE_RBCPR_CX_CFG, 1, 4); 84 - DEFINE_QNODE(qhs_cpr_mx, SM6350_SLAVE_RBCPR_MX_CFG, 1, 4); 85 - DEFINE_QNODE(qhs_crypto0_cfg, SM6350_SLAVE_CRYPTO_0_CFG, 1, 4); 86 - DEFINE_QNODE(qhs_dcc_cfg, SM6350_SLAVE_DCC_CFG, 1, 4); 87 - DEFINE_QNODE(qhs_ddrss_cfg, SM6350_SLAVE_CNOC_DDRSS, 1, 4, SM6350_MASTER_CNOC_DC_NOC); 88 - DEFINE_QNODE(qhs_display_cfg, SM6350_SLAVE_DISPLAY_CFG, 1, 4); 89 - DEFINE_QNODE(qhs_display_throttle_cfg, SM6350_SLAVE_DISPLAY_THROTTLE_CFG, 1, 4); 90 - DEFINE_QNODE(qhs_emmc_cfg, SM6350_SLAVE_EMMC_CFG, 1, 4); 91 - DEFINE_QNODE(qhs_glm, SM6350_SLAVE_GLM, 1, 4); 92 - DEFINE_QNODE(qhs_gpuss_cfg, SM6350_SLAVE_GRAPHICS_3D_CFG, 1, 8); 93 - DEFINE_QNODE(qhs_imem_cfg, SM6350_SLAVE_IMEM_CFG, 1, 4); 94 - DEFINE_QNODE(qhs_ipa, SM6350_SLAVE_IPA_CFG, 1, 4); 95 - DEFINE_QNODE(qhs_mnoc_cfg, SM6350_SLAVE_CNOC_MNOC_CFG, 1, 4, SM6350_MASTER_CNOC_MNOC_CFG); 96 - DEFINE_QNODE(qhs_mss_cfg, SM6350_SLAVE_CNOC_MSS, 1, 4); 97 - DEFINE_QNODE(qhs_npu_cfg, SM6350_SLAVE_NPU_CFG, 1, 4, SM6350_MASTER_NPU_NOC_CFG); 98 - DEFINE_QNODE(qhs_pdm, SM6350_SLAVE_PDM, 1, 4); 99 - DEFINE_QNODE(qhs_pimem_cfg, SM6350_SLAVE_PIMEM_CFG, 1, 4); 100 - DEFINE_QNODE(qhs_prng, SM6350_SLAVE_PRNG, 1, 4); 101 - DEFINE_QNODE(qhs_qdss_cfg, SM6350_SLAVE_QDSS_CFG, 1, 4); 102 - DEFINE_QNODE(qhs_qm_cfg, SM6350_SLAVE_QM_CFG, 1, 4); 103 - DEFINE_QNODE(qhs_qm_mpu_cfg, SM6350_SLAVE_QM_MPU_CFG, 1, 4); 104 - DEFINE_QNODE(qhs_qup0, SM6350_SLAVE_QUP_0, 1, 4); 105 - DEFINE_QNODE(qhs_qup1, SM6350_SLAVE_QUP_1, 1, 4); 106 - DEFINE_QNODE(qhs_sdc2, SM6350_SLAVE_SDCC_2, 1, 4); 107 - DEFINE_QNODE(qhs_security, SM6350_SLAVE_SECURITY, 1, 4); 108 - DEFINE_QNODE(qhs_snoc_cfg, SM6350_SLAVE_SNOC_CFG, 1, 4, SM6350_MASTER_SNOC_CFG); 109 - DEFINE_QNODE(qhs_tcsr, SM6350_SLAVE_TCSR, 1, 4); 110 - DEFINE_QNODE(qhs_ufs_mem_cfg, SM6350_SLAVE_UFS_MEM_CFG, 1, 4); 111 - DEFINE_QNODE(qhs_usb3_0, SM6350_SLAVE_USB3, 1, 4); 112 - DEFINE_QNODE(qhs_venus_cfg, SM6350_SLAVE_VENUS_CFG, 1, 4); 113 - DEFINE_QNODE(qhs_venus_throttle_cfg, SM6350_SLAVE_VENUS_THROTTLE_CFG, 1, 4); 114 - DEFINE_QNODE(qhs_vsense_ctrl_cfg, SM6350_SLAVE_VSENSE_CTRL_CFG, 1, 4); 115 - DEFINE_QNODE(srvc_cnoc, SM6350_SLAVE_SERVICE_CNOC, 1, 4); 116 - DEFINE_QNODE(qhs_gemnoc, SM6350_SLAVE_GEM_NOC_CFG, 1, 4, SM6350_MASTER_GEM_NOC_CFG); 117 - DEFINE_QNODE(qhs_llcc, SM6350_SLAVE_LLCC_CFG, 1, 4); 118 - DEFINE_QNODE(qhs_mcdma_ms_mpu_cfg, SM6350_SLAVE_MCDMA_MS_MPU_CFG, 1, 4); 119 - DEFINE_QNODE(qhs_mdsp_ms_mpu_cfg, SM6350_SLAVE_MSS_PROC_MS_MPU_CFG, 1, 4); 120 - DEFINE_QNODE(qns_gem_noc_snoc, SM6350_SLAVE_GEM_NOC_SNOC, 1, 8, SM6350_MASTER_GEM_NOC_SNOC); 121 - DEFINE_QNODE(qns_llcc, SM6350_SLAVE_LLCC, 1, 16, SM6350_MASTER_LLCC); 122 - DEFINE_QNODE(srvc_gemnoc, SM6350_SLAVE_SERVICE_GEM_NOC, 1, 4); 123 - DEFINE_QNODE(ebi, SM6350_SLAVE_EBI_CH0, 2, 4); 124 - DEFINE_QNODE(qns_mem_noc_hf, SM6350_SLAVE_MNOC_HF_MEM_NOC, 1, 32, SM6350_MASTER_MNOC_HF_MEM_NOC); 125 - DEFINE_QNODE(qns_mem_noc_sf, SM6350_SLAVE_MNOC_SF_MEM_NOC, 1, 32, SM6350_MASTER_MNOC_SF_MEM_NOC); 126 - DEFINE_QNODE(srvc_mnoc, SM6350_SLAVE_SERVICE_MNOC, 1, 4); 127 - DEFINE_QNODE(qhs_cal_dp0, SM6350_SLAVE_NPU_CAL_DP0, 1, 4); 128 - DEFINE_QNODE(qhs_cp, SM6350_SLAVE_NPU_CP, 1, 4); 129 - DEFINE_QNODE(qhs_dma_bwmon, SM6350_SLAVE_NPU_INT_DMA_BWMON_CFG, 1, 4); 130 - DEFINE_QNODE(qhs_dpm, SM6350_SLAVE_NPU_DPM, 1, 4); 131 - DEFINE_QNODE(qhs_isense, SM6350_SLAVE_ISENSE_CFG, 1, 4); 132 - DEFINE_QNODE(qhs_llm, SM6350_SLAVE_NPU_LLM_CFG, 1, 4); 133 - DEFINE_QNODE(qhs_tcm, SM6350_SLAVE_NPU_TCM, 1, 4); 134 - DEFINE_QNODE(qns_npu_sys, SM6350_SLAVE_NPU_COMPUTE_NOC, 2, 32); 135 - DEFINE_QNODE(srvc_noc, SM6350_SLAVE_SERVICE_NPU_NOC, 1, 4); 136 - DEFINE_QNODE(qhs_apss, SM6350_SLAVE_APPSS, 1, 8); 137 - DEFINE_QNODE(qns_cnoc, SM6350_SNOC_CNOC_SLV, 1, 8, SM6350_SNOC_CNOC_MAS); 138 - DEFINE_QNODE(qns_gemnoc_gc, SM6350_SLAVE_SNOC_GEM_NOC_GC, 1, 8, SM6350_MASTER_SNOC_GC_MEM_NOC); 139 - DEFINE_QNODE(qns_gemnoc_sf, SM6350_SLAVE_SNOC_GEM_NOC_SF, 1, 16, SM6350_MASTER_SNOC_SF_MEM_NOC); 140 - DEFINE_QNODE(qxs_imem, SM6350_SLAVE_OCIMEM, 1, 8); 141 - DEFINE_QNODE(qxs_pimem, SM6350_SLAVE_PIMEM, 1, 8); 142 - DEFINE_QNODE(srvc_snoc, SM6350_SLAVE_SERVICE_SNOC, 1, 4); 143 - DEFINE_QNODE(xs_qdss_stm, SM6350_SLAVE_QDSS_STM, 1, 4); 144 - DEFINE_QNODE(xs_sys_tcu_cfg, SM6350_SLAVE_TCU, 1, 8); 18 + static struct qcom_icc_node qhm_a1noc_cfg = { 19 + .name = "qhm_a1noc_cfg", 20 + .id = SM6350_MASTER_A1NOC_CFG, 21 + .channels = 1, 22 + .buswidth = 4, 23 + .num_links = 1, 24 + .links = { SM6350_SLAVE_SERVICE_A1NOC }, 25 + }; 26 + 27 + static struct qcom_icc_node qhm_qup_0 = { 28 + .name = "qhm_qup_0", 29 + .id = SM6350_MASTER_QUP_0, 30 + .channels = 1, 31 + .buswidth = 4, 32 + .num_links = 1, 33 + .links = { SM6350_A1NOC_SNOC_SLV }, 34 + }; 35 + 36 + static struct qcom_icc_node xm_emmc = { 37 + .name = "xm_emmc", 38 + .id = SM6350_MASTER_EMMC, 39 + .channels = 1, 40 + .buswidth = 8, 41 + .num_links = 1, 42 + .links = { SM6350_A1NOC_SNOC_SLV }, 43 + }; 44 + 45 + static struct qcom_icc_node xm_ufs_mem = { 46 + .name = "xm_ufs_mem", 47 + .id = SM6350_MASTER_UFS_MEM, 48 + .channels = 1, 49 + .buswidth = 8, 50 + .num_links = 1, 51 + .links = { SM6350_A1NOC_SNOC_SLV }, 52 + }; 53 + 54 + static struct qcom_icc_node qhm_a2noc_cfg = { 55 + .name = "qhm_a2noc_cfg", 56 + .id = SM6350_MASTER_A2NOC_CFG, 57 + .channels = 1, 58 + .buswidth = 4, 59 + .num_links = 1, 60 + .links = { SM6350_SLAVE_SERVICE_A2NOC }, 61 + }; 62 + 63 + static struct qcom_icc_node qhm_qdss_bam = { 64 + .name = "qhm_qdss_bam", 65 + .id = SM6350_MASTER_QDSS_BAM, 66 + .channels = 1, 67 + .buswidth = 4, 68 + .num_links = 1, 69 + .links = { SM6350_A2NOC_SNOC_SLV }, 70 + }; 71 + 72 + static struct qcom_icc_node qhm_qup_1 = { 73 + .name = "qhm_qup_1", 74 + .id = SM6350_MASTER_QUP_1, 75 + .channels = 1, 76 + .buswidth = 4, 77 + .num_links = 1, 78 + .links = { SM6350_A2NOC_SNOC_SLV }, 79 + }; 80 + 81 + static struct qcom_icc_node qxm_crypto = { 82 + .name = "qxm_crypto", 83 + .id = SM6350_MASTER_CRYPTO_CORE_0, 84 + .channels = 1, 85 + .buswidth = 8, 86 + .num_links = 1, 87 + .links = { SM6350_A2NOC_SNOC_SLV }, 88 + }; 89 + 90 + static struct qcom_icc_node qxm_ipa = { 91 + .name = "qxm_ipa", 92 + .id = SM6350_MASTER_IPA, 93 + .channels = 1, 94 + .buswidth = 8, 95 + .num_links = 1, 96 + .links = { SM6350_A2NOC_SNOC_SLV }, 97 + }; 98 + 99 + static struct qcom_icc_node xm_qdss_etr = { 100 + .name = "xm_qdss_etr", 101 + .id = SM6350_MASTER_QDSS_ETR, 102 + .channels = 1, 103 + .buswidth = 8, 104 + .num_links = 1, 105 + .links = { SM6350_A2NOC_SNOC_SLV }, 106 + }; 107 + 108 + static struct qcom_icc_node xm_sdc2 = { 109 + .name = "xm_sdc2", 110 + .id = SM6350_MASTER_SDCC_2, 111 + .channels = 1, 112 + .buswidth = 8, 113 + .num_links = 1, 114 + .links = { SM6350_A2NOC_SNOC_SLV }, 115 + }; 116 + 117 + static struct qcom_icc_node xm_usb3_0 = { 118 + .name = "xm_usb3_0", 119 + .id = SM6350_MASTER_USB3, 120 + .channels = 1, 121 + .buswidth = 8, 122 + .num_links = 1, 123 + .links = { SM6350_A2NOC_SNOC_SLV }, 124 + }; 125 + 126 + static struct qcom_icc_node qxm_camnoc_hf0_uncomp = { 127 + .name = "qxm_camnoc_hf0_uncomp", 128 + .id = SM6350_MASTER_CAMNOC_HF0_UNCOMP, 129 + .channels = 2, 130 + .buswidth = 32, 131 + .num_links = 1, 132 + .links = { SM6350_SLAVE_CAMNOC_UNCOMP }, 133 + }; 134 + 135 + static struct qcom_icc_node qxm_camnoc_icp_uncomp = { 136 + .name = "qxm_camnoc_icp_uncomp", 137 + .id = SM6350_MASTER_CAMNOC_ICP_UNCOMP, 138 + .channels = 1, 139 + .buswidth = 32, 140 + .num_links = 1, 141 + .links = { SM6350_SLAVE_CAMNOC_UNCOMP }, 142 + }; 143 + 144 + static struct qcom_icc_node qxm_camnoc_sf_uncomp = { 145 + .name = "qxm_camnoc_sf_uncomp", 146 + .id = SM6350_MASTER_CAMNOC_SF_UNCOMP, 147 + .channels = 1, 148 + .buswidth = 32, 149 + .num_links = 1, 150 + .links = { SM6350_SLAVE_CAMNOC_UNCOMP }, 151 + }; 152 + 153 + static struct qcom_icc_node qup0_core_master = { 154 + .name = "qup0_core_master", 155 + .id = SM6350_MASTER_QUP_CORE_0, 156 + .channels = 1, 157 + .buswidth = 4, 158 + .num_links = 1, 159 + .links = { SM6350_SLAVE_QUP_CORE_0 }, 160 + }; 161 + 162 + static struct qcom_icc_node qup1_core_master = { 163 + .name = "qup1_core_master", 164 + .id = SM6350_MASTER_QUP_CORE_1, 165 + .channels = 1, 166 + .buswidth = 4, 167 + .num_links = 1, 168 + .links = { SM6350_SLAVE_QUP_CORE_1 }, 169 + }; 170 + 171 + static struct qcom_icc_node qnm_npu = { 172 + .name = "qnm_npu", 173 + .id = SM6350_MASTER_NPU, 174 + .channels = 2, 175 + .buswidth = 32, 176 + .num_links = 1, 177 + .links = { SM6350_SLAVE_CDSP_GEM_NOC }, 178 + }; 179 + 180 + static struct qcom_icc_node qxm_npu_dsp = { 181 + .name = "qxm_npu_dsp", 182 + .id = SM6350_MASTER_NPU_PROC, 183 + .channels = 1, 184 + .buswidth = 8, 185 + .num_links = 1, 186 + .links = { SM6350_SLAVE_CDSP_GEM_NOC }, 187 + }; 188 + 189 + static struct qcom_icc_node qnm_snoc = { 190 + .name = "qnm_snoc", 191 + .id = SM6350_SNOC_CNOC_MAS, 192 + .channels = 1, 193 + .buswidth = 8, 194 + .num_links = 42, 195 + .links = { SM6350_SLAVE_CAMERA_CFG, 196 + SM6350_SLAVE_SDCC_2, 197 + SM6350_SLAVE_CNOC_MNOC_CFG, 198 + SM6350_SLAVE_UFS_MEM_CFG, 199 + SM6350_SLAVE_QM_CFG, 200 + SM6350_SLAVE_SNOC_CFG, 201 + SM6350_SLAVE_QM_MPU_CFG, 202 + SM6350_SLAVE_GLM, 203 + SM6350_SLAVE_PDM, 204 + SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG, 205 + SM6350_SLAVE_A2NOC_CFG, 206 + SM6350_SLAVE_QDSS_CFG, 207 + SM6350_SLAVE_VSENSE_CTRL_CFG, 208 + SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG, 209 + SM6350_SLAVE_DISPLAY_CFG, 210 + SM6350_SLAVE_TCSR, 211 + SM6350_SLAVE_DCC_CFG, 212 + SM6350_SLAVE_CNOC_DDRSS, 213 + SM6350_SLAVE_DISPLAY_THROTTLE_CFG, 214 + SM6350_SLAVE_NPU_CFG, 215 + SM6350_SLAVE_AHB2PHY, 216 + SM6350_SLAVE_GRAPHICS_3D_CFG, 217 + SM6350_SLAVE_BOOT_ROM, 218 + SM6350_SLAVE_VENUS_CFG, 219 + SM6350_SLAVE_IPA_CFG, 220 + SM6350_SLAVE_SECURITY, 221 + SM6350_SLAVE_IMEM_CFG, 222 + SM6350_SLAVE_CNOC_MSS, 223 + SM6350_SLAVE_SERVICE_CNOC, 224 + SM6350_SLAVE_USB3, 225 + SM6350_SLAVE_VENUS_THROTTLE_CFG, 226 + SM6350_SLAVE_RBCPR_CX_CFG, 227 + SM6350_SLAVE_A1NOC_CFG, 228 + SM6350_SLAVE_AOSS, 229 + SM6350_SLAVE_PRNG, 230 + SM6350_SLAVE_EMMC_CFG, 231 + SM6350_SLAVE_CRYPTO_0_CFG, 232 + SM6350_SLAVE_PIMEM_CFG, 233 + SM6350_SLAVE_RBCPR_MX_CFG, 234 + SM6350_SLAVE_QUP_0, 235 + SM6350_SLAVE_QUP_1, 236 + SM6350_SLAVE_CLK_CTL 237 + }, 238 + }; 239 + 240 + static struct qcom_icc_node xm_qdss_dap = { 241 + .name = "xm_qdss_dap", 242 + .id = SM6350_MASTER_QDSS_DAP, 243 + .channels = 1, 244 + .buswidth = 8, 245 + .num_links = 42, 246 + .links = { SM6350_SLAVE_CAMERA_CFG, 247 + SM6350_SLAVE_SDCC_2, 248 + SM6350_SLAVE_CNOC_MNOC_CFG, 249 + SM6350_SLAVE_UFS_MEM_CFG, 250 + SM6350_SLAVE_QM_CFG, 251 + SM6350_SLAVE_SNOC_CFG, 252 + SM6350_SLAVE_QM_MPU_CFG, 253 + SM6350_SLAVE_GLM, 254 + SM6350_SLAVE_PDM, 255 + SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG, 256 + SM6350_SLAVE_A2NOC_CFG, 257 + SM6350_SLAVE_QDSS_CFG, 258 + SM6350_SLAVE_VSENSE_CTRL_CFG, 259 + SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG, 260 + SM6350_SLAVE_DISPLAY_CFG, 261 + SM6350_SLAVE_TCSR, 262 + SM6350_SLAVE_DCC_CFG, 263 + SM6350_SLAVE_CNOC_DDRSS, 264 + SM6350_SLAVE_DISPLAY_THROTTLE_CFG, 265 + SM6350_SLAVE_NPU_CFG, 266 + SM6350_SLAVE_AHB2PHY, 267 + SM6350_SLAVE_GRAPHICS_3D_CFG, 268 + SM6350_SLAVE_BOOT_ROM, 269 + SM6350_SLAVE_VENUS_CFG, 270 + SM6350_SLAVE_IPA_CFG, 271 + SM6350_SLAVE_SECURITY, 272 + SM6350_SLAVE_IMEM_CFG, 273 + SM6350_SLAVE_CNOC_MSS, 274 + SM6350_SLAVE_SERVICE_CNOC, 275 + SM6350_SLAVE_USB3, 276 + SM6350_SLAVE_VENUS_THROTTLE_CFG, 277 + SM6350_SLAVE_RBCPR_CX_CFG, 278 + SM6350_SLAVE_A1NOC_CFG, 279 + SM6350_SLAVE_AOSS, 280 + SM6350_SLAVE_PRNG, 281 + SM6350_SLAVE_EMMC_CFG, 282 + SM6350_SLAVE_CRYPTO_0_CFG, 283 + SM6350_SLAVE_PIMEM_CFG, 284 + SM6350_SLAVE_RBCPR_MX_CFG, 285 + SM6350_SLAVE_QUP_0, 286 + SM6350_SLAVE_QUP_1, 287 + SM6350_SLAVE_CLK_CTL 288 + }, 289 + }; 290 + 291 + static struct qcom_icc_node qhm_cnoc_dc_noc = { 292 + .name = "qhm_cnoc_dc_noc", 293 + .id = SM6350_MASTER_CNOC_DC_NOC, 294 + .channels = 1, 295 + .buswidth = 4, 296 + .num_links = 2, 297 + .links = { SM6350_SLAVE_LLCC_CFG, 298 + SM6350_SLAVE_GEM_NOC_CFG 299 + }, 300 + }; 301 + 302 + static struct qcom_icc_node acm_apps = { 303 + .name = "acm_apps", 304 + .id = SM6350_MASTER_AMPSS_M0, 305 + .channels = 1, 306 + .buswidth = 16, 307 + .num_links = 2, 308 + .links = { SM6350_SLAVE_LLCC, 309 + SM6350_SLAVE_GEM_NOC_SNOC 310 + }, 311 + }; 312 + 313 + static struct qcom_icc_node acm_sys_tcu = { 314 + .name = "acm_sys_tcu", 315 + .id = SM6350_MASTER_SYS_TCU, 316 + .channels = 1, 317 + .buswidth = 8, 318 + .num_links = 2, 319 + .links = { SM6350_SLAVE_LLCC, 320 + SM6350_SLAVE_GEM_NOC_SNOC 321 + }, 322 + }; 323 + 324 + static struct qcom_icc_node qhm_gemnoc_cfg = { 325 + .name = "qhm_gemnoc_cfg", 326 + .id = SM6350_MASTER_GEM_NOC_CFG, 327 + .channels = 1, 328 + .buswidth = 4, 329 + .num_links = 3, 330 + .links = { SM6350_SLAVE_MCDMA_MS_MPU_CFG, 331 + SM6350_SLAVE_SERVICE_GEM_NOC, 332 + SM6350_SLAVE_MSS_PROC_MS_MPU_CFG 333 + }, 334 + }; 335 + 336 + static struct qcom_icc_node qnm_cmpnoc = { 337 + .name = "qnm_cmpnoc", 338 + .id = SM6350_MASTER_COMPUTE_NOC, 339 + .channels = 1, 340 + .buswidth = 32, 341 + .num_links = 2, 342 + .links = { SM6350_SLAVE_LLCC, 343 + SM6350_SLAVE_GEM_NOC_SNOC 344 + }, 345 + }; 346 + 347 + static struct qcom_icc_node qnm_mnoc_hf = { 348 + .name = "qnm_mnoc_hf", 349 + .id = SM6350_MASTER_MNOC_HF_MEM_NOC, 350 + .channels = 1, 351 + .buswidth = 32, 352 + .num_links = 2, 353 + .links = { SM6350_SLAVE_LLCC, 354 + SM6350_SLAVE_GEM_NOC_SNOC 355 + }, 356 + }; 357 + 358 + static struct qcom_icc_node qnm_mnoc_sf = { 359 + .name = "qnm_mnoc_sf", 360 + .id = SM6350_MASTER_MNOC_SF_MEM_NOC, 361 + .channels = 1, 362 + .buswidth = 32, 363 + .num_links = 2, 364 + .links = { SM6350_SLAVE_LLCC, 365 + SM6350_SLAVE_GEM_NOC_SNOC 366 + }, 367 + }; 368 + 369 + static struct qcom_icc_node qnm_snoc_gc = { 370 + .name = "qnm_snoc_gc", 371 + .id = SM6350_MASTER_SNOC_GC_MEM_NOC, 372 + .channels = 1, 373 + .buswidth = 8, 374 + .num_links = 1, 375 + .links = { SM6350_SLAVE_LLCC }, 376 + }; 377 + 378 + static struct qcom_icc_node qnm_snoc_sf = { 379 + .name = "qnm_snoc_sf", 380 + .id = SM6350_MASTER_SNOC_SF_MEM_NOC, 381 + .channels = 1, 382 + .buswidth = 16, 383 + .num_links = 1, 384 + .links = { SM6350_SLAVE_LLCC }, 385 + }; 386 + 387 + static struct qcom_icc_node qxm_gpu = { 388 + .name = "qxm_gpu", 389 + .id = SM6350_MASTER_GRAPHICS_3D, 390 + .channels = 2, 391 + .buswidth = 32, 392 + .num_links = 2, 393 + .links = { SM6350_SLAVE_LLCC, 394 + SM6350_SLAVE_GEM_NOC_SNOC 395 + }, 396 + }; 397 + 398 + static struct qcom_icc_node llcc_mc = { 399 + .name = "llcc_mc", 400 + .id = SM6350_MASTER_LLCC, 401 + .channels = 2, 402 + .buswidth = 4, 403 + .num_links = 1, 404 + .links = { SM6350_SLAVE_EBI_CH0 }, 405 + }; 406 + 407 + static struct qcom_icc_node qhm_mnoc_cfg = { 408 + .name = "qhm_mnoc_cfg", 409 + .id = SM6350_MASTER_CNOC_MNOC_CFG, 410 + .channels = 1, 411 + .buswidth = 4, 412 + .num_links = 1, 413 + .links = { SM6350_SLAVE_SERVICE_MNOC }, 414 + }; 415 + 416 + static struct qcom_icc_node qnm_video0 = { 417 + .name = "qnm_video0", 418 + .id = SM6350_MASTER_VIDEO_P0, 419 + .channels = 1, 420 + .buswidth = 32, 421 + .num_links = 1, 422 + .links = { SM6350_SLAVE_MNOC_SF_MEM_NOC }, 423 + }; 424 + 425 + static struct qcom_icc_node qnm_video_cvp = { 426 + .name = "qnm_video_cvp", 427 + .id = SM6350_MASTER_VIDEO_PROC, 428 + .channels = 1, 429 + .buswidth = 8, 430 + .num_links = 1, 431 + .links = { SM6350_SLAVE_MNOC_SF_MEM_NOC }, 432 + }; 433 + 434 + static struct qcom_icc_node qxm_camnoc_hf = { 435 + .name = "qxm_camnoc_hf", 436 + .id = SM6350_MASTER_CAMNOC_HF, 437 + .channels = 2, 438 + .buswidth = 32, 439 + .num_links = 1, 440 + .links = { SM6350_SLAVE_MNOC_HF_MEM_NOC }, 441 + }; 442 + 443 + static struct qcom_icc_node qxm_camnoc_icp = { 444 + .name = "qxm_camnoc_icp", 445 + .id = SM6350_MASTER_CAMNOC_ICP, 446 + .channels = 1, 447 + .buswidth = 8, 448 + .num_links = 1, 449 + .links = { SM6350_SLAVE_MNOC_SF_MEM_NOC }, 450 + }; 451 + 452 + static struct qcom_icc_node qxm_camnoc_sf = { 453 + .name = "qxm_camnoc_sf", 454 + .id = SM6350_MASTER_CAMNOC_SF, 455 + .channels = 1, 456 + .buswidth = 32, 457 + .num_links = 1, 458 + .links = { SM6350_SLAVE_MNOC_SF_MEM_NOC }, 459 + }; 460 + 461 + static struct qcom_icc_node qxm_mdp0 = { 462 + .name = "qxm_mdp0", 463 + .id = SM6350_MASTER_MDP_PORT0, 464 + .channels = 1, 465 + .buswidth = 32, 466 + .num_links = 1, 467 + .links = { SM6350_SLAVE_MNOC_HF_MEM_NOC }, 468 + }; 469 + 470 + static struct qcom_icc_node amm_npu_sys = { 471 + .name = "amm_npu_sys", 472 + .id = SM6350_MASTER_NPU_SYS, 473 + .channels = 2, 474 + .buswidth = 32, 475 + .num_links = 1, 476 + .links = { SM6350_SLAVE_NPU_COMPUTE_NOC }, 477 + }; 478 + 479 + static struct qcom_icc_node qhm_npu_cfg = { 480 + .name = "qhm_npu_cfg", 481 + .id = SM6350_MASTER_NPU_NOC_CFG, 482 + .channels = 1, 483 + .buswidth = 4, 484 + .num_links = 8, 485 + .links = { SM6350_SLAVE_SERVICE_NPU_NOC, 486 + SM6350_SLAVE_ISENSE_CFG, 487 + SM6350_SLAVE_NPU_LLM_CFG, 488 + SM6350_SLAVE_NPU_INT_DMA_BWMON_CFG, 489 + SM6350_SLAVE_NPU_CP, 490 + SM6350_SLAVE_NPU_TCM, 491 + SM6350_SLAVE_NPU_CAL_DP0, 492 + SM6350_SLAVE_NPU_DPM 493 + }, 494 + }; 495 + 496 + static struct qcom_icc_node qhm_snoc_cfg = { 497 + .name = "qhm_snoc_cfg", 498 + .id = SM6350_MASTER_SNOC_CFG, 499 + .channels = 1, 500 + .buswidth = 4, 501 + .num_links = 1, 502 + .links = { SM6350_SLAVE_SERVICE_SNOC }, 503 + }; 504 + 505 + static struct qcom_icc_node qnm_aggre1_noc = { 506 + .name = "qnm_aggre1_noc", 507 + .id = SM6350_A1NOC_SNOC_MAS, 508 + .channels = 1, 509 + .buswidth = 16, 510 + .num_links = 6, 511 + .links = { SM6350_SLAVE_SNOC_GEM_NOC_SF, 512 + SM6350_SLAVE_PIMEM, 513 + SM6350_SLAVE_OCIMEM, 514 + SM6350_SLAVE_APPSS, 515 + SM6350_SNOC_CNOC_SLV, 516 + SM6350_SLAVE_QDSS_STM 517 + }, 518 + }; 519 + 520 + static struct qcom_icc_node qnm_aggre2_noc = { 521 + .name = "qnm_aggre2_noc", 522 + .id = SM6350_A2NOC_SNOC_MAS, 523 + .channels = 1, 524 + .buswidth = 16, 525 + .num_links = 7, 526 + .links = { SM6350_SLAVE_SNOC_GEM_NOC_SF, 527 + SM6350_SLAVE_PIMEM, 528 + SM6350_SLAVE_OCIMEM, 529 + SM6350_SLAVE_APPSS, 530 + SM6350_SNOC_CNOC_SLV, 531 + SM6350_SLAVE_TCU, 532 + SM6350_SLAVE_QDSS_STM 533 + }, 534 + }; 535 + 536 + static struct qcom_icc_node qnm_gemnoc = { 537 + .name = "qnm_gemnoc", 538 + .id = SM6350_MASTER_GEM_NOC_SNOC, 539 + .channels = 1, 540 + .buswidth = 8, 541 + .num_links = 6, 542 + .links = { SM6350_SLAVE_PIMEM, 543 + SM6350_SLAVE_OCIMEM, 544 + SM6350_SLAVE_APPSS, 545 + SM6350_SNOC_CNOC_SLV, 546 + SM6350_SLAVE_TCU, 547 + SM6350_SLAVE_QDSS_STM 548 + }, 549 + }; 550 + 551 + static struct qcom_icc_node qxm_pimem = { 552 + .name = "qxm_pimem", 553 + .id = SM6350_MASTER_PIMEM, 554 + .channels = 1, 555 + .buswidth = 8, 556 + .num_links = 2, 557 + .links = { SM6350_SLAVE_SNOC_GEM_NOC_GC, 558 + SM6350_SLAVE_OCIMEM 559 + }, 560 + }; 561 + 562 + static struct qcom_icc_node xm_gic = { 563 + .name = "xm_gic", 564 + .id = SM6350_MASTER_GIC, 565 + .channels = 1, 566 + .buswidth = 8, 567 + .num_links = 1, 568 + .links = { SM6350_SLAVE_SNOC_GEM_NOC_GC }, 569 + }; 570 + 571 + static struct qcom_icc_node qns_a1noc_snoc = { 572 + .name = "qns_a1noc_snoc", 573 + .id = SM6350_A1NOC_SNOC_SLV, 574 + .channels = 1, 575 + .buswidth = 16, 576 + .num_links = 1, 577 + .links = { SM6350_A1NOC_SNOC_MAS }, 578 + }; 579 + 580 + static struct qcom_icc_node srvc_aggre1_noc = { 581 + .name = "srvc_aggre1_noc", 582 + .id = SM6350_SLAVE_SERVICE_A1NOC, 583 + .channels = 1, 584 + .buswidth = 4, 585 + }; 586 + 587 + static struct qcom_icc_node qns_a2noc_snoc = { 588 + .name = "qns_a2noc_snoc", 589 + .id = SM6350_A2NOC_SNOC_SLV, 590 + .channels = 1, 591 + .buswidth = 16, 592 + .num_links = 1, 593 + .links = { SM6350_A2NOC_SNOC_MAS }, 594 + }; 595 + 596 + static struct qcom_icc_node srvc_aggre2_noc = { 597 + .name = "srvc_aggre2_noc", 598 + .id = SM6350_SLAVE_SERVICE_A2NOC, 599 + .channels = 1, 600 + .buswidth = 4, 601 + }; 602 + 603 + static struct qcom_icc_node qns_camnoc_uncomp = { 604 + .name = "qns_camnoc_uncomp", 605 + .id = SM6350_SLAVE_CAMNOC_UNCOMP, 606 + .channels = 1, 607 + .buswidth = 32, 608 + }; 609 + 610 + static struct qcom_icc_node qup0_core_slave = { 611 + .name = "qup0_core_slave", 612 + .id = SM6350_SLAVE_QUP_CORE_0, 613 + .channels = 1, 614 + .buswidth = 4, 615 + }; 616 + 617 + static struct qcom_icc_node qup1_core_slave = { 618 + .name = "qup1_core_slave", 619 + .id = SM6350_SLAVE_QUP_CORE_1, 620 + .channels = 1, 621 + .buswidth = 4, 622 + }; 623 + 624 + static struct qcom_icc_node qns_cdsp_gemnoc = { 625 + .name = "qns_cdsp_gemnoc", 626 + .id = SM6350_SLAVE_CDSP_GEM_NOC, 627 + .channels = 1, 628 + .buswidth = 32, 629 + .num_links = 1, 630 + .links = { SM6350_MASTER_COMPUTE_NOC }, 631 + }; 632 + 633 + static struct qcom_icc_node qhs_a1_noc_cfg = { 634 + .name = "qhs_a1_noc_cfg", 635 + .id = SM6350_SLAVE_A1NOC_CFG, 636 + .channels = 1, 637 + .buswidth = 4, 638 + .num_links = 1, 639 + .links = { SM6350_MASTER_A1NOC_CFG }, 640 + }; 641 + 642 + static struct qcom_icc_node qhs_a2_noc_cfg = { 643 + .name = "qhs_a2_noc_cfg", 644 + .id = SM6350_SLAVE_A2NOC_CFG, 645 + .channels = 1, 646 + .buswidth = 4, 647 + .num_links = 1, 648 + .links = { SM6350_MASTER_A2NOC_CFG }, 649 + }; 650 + 651 + static struct qcom_icc_node qhs_ahb2phy0 = { 652 + .name = "qhs_ahb2phy0", 653 + .id = SM6350_SLAVE_AHB2PHY, 654 + .channels = 1, 655 + .buswidth = 4, 656 + }; 657 + 658 + static struct qcom_icc_node qhs_ahb2phy2 = { 659 + .name = "qhs_ahb2phy2", 660 + .id = SM6350_SLAVE_AHB2PHY_2, 661 + .channels = 1, 662 + .buswidth = 4, 663 + }; 664 + 665 + static struct qcom_icc_node qhs_aoss = { 666 + .name = "qhs_aoss", 667 + .id = SM6350_SLAVE_AOSS, 668 + .channels = 1, 669 + .buswidth = 4, 670 + }; 671 + 672 + static struct qcom_icc_node qhs_boot_rom = { 673 + .name = "qhs_boot_rom", 674 + .id = SM6350_SLAVE_BOOT_ROM, 675 + .channels = 1, 676 + .buswidth = 4, 677 + }; 678 + 679 + static struct qcom_icc_node qhs_camera_cfg = { 680 + .name = "qhs_camera_cfg", 681 + .id = SM6350_SLAVE_CAMERA_CFG, 682 + .channels = 1, 683 + .buswidth = 4, 684 + }; 685 + 686 + static struct qcom_icc_node qhs_camera_nrt_thrott_cfg = { 687 + .name = "qhs_camera_nrt_thrott_cfg", 688 + .id = SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG, 689 + .channels = 1, 690 + .buswidth = 4, 691 + }; 692 + 693 + static struct qcom_icc_node qhs_camera_rt_throttle_cfg = { 694 + .name = "qhs_camera_rt_throttle_cfg", 695 + .id = SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG, 696 + .channels = 1, 697 + .buswidth = 4, 698 + }; 699 + 700 + static struct qcom_icc_node qhs_clk_ctl = { 701 + .name = "qhs_clk_ctl", 702 + .id = SM6350_SLAVE_CLK_CTL, 703 + .channels = 1, 704 + .buswidth = 4, 705 + }; 706 + 707 + static struct qcom_icc_node qhs_cpr_cx = { 708 + .name = "qhs_cpr_cx", 709 + .id = SM6350_SLAVE_RBCPR_CX_CFG, 710 + .channels = 1, 711 + .buswidth = 4, 712 + }; 713 + 714 + static struct qcom_icc_node qhs_cpr_mx = { 715 + .name = "qhs_cpr_mx", 716 + .id = SM6350_SLAVE_RBCPR_MX_CFG, 717 + .channels = 1, 718 + .buswidth = 4, 719 + }; 720 + 721 + static struct qcom_icc_node qhs_crypto0_cfg = { 722 + .name = "qhs_crypto0_cfg", 723 + .id = SM6350_SLAVE_CRYPTO_0_CFG, 724 + .channels = 1, 725 + .buswidth = 4, 726 + }; 727 + 728 + static struct qcom_icc_node qhs_dcc_cfg = { 729 + .name = "qhs_dcc_cfg", 730 + .id = SM6350_SLAVE_DCC_CFG, 731 + .channels = 1, 732 + .buswidth = 4, 733 + }; 734 + 735 + static struct qcom_icc_node qhs_ddrss_cfg = { 736 + .name = "qhs_ddrss_cfg", 737 + .id = SM6350_SLAVE_CNOC_DDRSS, 738 + .channels = 1, 739 + .buswidth = 4, 740 + .num_links = 1, 741 + .links = { SM6350_MASTER_CNOC_DC_NOC }, 742 + }; 743 + 744 + static struct qcom_icc_node qhs_display_cfg = { 745 + .name = "qhs_display_cfg", 746 + .id = SM6350_SLAVE_DISPLAY_CFG, 747 + .channels = 1, 748 + .buswidth = 4, 749 + }; 750 + 751 + static struct qcom_icc_node qhs_display_throttle_cfg = { 752 + .name = "qhs_display_throttle_cfg", 753 + .id = SM6350_SLAVE_DISPLAY_THROTTLE_CFG, 754 + .channels = 1, 755 + .buswidth = 4, 756 + }; 757 + 758 + static struct qcom_icc_node qhs_emmc_cfg = { 759 + .name = "qhs_emmc_cfg", 760 + .id = SM6350_SLAVE_EMMC_CFG, 761 + .channels = 1, 762 + .buswidth = 4, 763 + }; 764 + 765 + static struct qcom_icc_node qhs_glm = { 766 + .name = "qhs_glm", 767 + .id = SM6350_SLAVE_GLM, 768 + .channels = 1, 769 + .buswidth = 4, 770 + }; 771 + 772 + static struct qcom_icc_node qhs_gpuss_cfg = { 773 + .name = "qhs_gpuss_cfg", 774 + .id = SM6350_SLAVE_GRAPHICS_3D_CFG, 775 + .channels = 1, 776 + .buswidth = 8, 777 + }; 778 + 779 + static struct qcom_icc_node qhs_imem_cfg = { 780 + .name = "qhs_imem_cfg", 781 + .id = SM6350_SLAVE_IMEM_CFG, 782 + .channels = 1, 783 + .buswidth = 4, 784 + }; 785 + 786 + static struct qcom_icc_node qhs_ipa = { 787 + .name = "qhs_ipa", 788 + .id = SM6350_SLAVE_IPA_CFG, 789 + .channels = 1, 790 + .buswidth = 4, 791 + }; 792 + 793 + static struct qcom_icc_node qhs_mnoc_cfg = { 794 + .name = "qhs_mnoc_cfg", 795 + .id = SM6350_SLAVE_CNOC_MNOC_CFG, 796 + .channels = 1, 797 + .buswidth = 4, 798 + .num_links = 1, 799 + .links = { SM6350_MASTER_CNOC_MNOC_CFG }, 800 + }; 801 + 802 + static struct qcom_icc_node qhs_mss_cfg = { 803 + .name = "qhs_mss_cfg", 804 + .id = SM6350_SLAVE_CNOC_MSS, 805 + .channels = 1, 806 + .buswidth = 4, 807 + }; 808 + 809 + static struct qcom_icc_node qhs_npu_cfg = { 810 + .name = "qhs_npu_cfg", 811 + .id = SM6350_SLAVE_NPU_CFG, 812 + .channels = 1, 813 + .buswidth = 4, 814 + .num_links = 1, 815 + .links = { SM6350_MASTER_NPU_NOC_CFG }, 816 + }; 817 + 818 + static struct qcom_icc_node qhs_pdm = { 819 + .name = "qhs_pdm", 820 + .id = SM6350_SLAVE_PDM, 821 + .channels = 1, 822 + .buswidth = 4, 823 + }; 824 + 825 + static struct qcom_icc_node qhs_pimem_cfg = { 826 + .name = "qhs_pimem_cfg", 827 + .id = SM6350_SLAVE_PIMEM_CFG, 828 + .channels = 1, 829 + .buswidth = 4, 830 + }; 831 + 832 + static struct qcom_icc_node qhs_prng = { 833 + .name = "qhs_prng", 834 + .id = SM6350_SLAVE_PRNG, 835 + .channels = 1, 836 + .buswidth = 4, 837 + }; 838 + 839 + static struct qcom_icc_node qhs_qdss_cfg = { 840 + .name = "qhs_qdss_cfg", 841 + .id = SM6350_SLAVE_QDSS_CFG, 842 + .channels = 1, 843 + .buswidth = 4, 844 + }; 845 + 846 + static struct qcom_icc_node qhs_qm_cfg = { 847 + .name = "qhs_qm_cfg", 848 + .id = SM6350_SLAVE_QM_CFG, 849 + .channels = 1, 850 + .buswidth = 4, 851 + }; 852 + 853 + static struct qcom_icc_node qhs_qm_mpu_cfg = { 854 + .name = "qhs_qm_mpu_cfg", 855 + .id = SM6350_SLAVE_QM_MPU_CFG, 856 + .channels = 1, 857 + .buswidth = 4, 858 + }; 859 + 860 + static struct qcom_icc_node qhs_qup0 = { 861 + .name = "qhs_qup0", 862 + .id = SM6350_SLAVE_QUP_0, 863 + .channels = 1, 864 + .buswidth = 4, 865 + }; 866 + 867 + static struct qcom_icc_node qhs_qup1 = { 868 + .name = "qhs_qup1", 869 + .id = SM6350_SLAVE_QUP_1, 870 + .channels = 1, 871 + .buswidth = 4, 872 + }; 873 + 874 + static struct qcom_icc_node qhs_sdc2 = { 875 + .name = "qhs_sdc2", 876 + .id = SM6350_SLAVE_SDCC_2, 877 + .channels = 1, 878 + .buswidth = 4, 879 + }; 880 + 881 + static struct qcom_icc_node qhs_security = { 882 + .name = "qhs_security", 883 + .id = SM6350_SLAVE_SECURITY, 884 + .channels = 1, 885 + .buswidth = 4, 886 + }; 887 + 888 + static struct qcom_icc_node qhs_snoc_cfg = { 889 + .name = "qhs_snoc_cfg", 890 + .id = SM6350_SLAVE_SNOC_CFG, 891 + .channels = 1, 892 + .buswidth = 4, 893 + .num_links = 1, 894 + .links = { SM6350_MASTER_SNOC_CFG }, 895 + }; 896 + 897 + static struct qcom_icc_node qhs_tcsr = { 898 + .name = "qhs_tcsr", 899 + .id = SM6350_SLAVE_TCSR, 900 + .channels = 1, 901 + .buswidth = 4, 902 + }; 903 + 904 + static struct qcom_icc_node qhs_ufs_mem_cfg = { 905 + .name = "qhs_ufs_mem_cfg", 906 + .id = SM6350_SLAVE_UFS_MEM_CFG, 907 + .channels = 1, 908 + .buswidth = 4, 909 + }; 910 + 911 + static struct qcom_icc_node qhs_usb3_0 = { 912 + .name = "qhs_usb3_0", 913 + .id = SM6350_SLAVE_USB3, 914 + .channels = 1, 915 + .buswidth = 4, 916 + }; 917 + 918 + static struct qcom_icc_node qhs_venus_cfg = { 919 + .name = "qhs_venus_cfg", 920 + .id = SM6350_SLAVE_VENUS_CFG, 921 + .channels = 1, 922 + .buswidth = 4, 923 + }; 924 + 925 + static struct qcom_icc_node qhs_venus_throttle_cfg = { 926 + .name = "qhs_venus_throttle_cfg", 927 + .id = SM6350_SLAVE_VENUS_THROTTLE_CFG, 928 + .channels = 1, 929 + .buswidth = 4, 930 + }; 931 + 932 + static struct qcom_icc_node qhs_vsense_ctrl_cfg = { 933 + .name = "qhs_vsense_ctrl_cfg", 934 + .id = SM6350_SLAVE_VSENSE_CTRL_CFG, 935 + .channels = 1, 936 + .buswidth = 4, 937 + }; 938 + 939 + static struct qcom_icc_node srvc_cnoc = { 940 + .name = "srvc_cnoc", 941 + .id = SM6350_SLAVE_SERVICE_CNOC, 942 + .channels = 1, 943 + .buswidth = 4, 944 + }; 945 + 946 + static struct qcom_icc_node qhs_gemnoc = { 947 + .name = "qhs_gemnoc", 948 + .id = SM6350_SLAVE_GEM_NOC_CFG, 949 + .channels = 1, 950 + .buswidth = 4, 951 + .num_links = 1, 952 + .links = { SM6350_MASTER_GEM_NOC_CFG }, 953 + }; 954 + 955 + static struct qcom_icc_node qhs_llcc = { 956 + .name = "qhs_llcc", 957 + .id = SM6350_SLAVE_LLCC_CFG, 958 + .channels = 1, 959 + .buswidth = 4, 960 + }; 961 + 962 + static struct qcom_icc_node qhs_mcdma_ms_mpu_cfg = { 963 + .name = "qhs_mcdma_ms_mpu_cfg", 964 + .id = SM6350_SLAVE_MCDMA_MS_MPU_CFG, 965 + .channels = 1, 966 + .buswidth = 4, 967 + }; 968 + 969 + static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = { 970 + .name = "qhs_mdsp_ms_mpu_cfg", 971 + .id = SM6350_SLAVE_MSS_PROC_MS_MPU_CFG, 972 + .channels = 1, 973 + .buswidth = 4, 974 + }; 975 + 976 + static struct qcom_icc_node qns_gem_noc_snoc = { 977 + .name = "qns_gem_noc_snoc", 978 + .id = SM6350_SLAVE_GEM_NOC_SNOC, 979 + .channels = 1, 980 + .buswidth = 8, 981 + .num_links = 1, 982 + .links = { SM6350_MASTER_GEM_NOC_SNOC }, 983 + }; 984 + 985 + static struct qcom_icc_node qns_llcc = { 986 + .name = "qns_llcc", 987 + .id = SM6350_SLAVE_LLCC, 988 + .channels = 1, 989 + .buswidth = 16, 990 + .num_links = 1, 991 + .links = { SM6350_MASTER_LLCC }, 992 + }; 993 + 994 + static struct qcom_icc_node srvc_gemnoc = { 995 + .name = "srvc_gemnoc", 996 + .id = SM6350_SLAVE_SERVICE_GEM_NOC, 997 + .channels = 1, 998 + .buswidth = 4, 999 + }; 1000 + 1001 + static struct qcom_icc_node ebi = { 1002 + .name = "ebi", 1003 + .id = SM6350_SLAVE_EBI_CH0, 1004 + .channels = 2, 1005 + .buswidth = 4, 1006 + }; 1007 + 1008 + static struct qcom_icc_node qns_mem_noc_hf = { 1009 + .name = "qns_mem_noc_hf", 1010 + .id = SM6350_SLAVE_MNOC_HF_MEM_NOC, 1011 + .channels = 1, 1012 + .buswidth = 32, 1013 + .num_links = 1, 1014 + .links = { SM6350_MASTER_MNOC_HF_MEM_NOC }, 1015 + }; 1016 + 1017 + static struct qcom_icc_node qns_mem_noc_sf = { 1018 + .name = "qns_mem_noc_sf", 1019 + .id = SM6350_SLAVE_MNOC_SF_MEM_NOC, 1020 + .channels = 1, 1021 + .buswidth = 32, 1022 + .num_links = 1, 1023 + .links = { SM6350_MASTER_MNOC_SF_MEM_NOC }, 1024 + }; 1025 + 1026 + static struct qcom_icc_node srvc_mnoc = { 1027 + .name = "srvc_mnoc", 1028 + .id = SM6350_SLAVE_SERVICE_MNOC, 1029 + .channels = 1, 1030 + .buswidth = 4, 1031 + }; 1032 + 1033 + static struct qcom_icc_node qhs_cal_dp0 = { 1034 + .name = "qhs_cal_dp0", 1035 + .id = SM6350_SLAVE_NPU_CAL_DP0, 1036 + .channels = 1, 1037 + .buswidth = 4, 1038 + }; 1039 + 1040 + static struct qcom_icc_node qhs_cp = { 1041 + .name = "qhs_cp", 1042 + .id = SM6350_SLAVE_NPU_CP, 1043 + .channels = 1, 1044 + .buswidth = 4, 1045 + }; 1046 + 1047 + static struct qcom_icc_node qhs_dma_bwmon = { 1048 + .name = "qhs_dma_bwmon", 1049 + .id = SM6350_SLAVE_NPU_INT_DMA_BWMON_CFG, 1050 + .channels = 1, 1051 + .buswidth = 4, 1052 + }; 1053 + 1054 + static struct qcom_icc_node qhs_dpm = { 1055 + .name = "qhs_dpm", 1056 + .id = SM6350_SLAVE_NPU_DPM, 1057 + .channels = 1, 1058 + .buswidth = 4, 1059 + }; 1060 + 1061 + static struct qcom_icc_node qhs_isense = { 1062 + .name = "qhs_isense", 1063 + .id = SM6350_SLAVE_ISENSE_CFG, 1064 + .channels = 1, 1065 + .buswidth = 4, 1066 + }; 1067 + 1068 + static struct qcom_icc_node qhs_llm = { 1069 + .name = "qhs_llm", 1070 + .id = SM6350_SLAVE_NPU_LLM_CFG, 1071 + .channels = 1, 1072 + .buswidth = 4, 1073 + }; 1074 + 1075 + static struct qcom_icc_node qhs_tcm = { 1076 + .name = "qhs_tcm", 1077 + .id = SM6350_SLAVE_NPU_TCM, 1078 + .channels = 1, 1079 + .buswidth = 4, 1080 + }; 1081 + 1082 + static struct qcom_icc_node qns_npu_sys = { 1083 + .name = "qns_npu_sys", 1084 + .id = SM6350_SLAVE_NPU_COMPUTE_NOC, 1085 + .channels = 2, 1086 + .buswidth = 32, 1087 + }; 1088 + 1089 + static struct qcom_icc_node srvc_noc = { 1090 + .name = "srvc_noc", 1091 + .id = SM6350_SLAVE_SERVICE_NPU_NOC, 1092 + .channels = 1, 1093 + .buswidth = 4, 1094 + }; 1095 + 1096 + static struct qcom_icc_node qhs_apss = { 1097 + .name = "qhs_apss", 1098 + .id = SM6350_SLAVE_APPSS, 1099 + .channels = 1, 1100 + .buswidth = 8, 1101 + }; 1102 + 1103 + static struct qcom_icc_node qns_cnoc = { 1104 + .name = "qns_cnoc", 1105 + .id = SM6350_SNOC_CNOC_SLV, 1106 + .channels = 1, 1107 + .buswidth = 8, 1108 + .num_links = 1, 1109 + .links = { SM6350_SNOC_CNOC_MAS }, 1110 + }; 1111 + 1112 + static struct qcom_icc_node qns_gemnoc_gc = { 1113 + .name = "qns_gemnoc_gc", 1114 + .id = SM6350_SLAVE_SNOC_GEM_NOC_GC, 1115 + .channels = 1, 1116 + .buswidth = 8, 1117 + .num_links = 1, 1118 + .links = { SM6350_MASTER_SNOC_GC_MEM_NOC }, 1119 + }; 1120 + 1121 + static struct qcom_icc_node qns_gemnoc_sf = { 1122 + .name = "qns_gemnoc_sf", 1123 + .id = SM6350_SLAVE_SNOC_GEM_NOC_SF, 1124 + .channels = 1, 1125 + .buswidth = 16, 1126 + .num_links = 1, 1127 + .links = { SM6350_MASTER_SNOC_SF_MEM_NOC }, 1128 + }; 1129 + 1130 + static struct qcom_icc_node qxs_imem = { 1131 + .name = "qxs_imem", 1132 + .id = SM6350_SLAVE_OCIMEM, 1133 + .channels = 1, 1134 + .buswidth = 8, 1135 + }; 1136 + 1137 + static struct qcom_icc_node qxs_pimem = { 1138 + .name = "qxs_pimem", 1139 + .id = SM6350_SLAVE_PIMEM, 1140 + .channels = 1, 1141 + .buswidth = 8, 1142 + }; 1143 + 1144 + static struct qcom_icc_node srvc_snoc = { 1145 + .name = "srvc_snoc", 1146 + .id = SM6350_SLAVE_SERVICE_SNOC, 1147 + .channels = 1, 1148 + .buswidth = 4, 1149 + }; 1150 + 1151 + static struct qcom_icc_node xs_qdss_stm = { 1152 + .name = "xs_qdss_stm", 1153 + .id = SM6350_SLAVE_QDSS_STM, 1154 + .channels = 1, 1155 + .buswidth = 4, 1156 + }; 1157 + 1158 + static struct qcom_icc_node xs_sys_tcu_cfg = { 1159 + .name = "xs_sys_tcu_cfg", 1160 + .id = SM6350_SLAVE_TCU, 1161 + .channels = 1, 1162 + .buswidth = 8, 1163 + }; 145 1164 146 1165 DEFINE_QBCM(bcm_acv, "ACV", false, &ebi); 147 1166 DEFINE_QBCM(bcm_ce0, "CE0", false, &qxm_crypto);