1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 4 */ 5 6 #include <linux/device.h> 7 #include <linux/interconnect.h> 8 #include <linux/interconnect-provider.h> 9 #include <linux/module.h> 10 #include <linux/mod_devicetable.h> 11 #include <linux/platform_device.h> 12 13 #include <dt-bindings/interconnect/qcom,sdm845.h> 14 15 #include "bcm-voter.h" 16 #include "icc-rpmh.h" 17 #include "sdm845.h" 18 19 DEFINE_QNODE(qhm_a1noc_cfg, SDM845_MASTER_A1NOC_CFG, 1, 4, SDM845_SLAVE_SERVICE_A1NOC); 20 DEFINE_QNODE(qhm_qup1, SDM845_MASTER_BLSP_1, 1, 4, SDM845_SLAVE_A1NOC_SNOC); 21 DEFINE_QNODE(qhm_tsif, SDM845_MASTER_TSIF, 1, 4, SDM845_SLAVE_A1NOC_SNOC); 22 DEFINE_QNODE(xm_sdc2, SDM845_MASTER_SDCC_2, 1, 8, SDM845_SLAVE_A1NOC_SNOC); 23 DEFINE_QNODE(xm_sdc4, SDM845_MASTER_SDCC_4, 1, 8, SDM845_SLAVE_A1NOC_SNOC); 24 DEFINE_QNODE(xm_ufs_card, SDM845_MASTER_UFS_CARD, 1, 8, SDM845_SLAVE_A1NOC_SNOC); 25 DEFINE_QNODE(xm_ufs_mem, SDM845_MASTER_UFS_MEM, 1, 8, SDM845_SLAVE_A1NOC_SNOC); 26 DEFINE_QNODE(xm_pcie_0, SDM845_MASTER_PCIE_0, 1, 8, SDM845_SLAVE_ANOC_PCIE_A1NOC_SNOC); 27 DEFINE_QNODE(qhm_a2noc_cfg, SDM845_MASTER_A2NOC_CFG, 1, 4, SDM845_SLAVE_SERVICE_A2NOC); 28 DEFINE_QNODE(qhm_qdss_bam, SDM845_MASTER_QDSS_BAM, 1, 4, SDM845_SLAVE_A2NOC_SNOC); 29 DEFINE_QNODE(qhm_qup2, SDM845_MASTER_BLSP_2, 1, 4, SDM845_SLAVE_A2NOC_SNOC); 30 DEFINE_QNODE(qnm_cnoc, SDM845_MASTER_CNOC_A2NOC, 1, 8, SDM845_SLAVE_A2NOC_SNOC); 31 DEFINE_QNODE(qxm_crypto, SDM845_MASTER_CRYPTO, 1, 8, SDM845_SLAVE_A2NOC_SNOC); 32 DEFINE_QNODE(qxm_ipa, SDM845_MASTER_IPA, 1, 8, SDM845_SLAVE_A2NOC_SNOC); 33 DEFINE_QNODE(xm_pcie3_1, SDM845_MASTER_PCIE_1, 1, 8, SDM845_SLAVE_ANOC_PCIE_SNOC); 34 DEFINE_QNODE(xm_qdss_etr, SDM845_MASTER_QDSS_ETR, 1, 8, SDM845_SLAVE_A2NOC_SNOC); 35 DEFINE_QNODE(xm_usb3_0, SDM845_MASTER_USB3_0, 1, 8, SDM845_SLAVE_A2NOC_SNOC); 36 DEFINE_QNODE(xm_usb3_1, SDM845_MASTER_USB3_1, 1, 8, SDM845_SLAVE_A2NOC_SNOC); 37 DEFINE_QNODE(qxm_camnoc_hf0_uncomp, SDM845_MASTER_CAMNOC_HF0_UNCOMP, 1, 32, SDM845_SLAVE_CAMNOC_UNCOMP); 38 DEFINE_QNODE(qxm_camnoc_hf1_uncomp, SDM845_MASTER_CAMNOC_HF1_UNCOMP, 1, 32, SDM845_SLAVE_CAMNOC_UNCOMP); 39 DEFINE_QNODE(qxm_camnoc_sf_uncomp, SDM845_MASTER_CAMNOC_SF_UNCOMP, 1, 32, SDM845_SLAVE_CAMNOC_UNCOMP); 40 DEFINE_QNODE(qhm_spdm, SDM845_MASTER_SPDM, 1, 4, SDM845_SLAVE_CNOC_A2NOC); 41 DEFINE_QNODE(qhm_tic, SDM845_MASTER_TIC, 1, 4, SDM845_SLAVE_A1NOC_CFG, SDM845_SLAVE_A2NOC_CFG, SDM845_SLAVE_AOP, SDM845_SLAVE_AOSS, SDM845_SLAVE_CAMERA_CFG, SDM845_SLAVE_CLK_CTL, SDM845_SLAVE_CDSP_CFG, SDM845_SLAVE_RBCPR_CX_CFG, SDM845_SLAVE_CRYPTO_0_CFG, SDM845_SLAVE_DCC_CFG, SDM845_SLAVE_CNOC_DDRSS, SDM845_SLAVE_DISPLAY_CFG, SDM845_SLAVE_GLM, SDM845_SLAVE_GFX3D_CFG, SDM845_SLAVE_IMEM_CFG, SDM845_SLAVE_IPA_CFG, SDM845_SLAVE_CNOC_MNOC_CFG, SDM845_SLAVE_PCIE_0_CFG, SDM845_SLAVE_PCIE_1_CFG, SDM845_SLAVE_PDM, SDM845_SLAVE_SOUTH_PHY_CFG, SDM845_SLAVE_PIMEM_CFG, SDM845_SLAVE_PRNG, SDM845_SLAVE_QDSS_CFG, SDM845_SLAVE_BLSP_2, SDM845_SLAVE_BLSP_1, SDM845_SLAVE_SDCC_2, SDM845_SLAVE_SDCC_4, SDM845_SLAVE_SNOC_CFG, SDM845_SLAVE_SPDM_WRAPPER, SDM845_SLAVE_SPSS_CFG, SDM845_SLAVE_TCSR, SDM845_SLAVE_TLMM_NORTH, SDM845_SLAVE_TLMM_SOUTH, SDM845_SLAVE_TSIF, SDM845_SLAVE_UFS_CARD_CFG, SDM845_SLAVE_UFS_MEM_CFG, SDM845_SLAVE_USB3_0, SDM845_SLAVE_USB3_1, SDM845_SLAVE_VENUS_CFG, SDM845_SLAVE_VSENSE_CTRL_CFG, SDM845_SLAVE_CNOC_A2NOC, SDM845_SLAVE_SERVICE_CNOC); 42 DEFINE_QNODE(qnm_snoc, SDM845_MASTER_SNOC_CNOC, 1, 8, SDM845_SLAVE_A1NOC_CFG, SDM845_SLAVE_A2NOC_CFG, SDM845_SLAVE_AOP, SDM845_SLAVE_AOSS, SDM845_SLAVE_CAMERA_CFG, SDM845_SLAVE_CLK_CTL, SDM845_SLAVE_CDSP_CFG, SDM845_SLAVE_RBCPR_CX_CFG, SDM845_SLAVE_CRYPTO_0_CFG, SDM845_SLAVE_DCC_CFG, SDM845_SLAVE_CNOC_DDRSS, SDM845_SLAVE_DISPLAY_CFG, SDM845_SLAVE_GLM, SDM845_SLAVE_GFX3D_CFG, SDM845_SLAVE_IMEM_CFG, SDM845_SLAVE_IPA_CFG, SDM845_SLAVE_CNOC_MNOC_CFG, SDM845_SLAVE_PCIE_0_CFG, SDM845_SLAVE_PCIE_1_CFG, SDM845_SLAVE_PDM, SDM845_SLAVE_SOUTH_PHY_CFG, SDM845_SLAVE_PIMEM_CFG, SDM845_SLAVE_PRNG, SDM845_SLAVE_QDSS_CFG, SDM845_SLAVE_BLSP_2, SDM845_SLAVE_BLSP_1, SDM845_SLAVE_SDCC_2, SDM845_SLAVE_SDCC_4, SDM845_SLAVE_SNOC_CFG, SDM845_SLAVE_SPDM_WRAPPER, SDM845_SLAVE_SPSS_CFG, SDM845_SLAVE_TCSR, SDM845_SLAVE_TLMM_NORTH, SDM845_SLAVE_TLMM_SOUTH, SDM845_SLAVE_TSIF, SDM845_SLAVE_UFS_CARD_CFG, SDM845_SLAVE_UFS_MEM_CFG, SDM845_SLAVE_USB3_0, SDM845_SLAVE_USB3_1, SDM845_SLAVE_VENUS_CFG, SDM845_SLAVE_VSENSE_CTRL_CFG, SDM845_SLAVE_SERVICE_CNOC); 43 DEFINE_QNODE(xm_qdss_dap, SDM845_MASTER_QDSS_DAP, 1, 8, SDM845_SLAVE_A1NOC_CFG, SDM845_SLAVE_A2NOC_CFG, SDM845_SLAVE_AOP, SDM845_SLAVE_AOSS, SDM845_SLAVE_CAMERA_CFG, SDM845_SLAVE_CLK_CTL, SDM845_SLAVE_CDSP_CFG, SDM845_SLAVE_RBCPR_CX_CFG, SDM845_SLAVE_CRYPTO_0_CFG, SDM845_SLAVE_DCC_CFG, SDM845_SLAVE_CNOC_DDRSS, SDM845_SLAVE_DISPLAY_CFG, SDM845_SLAVE_GLM, SDM845_SLAVE_GFX3D_CFG, SDM845_SLAVE_IMEM_CFG, SDM845_SLAVE_IPA_CFG, SDM845_SLAVE_CNOC_MNOC_CFG, SDM845_SLAVE_PCIE_0_CFG, SDM845_SLAVE_PCIE_1_CFG, SDM845_SLAVE_PDM, SDM845_SLAVE_SOUTH_PHY_CFG, SDM845_SLAVE_PIMEM_CFG, SDM845_SLAVE_PRNG, SDM845_SLAVE_QDSS_CFG, SDM845_SLAVE_BLSP_2, SDM845_SLAVE_BLSP_1, SDM845_SLAVE_SDCC_2, SDM845_SLAVE_SDCC_4, SDM845_SLAVE_SNOC_CFG, SDM845_SLAVE_SPDM_WRAPPER, SDM845_SLAVE_SPSS_CFG, SDM845_SLAVE_TCSR, SDM845_SLAVE_TLMM_NORTH, SDM845_SLAVE_TLMM_SOUTH, SDM845_SLAVE_TSIF, SDM845_SLAVE_UFS_CARD_CFG, SDM845_SLAVE_UFS_MEM_CFG, SDM845_SLAVE_USB3_0, SDM845_SLAVE_USB3_1, SDM845_SLAVE_VENUS_CFG, SDM845_SLAVE_VSENSE_CTRL_CFG, SDM845_SLAVE_CNOC_A2NOC, SDM845_SLAVE_SERVICE_CNOC); 44 DEFINE_QNODE(qhm_cnoc, SDM845_MASTER_CNOC_DC_NOC, 1, 4, SDM845_SLAVE_LLCC_CFG, SDM845_SLAVE_MEM_NOC_CFG); 45 DEFINE_QNODE(acm_l3, SDM845_MASTER_APPSS_PROC, 1, 16, SDM845_SLAVE_GNOC_SNOC, SDM845_SLAVE_GNOC_MEM_NOC, SDM845_SLAVE_SERVICE_GNOC); 46 DEFINE_QNODE(pm_gnoc_cfg, SDM845_MASTER_GNOC_CFG, 1, 4, SDM845_SLAVE_SERVICE_GNOC); 47 DEFINE_QNODE(llcc_mc, SDM845_MASTER_LLCC, 4, 4, SDM845_SLAVE_EBI1); 48 DEFINE_QNODE(acm_tcu, SDM845_MASTER_TCU_0, 1, 8, SDM845_SLAVE_MEM_NOC_GNOC, SDM845_SLAVE_LLCC, SDM845_SLAVE_MEM_NOC_SNOC); 49 DEFINE_QNODE(qhm_memnoc_cfg, SDM845_MASTER_MEM_NOC_CFG, 1, 4, SDM845_SLAVE_MSS_PROC_MS_MPU_CFG, SDM845_SLAVE_SERVICE_MEM_NOC); 50 DEFINE_QNODE(qnm_apps, SDM845_MASTER_GNOC_MEM_NOC, 2, 32, SDM845_SLAVE_LLCC); 51 DEFINE_QNODE(qnm_mnoc_hf, SDM845_MASTER_MNOC_HF_MEM_NOC, 2, 32, SDM845_SLAVE_MEM_NOC_GNOC, SDM845_SLAVE_LLCC); 52 DEFINE_QNODE(qnm_mnoc_sf, SDM845_MASTER_MNOC_SF_MEM_NOC, 1, 32, SDM845_SLAVE_MEM_NOC_GNOC, SDM845_SLAVE_LLCC, SDM845_SLAVE_MEM_NOC_SNOC); 53 DEFINE_QNODE(qnm_snoc_gc, SDM845_MASTER_SNOC_GC_MEM_NOC, 1, 8, SDM845_SLAVE_LLCC); 54 DEFINE_QNODE(qnm_snoc_sf, SDM845_MASTER_SNOC_SF_MEM_NOC, 1, 16, SDM845_SLAVE_MEM_NOC_GNOC, SDM845_SLAVE_LLCC); 55 DEFINE_QNODE(qxm_gpu, SDM845_MASTER_GFX3D, 2, 32, SDM845_SLAVE_MEM_NOC_GNOC, SDM845_SLAVE_LLCC, SDM845_SLAVE_MEM_NOC_SNOC); 56 DEFINE_QNODE(qhm_mnoc_cfg, SDM845_MASTER_CNOC_MNOC_CFG, 1, 4, SDM845_SLAVE_SERVICE_MNOC); 57 DEFINE_QNODE(qxm_camnoc_hf0, SDM845_MASTER_CAMNOC_HF0, 1, 32, SDM845_SLAVE_MNOC_HF_MEM_NOC); 58 DEFINE_QNODE(qxm_camnoc_hf1, SDM845_MASTER_CAMNOC_HF1, 1, 32, SDM845_SLAVE_MNOC_HF_MEM_NOC); 59 DEFINE_QNODE(qxm_camnoc_sf, SDM845_MASTER_CAMNOC_SF, 1, 32, SDM845_SLAVE_MNOC_SF_MEM_NOC); 60 DEFINE_QNODE(qxm_mdp0, SDM845_MASTER_MDP0, 1, 32, SDM845_SLAVE_MNOC_HF_MEM_NOC); 61 DEFINE_QNODE(qxm_mdp1, SDM845_MASTER_MDP1, 1, 32, SDM845_SLAVE_MNOC_HF_MEM_NOC); 62 DEFINE_QNODE(qxm_rot, SDM845_MASTER_ROTATOR, 1, 32, SDM845_SLAVE_MNOC_SF_MEM_NOC); 63 DEFINE_QNODE(qxm_venus0, SDM845_MASTER_VIDEO_P0, 1, 32, SDM845_SLAVE_MNOC_SF_MEM_NOC); 64 DEFINE_QNODE(qxm_venus1, SDM845_MASTER_VIDEO_P1, 1, 32, SDM845_SLAVE_MNOC_SF_MEM_NOC); 65 DEFINE_QNODE(qxm_venus_arm9, SDM845_MASTER_VIDEO_PROC, 1, 8, SDM845_SLAVE_MNOC_SF_MEM_NOC); 66 DEFINE_QNODE(qhm_snoc_cfg, SDM845_MASTER_SNOC_CFG, 1, 4, SDM845_SLAVE_SERVICE_SNOC); 67 DEFINE_QNODE(qnm_aggre1_noc, SDM845_MASTER_A1NOC_SNOC, 1, 16, SDM845_SLAVE_APPSS, SDM845_SLAVE_SNOC_CNOC, SDM845_SLAVE_SNOC_MEM_NOC_SF, SDM845_SLAVE_IMEM, SDM845_SLAVE_PIMEM, SDM845_SLAVE_QDSS_STM); 68 DEFINE_QNODE(qnm_aggre2_noc, SDM845_MASTER_A2NOC_SNOC, 1, 16, SDM845_SLAVE_APPSS, SDM845_SLAVE_SNOC_CNOC, SDM845_SLAVE_SNOC_MEM_NOC_SF, SDM845_SLAVE_IMEM, SDM845_SLAVE_PCIE_0, SDM845_SLAVE_PCIE_1, SDM845_SLAVE_PIMEM, SDM845_SLAVE_QDSS_STM, SDM845_SLAVE_TCU); 69 DEFINE_QNODE(qnm_gladiator_sodv, SDM845_MASTER_GNOC_SNOC, 1, 8, SDM845_SLAVE_APPSS, SDM845_SLAVE_SNOC_CNOC, SDM845_SLAVE_IMEM, SDM845_SLAVE_PCIE_0, SDM845_SLAVE_PCIE_1, SDM845_SLAVE_PIMEM, SDM845_SLAVE_QDSS_STM, SDM845_SLAVE_TCU); 70 DEFINE_QNODE(qnm_memnoc, SDM845_MASTER_MEM_NOC_SNOC, 1, 8, SDM845_SLAVE_APPSS, SDM845_SLAVE_SNOC_CNOC, SDM845_SLAVE_IMEM, SDM845_SLAVE_PIMEM, SDM845_SLAVE_QDSS_STM); 71 DEFINE_QNODE(qnm_pcie_anoc, SDM845_MASTER_ANOC_PCIE_SNOC, 1, 16, SDM845_SLAVE_APPSS, SDM845_SLAVE_SNOC_CNOC, SDM845_SLAVE_SNOC_MEM_NOC_SF, SDM845_SLAVE_IMEM, SDM845_SLAVE_QDSS_STM); 72 DEFINE_QNODE(qxm_pimem, SDM845_MASTER_PIMEM, 1, 8, SDM845_SLAVE_SNOC_MEM_NOC_GC, SDM845_SLAVE_IMEM); 73 DEFINE_QNODE(xm_gic, SDM845_MASTER_GIC, 1, 8, SDM845_SLAVE_SNOC_MEM_NOC_GC, SDM845_SLAVE_IMEM); 74 DEFINE_QNODE(qns_a1noc_snoc, SDM845_SLAVE_A1NOC_SNOC, 1, 16, SDM845_MASTER_A1NOC_SNOC); 75 DEFINE_QNODE(srvc_aggre1_noc, SDM845_SLAVE_SERVICE_A1NOC, 1, 4, 0); 76 DEFINE_QNODE(qns_pcie_a1noc_snoc, SDM845_SLAVE_ANOC_PCIE_A1NOC_SNOC, 1, 16, SDM845_MASTER_ANOC_PCIE_SNOC); 77 DEFINE_QNODE(qns_a2noc_snoc, SDM845_SLAVE_A2NOC_SNOC, 1, 16, SDM845_MASTER_A2NOC_SNOC); 78 DEFINE_QNODE(qns_pcie_snoc, SDM845_SLAVE_ANOC_PCIE_SNOC, 1, 16, SDM845_MASTER_ANOC_PCIE_SNOC); 79 DEFINE_QNODE(srvc_aggre2_noc, SDM845_SLAVE_SERVICE_A2NOC, 1, 4); 80 DEFINE_QNODE(qns_camnoc_uncomp, SDM845_SLAVE_CAMNOC_UNCOMP, 1, 32); 81 DEFINE_QNODE(qhs_a1_noc_cfg, SDM845_SLAVE_A1NOC_CFG, 1, 4, SDM845_MASTER_A1NOC_CFG); 82 DEFINE_QNODE(qhs_a2_noc_cfg, SDM845_SLAVE_A2NOC_CFG, 1, 4, SDM845_MASTER_A2NOC_CFG); 83 DEFINE_QNODE(qhs_aop, SDM845_SLAVE_AOP, 1, 4); 84 DEFINE_QNODE(qhs_aoss, SDM845_SLAVE_AOSS, 1, 4); 85 DEFINE_QNODE(qhs_camera_cfg, SDM845_SLAVE_CAMERA_CFG, 1, 4); 86 DEFINE_QNODE(qhs_clk_ctl, SDM845_SLAVE_CLK_CTL, 1, 4); 87 DEFINE_QNODE(qhs_compute_dsp_cfg, SDM845_SLAVE_CDSP_CFG, 1, 4); 88 DEFINE_QNODE(qhs_cpr_cx, SDM845_SLAVE_RBCPR_CX_CFG, 1, 4); 89 DEFINE_QNODE(qhs_crypto0_cfg, SDM845_SLAVE_CRYPTO_0_CFG, 1, 4); 90 DEFINE_QNODE(qhs_dcc_cfg, SDM845_SLAVE_DCC_CFG, 1, 4, SDM845_MASTER_CNOC_DC_NOC); 91 DEFINE_QNODE(qhs_ddrss_cfg, SDM845_SLAVE_CNOC_DDRSS, 1, 4); 92 DEFINE_QNODE(qhs_display_cfg, SDM845_SLAVE_DISPLAY_CFG, 1, 4); 93 DEFINE_QNODE(qhs_glm, SDM845_SLAVE_GLM, 1, 4); 94 DEFINE_QNODE(qhs_gpuss_cfg, SDM845_SLAVE_GFX3D_CFG, 1, 8); 95 DEFINE_QNODE(qhs_imem_cfg, SDM845_SLAVE_IMEM_CFG, 1, 4); 96 DEFINE_QNODE(qhs_ipa, SDM845_SLAVE_IPA_CFG, 1, 4); 97 DEFINE_QNODE(qhs_mnoc_cfg, SDM845_SLAVE_CNOC_MNOC_CFG, 1, 4, SDM845_MASTER_CNOC_MNOC_CFG); 98 DEFINE_QNODE(qhs_pcie0_cfg, SDM845_SLAVE_PCIE_0_CFG, 1, 4); 99 DEFINE_QNODE(qhs_pcie_gen3_cfg, SDM845_SLAVE_PCIE_1_CFG, 1, 4); 100 DEFINE_QNODE(qhs_pdm, SDM845_SLAVE_PDM, 1, 4); 101 DEFINE_QNODE(qhs_phy_refgen_south, SDM845_SLAVE_SOUTH_PHY_CFG, 1, 4); 102 DEFINE_QNODE(qhs_pimem_cfg, SDM845_SLAVE_PIMEM_CFG, 1, 4); 103 DEFINE_QNODE(qhs_prng, SDM845_SLAVE_PRNG, 1, 4); 104 DEFINE_QNODE(qhs_qdss_cfg, SDM845_SLAVE_QDSS_CFG, 1, 4); 105 DEFINE_QNODE(qhs_qupv3_north, SDM845_SLAVE_BLSP_2, 1, 4); 106 DEFINE_QNODE(qhs_qupv3_south, SDM845_SLAVE_BLSP_1, 1, 4); 107 DEFINE_QNODE(qhs_sdc2, SDM845_SLAVE_SDCC_2, 1, 4); 108 DEFINE_QNODE(qhs_sdc4, SDM845_SLAVE_SDCC_4, 1, 4); 109 DEFINE_QNODE(qhs_snoc_cfg, SDM845_SLAVE_SNOC_CFG, 1, 4, SDM845_MASTER_SNOC_CFG); 110 DEFINE_QNODE(qhs_spdm, SDM845_SLAVE_SPDM_WRAPPER, 1, 4); 111 DEFINE_QNODE(qhs_spss_cfg, SDM845_SLAVE_SPSS_CFG, 1, 4); 112 DEFINE_QNODE(qhs_tcsr, SDM845_SLAVE_TCSR, 1, 4); 113 DEFINE_QNODE(qhs_tlmm_north, SDM845_SLAVE_TLMM_NORTH, 1, 4); 114 DEFINE_QNODE(qhs_tlmm_south, SDM845_SLAVE_TLMM_SOUTH, 1, 4); 115 DEFINE_QNODE(qhs_tsif, SDM845_SLAVE_TSIF, 1, 4); 116 DEFINE_QNODE(qhs_ufs_card_cfg, SDM845_SLAVE_UFS_CARD_CFG, 1, 4); 117 DEFINE_QNODE(qhs_ufs_mem_cfg, SDM845_SLAVE_UFS_MEM_CFG, 1, 4); 118 DEFINE_QNODE(qhs_usb3_0, SDM845_SLAVE_USB3_0, 1, 4); 119 DEFINE_QNODE(qhs_usb3_1, SDM845_SLAVE_USB3_1, 1, 4); 120 DEFINE_QNODE(qhs_venus_cfg, SDM845_SLAVE_VENUS_CFG, 1, 4); 121 DEFINE_QNODE(qhs_vsense_ctrl_cfg, SDM845_SLAVE_VSENSE_CTRL_CFG, 1, 4); 122 DEFINE_QNODE(qns_cnoc_a2noc, SDM845_SLAVE_CNOC_A2NOC, 1, 8, SDM845_MASTER_CNOC_A2NOC); 123 DEFINE_QNODE(srvc_cnoc, SDM845_SLAVE_SERVICE_CNOC, 1, 4); 124 DEFINE_QNODE(qhs_llcc, SDM845_SLAVE_LLCC_CFG, 1, 4); 125 DEFINE_QNODE(qhs_memnoc, SDM845_SLAVE_MEM_NOC_CFG, 1, 4, SDM845_MASTER_MEM_NOC_CFG); 126 DEFINE_QNODE(qns_gladiator_sodv, SDM845_SLAVE_GNOC_SNOC, 1, 8, SDM845_MASTER_GNOC_SNOC); 127 DEFINE_QNODE(qns_gnoc_memnoc, SDM845_SLAVE_GNOC_MEM_NOC, 2, 32, SDM845_MASTER_GNOC_MEM_NOC); 128 DEFINE_QNODE(srvc_gnoc, SDM845_SLAVE_SERVICE_GNOC, 1, 4); 129 DEFINE_QNODE(ebi, SDM845_SLAVE_EBI1, 4, 4); 130 DEFINE_QNODE(qhs_mdsp_ms_mpu_cfg, SDM845_SLAVE_MSS_PROC_MS_MPU_CFG, 1, 4); 131 DEFINE_QNODE(qns_apps_io, SDM845_SLAVE_MEM_NOC_GNOC, 1, 32); 132 DEFINE_QNODE(qns_llcc, SDM845_SLAVE_LLCC, 4, 16, SDM845_MASTER_LLCC); 133 DEFINE_QNODE(qns_memnoc_snoc, SDM845_SLAVE_MEM_NOC_SNOC, 1, 8, SDM845_MASTER_MEM_NOC_SNOC); 134 DEFINE_QNODE(srvc_memnoc, SDM845_SLAVE_SERVICE_MEM_NOC, 1, 4); 135 DEFINE_QNODE(qns2_mem_noc, SDM845_SLAVE_MNOC_SF_MEM_NOC, 1, 32, SDM845_MASTER_MNOC_SF_MEM_NOC); 136 DEFINE_QNODE(qns_mem_noc_hf, SDM845_SLAVE_MNOC_HF_MEM_NOC, 2, 32, SDM845_MASTER_MNOC_HF_MEM_NOC); 137 DEFINE_QNODE(srvc_mnoc, SDM845_SLAVE_SERVICE_MNOC, 1, 4); 138 DEFINE_QNODE(qhs_apss, SDM845_SLAVE_APPSS, 1, 8); 139 DEFINE_QNODE(qns_cnoc, SDM845_SLAVE_SNOC_CNOC, 1, 8, SDM845_MASTER_SNOC_CNOC); 140 DEFINE_QNODE(qns_memnoc_gc, SDM845_SLAVE_SNOC_MEM_NOC_GC, 1, 8, SDM845_MASTER_SNOC_GC_MEM_NOC); 141 DEFINE_QNODE(qns_memnoc_sf, SDM845_SLAVE_SNOC_MEM_NOC_SF, 1, 16, SDM845_MASTER_SNOC_SF_MEM_NOC); 142 DEFINE_QNODE(qxs_imem, SDM845_SLAVE_IMEM, 1, 8); 143 DEFINE_QNODE(qxs_pcie, SDM845_SLAVE_PCIE_0, 1, 8); 144 DEFINE_QNODE(qxs_pcie_gen3, SDM845_SLAVE_PCIE_1, 1, 8); 145 DEFINE_QNODE(qxs_pimem, SDM845_SLAVE_PIMEM, 1, 8); 146 DEFINE_QNODE(srvc_snoc, SDM845_SLAVE_SERVICE_SNOC, 1, 4); 147 DEFINE_QNODE(xs_qdss_stm, SDM845_SLAVE_QDSS_STM, 1, 4); 148 DEFINE_QNODE(xs_sys_tcu_cfg, SDM845_SLAVE_TCU, 1, 8); 149 150 DEFINE_QBCM(bcm_acv, "ACV", false, &ebi); 151 DEFINE_QBCM(bcm_mc0, "MC0", true, &ebi); 152 DEFINE_QBCM(bcm_sh0, "SH0", true, &qns_llcc); 153 DEFINE_QBCM(bcm_mm0, "MM0", false, &qns_mem_noc_hf); 154 DEFINE_QBCM(bcm_sh1, "SH1", false, &qns_apps_io); 155 DEFINE_QBCM(bcm_mm1, "MM1", true, &qxm_camnoc_hf0_uncomp, &qxm_camnoc_hf1_uncomp, &qxm_camnoc_sf_uncomp, &qxm_camnoc_hf0, &qxm_camnoc_hf1, &qxm_mdp0, &qxm_mdp1); 156 DEFINE_QBCM(bcm_sh2, "SH2", false, &qns_memnoc_snoc); 157 DEFINE_QBCM(bcm_mm2, "MM2", false, &qns2_mem_noc); 158 DEFINE_QBCM(bcm_sh3, "SH3", false, &acm_tcu); 159 DEFINE_QBCM(bcm_mm3, "MM3", false, &qxm_camnoc_sf, &qxm_rot, &qxm_venus0, &qxm_venus1, &qxm_venus_arm9); 160 DEFINE_QBCM(bcm_sh5, "SH5", false, &qnm_apps); 161 DEFINE_QBCM(bcm_sn0, "SN0", true, &qns_memnoc_sf); 162 DEFINE_QBCM(bcm_ce0, "CE0", false, &qxm_crypto); 163 DEFINE_QBCM(bcm_cn0, "CN0", false, &qhm_spdm, &qhm_tic, &qnm_snoc, &xm_qdss_dap, &qhs_a1_noc_cfg, &qhs_a2_noc_cfg, &qhs_aop, &qhs_aoss, &qhs_camera_cfg, &qhs_clk_ctl, &qhs_compute_dsp_cfg, &qhs_cpr_cx, &qhs_crypto0_cfg, &qhs_dcc_cfg, &qhs_ddrss_cfg, &qhs_display_cfg, &qhs_glm, &qhs_gpuss_cfg, &qhs_imem_cfg, &qhs_ipa, &qhs_mnoc_cfg, &qhs_pcie0_cfg, &qhs_pcie_gen3_cfg, &qhs_pdm, &qhs_phy_refgen_south, &qhs_pimem_cfg, &qhs_prng, &qhs_qdss_cfg, &qhs_qupv3_north, &qhs_qupv3_south, &qhs_sdc2, &qhs_sdc4, &qhs_snoc_cfg, &qhs_spdm, &qhs_spss_cfg, &qhs_tcsr, &qhs_tlmm_north, &qhs_tlmm_south, &qhs_tsif, &qhs_ufs_card_cfg, &qhs_ufs_mem_cfg, &qhs_usb3_0, &qhs_usb3_1, &qhs_venus_cfg, &qhs_vsense_ctrl_cfg, &qns_cnoc_a2noc, &srvc_cnoc); 164 DEFINE_QBCM(bcm_qup0, "QUP0", false, &qhm_qup1, &qhm_qup2); 165 DEFINE_QBCM(bcm_sn1, "SN1", false, &qxs_imem); 166 DEFINE_QBCM(bcm_sn2, "SN2", false, &qns_memnoc_gc); 167 DEFINE_QBCM(bcm_sn3, "SN3", false, &qns_cnoc); 168 DEFINE_QBCM(bcm_sn4, "SN4", false, &qxm_pimem); 169 DEFINE_QBCM(bcm_sn5, "SN5", false, &xs_qdss_stm); 170 DEFINE_QBCM(bcm_sn6, "SN6", false, &qhs_apss, &srvc_snoc, &xs_sys_tcu_cfg); 171 DEFINE_QBCM(bcm_sn7, "SN7", false, &qxs_pcie); 172 DEFINE_QBCM(bcm_sn8, "SN8", false, &qxs_pcie_gen3); 173 DEFINE_QBCM(bcm_sn9, "SN9", false, &srvc_aggre1_noc, &qnm_aggre1_noc); 174 DEFINE_QBCM(bcm_sn11, "SN11", false, &srvc_aggre2_noc, &qnm_aggre2_noc); 175 DEFINE_QBCM(bcm_sn12, "SN12", false, &qnm_gladiator_sodv, &xm_gic); 176 DEFINE_QBCM(bcm_sn14, "SN14", false, &qnm_pcie_anoc); 177 DEFINE_QBCM(bcm_sn15, "SN15", false, &qnm_memnoc); 178 179 static struct qcom_icc_bcm * const aggre1_noc_bcms[] = { 180 &bcm_sn9, 181 &bcm_qup0, 182 }; 183 184 static struct qcom_icc_node * const aggre1_noc_nodes[] = { 185 [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg, 186 [MASTER_TSIF] = &qhm_tsif, 187 [MASTER_SDCC_2] = &xm_sdc2, 188 [MASTER_SDCC_4] = &xm_sdc4, 189 [MASTER_UFS_CARD] = &xm_ufs_card, 190 [MASTER_UFS_MEM] = &xm_ufs_mem, 191 [MASTER_PCIE_0] = &xm_pcie_0, 192 [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc, 193 [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc, 194 [SLAVE_ANOC_PCIE_A1NOC_SNOC] = &qns_pcie_a1noc_snoc, 195 [MASTER_QUP_1] = &qhm_qup1, 196 }; 197 198 static const struct qcom_icc_desc sdm845_aggre1_noc = { 199 .nodes = aggre1_noc_nodes, 200 .num_nodes = ARRAY_SIZE(aggre1_noc_nodes), 201 .bcms = aggre1_noc_bcms, 202 .num_bcms = ARRAY_SIZE(aggre1_noc_bcms), 203 }; 204 205 static struct qcom_icc_bcm * const aggre2_noc_bcms[] = { 206 &bcm_ce0, 207 &bcm_sn11, 208 &bcm_qup0, 209 }; 210 211 static struct qcom_icc_node * const aggre2_noc_nodes[] = { 212 [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg, 213 [MASTER_QDSS_BAM] = &qhm_qdss_bam, 214 [MASTER_CNOC_A2NOC] = &qnm_cnoc, 215 [MASTER_CRYPTO] = &qxm_crypto, 216 [MASTER_IPA] = &qxm_ipa, 217 [MASTER_PCIE_1] = &xm_pcie3_1, 218 [MASTER_QDSS_ETR] = &xm_qdss_etr, 219 [MASTER_USB3_0] = &xm_usb3_0, 220 [MASTER_USB3_1] = &xm_usb3_1, 221 [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc, 222 [SLAVE_ANOC_PCIE_SNOC] = &qns_pcie_snoc, 223 [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc, 224 [MASTER_QUP_2] = &qhm_qup2, 225 }; 226 227 static const struct qcom_icc_desc sdm845_aggre2_noc = { 228 .nodes = aggre2_noc_nodes, 229 .num_nodes = ARRAY_SIZE(aggre2_noc_nodes), 230 .bcms = aggre2_noc_bcms, 231 .num_bcms = ARRAY_SIZE(aggre2_noc_bcms), 232 }; 233 234 static struct qcom_icc_bcm * const config_noc_bcms[] = { 235 &bcm_cn0, 236 }; 237 238 static struct qcom_icc_node * const config_noc_nodes[] = { 239 [MASTER_SPDM] = &qhm_spdm, 240 [MASTER_TIC] = &qhm_tic, 241 [MASTER_SNOC_CNOC] = &qnm_snoc, 242 [MASTER_QDSS_DAP] = &xm_qdss_dap, 243 [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg, 244 [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg, 245 [SLAVE_AOP] = &qhs_aop, 246 [SLAVE_AOSS] = &qhs_aoss, 247 [SLAVE_CAMERA_CFG] = &qhs_camera_cfg, 248 [SLAVE_CLK_CTL] = &qhs_clk_ctl, 249 [SLAVE_CDSP_CFG] = &qhs_compute_dsp_cfg, 250 [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx, 251 [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg, 252 [SLAVE_DCC_CFG] = &qhs_dcc_cfg, 253 [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg, 254 [SLAVE_DISPLAY_CFG] = &qhs_display_cfg, 255 [SLAVE_GLM] = &qhs_glm, 256 [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg, 257 [SLAVE_IMEM_CFG] = &qhs_imem_cfg, 258 [SLAVE_IPA_CFG] = &qhs_ipa, 259 [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg, 260 [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg, 261 [SLAVE_PCIE_1_CFG] = &qhs_pcie_gen3_cfg, 262 [SLAVE_PDM] = &qhs_pdm, 263 [SLAVE_SOUTH_PHY_CFG] = &qhs_phy_refgen_south, 264 [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg, 265 [SLAVE_PRNG] = &qhs_prng, 266 [SLAVE_QDSS_CFG] = &qhs_qdss_cfg, 267 [SLAVE_BLSP_2] = &qhs_qupv3_north, 268 [SLAVE_BLSP_1] = &qhs_qupv3_south, 269 [SLAVE_SDCC_2] = &qhs_sdc2, 270 [SLAVE_SDCC_4] = &qhs_sdc4, 271 [SLAVE_SNOC_CFG] = &qhs_snoc_cfg, 272 [SLAVE_SPDM_WRAPPER] = &qhs_spdm, 273 [SLAVE_SPSS_CFG] = &qhs_spss_cfg, 274 [SLAVE_TCSR] = &qhs_tcsr, 275 [SLAVE_TLMM_NORTH] = &qhs_tlmm_north, 276 [SLAVE_TLMM_SOUTH] = &qhs_tlmm_south, 277 [SLAVE_TSIF] = &qhs_tsif, 278 [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg, 279 [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg, 280 [SLAVE_USB3_0] = &qhs_usb3_0, 281 [SLAVE_USB3_1] = &qhs_usb3_1, 282 [SLAVE_VENUS_CFG] = &qhs_venus_cfg, 283 [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg, 284 [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc, 285 [SLAVE_SERVICE_CNOC] = &srvc_cnoc, 286 }; 287 288 static const struct qcom_icc_desc sdm845_config_noc = { 289 .nodes = config_noc_nodes, 290 .num_nodes = ARRAY_SIZE(config_noc_nodes), 291 .bcms = config_noc_bcms, 292 .num_bcms = ARRAY_SIZE(config_noc_bcms), 293 }; 294 295 static struct qcom_icc_bcm * const dc_noc_bcms[] = { 296 }; 297 298 static struct qcom_icc_node * const dc_noc_nodes[] = { 299 [MASTER_CNOC_DC_NOC] = &qhm_cnoc, 300 [SLAVE_LLCC_CFG] = &qhs_llcc, 301 [SLAVE_MEM_NOC_CFG] = &qhs_memnoc, 302 }; 303 304 static const struct qcom_icc_desc sdm845_dc_noc = { 305 .nodes = dc_noc_nodes, 306 .num_nodes = ARRAY_SIZE(dc_noc_nodes), 307 .bcms = dc_noc_bcms, 308 .num_bcms = ARRAY_SIZE(dc_noc_bcms), 309 }; 310 311 static struct qcom_icc_bcm * const gladiator_noc_bcms[] = { 312 }; 313 314 static struct qcom_icc_node * const gladiator_noc_nodes[] = { 315 [MASTER_APPSS_PROC] = &acm_l3, 316 [MASTER_GNOC_CFG] = &pm_gnoc_cfg, 317 [SLAVE_GNOC_SNOC] = &qns_gladiator_sodv, 318 [SLAVE_GNOC_MEM_NOC] = &qns_gnoc_memnoc, 319 [SLAVE_SERVICE_GNOC] = &srvc_gnoc, 320 }; 321 322 static const struct qcom_icc_desc sdm845_gladiator_noc = { 323 .nodes = gladiator_noc_nodes, 324 .num_nodes = ARRAY_SIZE(gladiator_noc_nodes), 325 .bcms = gladiator_noc_bcms, 326 .num_bcms = ARRAY_SIZE(gladiator_noc_bcms), 327 }; 328 329 static struct qcom_icc_bcm * const mem_noc_bcms[] = { 330 &bcm_mc0, 331 &bcm_acv, 332 &bcm_sh0, 333 &bcm_sh1, 334 &bcm_sh2, 335 &bcm_sh3, 336 &bcm_sh5, 337 }; 338 339 static struct qcom_icc_node * const mem_noc_nodes[] = { 340 [MASTER_TCU_0] = &acm_tcu, 341 [MASTER_MEM_NOC_CFG] = &qhm_memnoc_cfg, 342 [MASTER_GNOC_MEM_NOC] = &qnm_apps, 343 [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf, 344 [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf, 345 [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc, 346 [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf, 347 [MASTER_GFX3D] = &qxm_gpu, 348 [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg, 349 [SLAVE_MEM_NOC_GNOC] = &qns_apps_io, 350 [SLAVE_LLCC] = &qns_llcc, 351 [SLAVE_MEM_NOC_SNOC] = &qns_memnoc_snoc, 352 [SLAVE_SERVICE_MEM_NOC] = &srvc_memnoc, 353 [MASTER_LLCC] = &llcc_mc, 354 [SLAVE_EBI1] = &ebi, 355 }; 356 357 static const struct qcom_icc_desc sdm845_mem_noc = { 358 .nodes = mem_noc_nodes, 359 .num_nodes = ARRAY_SIZE(mem_noc_nodes), 360 .bcms = mem_noc_bcms, 361 .num_bcms = ARRAY_SIZE(mem_noc_bcms), 362 }; 363 364 static struct qcom_icc_bcm * const mmss_noc_bcms[] = { 365 &bcm_mm0, 366 &bcm_mm1, 367 &bcm_mm2, 368 &bcm_mm3, 369 }; 370 371 static struct qcom_icc_node * const mmss_noc_nodes[] = { 372 [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg, 373 [MASTER_CAMNOC_HF0] = &qxm_camnoc_hf0, 374 [MASTER_CAMNOC_HF1] = &qxm_camnoc_hf1, 375 [MASTER_CAMNOC_SF] = &qxm_camnoc_sf, 376 [MASTER_MDP0] = &qxm_mdp0, 377 [MASTER_MDP1] = &qxm_mdp1, 378 [MASTER_ROTATOR] = &qxm_rot, 379 [MASTER_VIDEO_P0] = &qxm_venus0, 380 [MASTER_VIDEO_P1] = &qxm_venus1, 381 [MASTER_VIDEO_PROC] = &qxm_venus_arm9, 382 [SLAVE_MNOC_SF_MEM_NOC] = &qns2_mem_noc, 383 [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf, 384 [SLAVE_SERVICE_MNOC] = &srvc_mnoc, 385 [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp, 386 [MASTER_CAMNOC_HF1_UNCOMP] = &qxm_camnoc_hf1_uncomp, 387 [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp, 388 [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp, 389 }; 390 391 static const struct qcom_icc_desc sdm845_mmss_noc = { 392 .nodes = mmss_noc_nodes, 393 .num_nodes = ARRAY_SIZE(mmss_noc_nodes), 394 .bcms = mmss_noc_bcms, 395 .num_bcms = ARRAY_SIZE(mmss_noc_bcms), 396 }; 397 398 static struct qcom_icc_bcm * const system_noc_bcms[] = { 399 &bcm_sn0, 400 &bcm_sn1, 401 &bcm_sn2, 402 &bcm_sn3, 403 &bcm_sn4, 404 &bcm_sn5, 405 &bcm_sn6, 406 &bcm_sn7, 407 &bcm_sn8, 408 &bcm_sn9, 409 &bcm_sn11, 410 &bcm_sn12, 411 &bcm_sn14, 412 &bcm_sn15, 413 }; 414 415 static struct qcom_icc_node * const system_noc_nodes[] = { 416 [MASTER_SNOC_CFG] = &qhm_snoc_cfg, 417 [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc, 418 [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc, 419 [MASTER_GNOC_SNOC] = &qnm_gladiator_sodv, 420 [MASTER_MEM_NOC_SNOC] = &qnm_memnoc, 421 [MASTER_ANOC_PCIE_SNOC] = &qnm_pcie_anoc, 422 [MASTER_PIMEM] = &qxm_pimem, 423 [MASTER_GIC] = &xm_gic, 424 [SLAVE_APPSS] = &qhs_apss, 425 [SLAVE_SNOC_CNOC] = &qns_cnoc, 426 [SLAVE_SNOC_MEM_NOC_GC] = &qns_memnoc_gc, 427 [SLAVE_SNOC_MEM_NOC_SF] = &qns_memnoc_sf, 428 [SLAVE_IMEM] = &qxs_imem, 429 [SLAVE_PCIE_0] = &qxs_pcie, 430 [SLAVE_PCIE_1] = &qxs_pcie_gen3, 431 [SLAVE_PIMEM] = &qxs_pimem, 432 [SLAVE_SERVICE_SNOC] = &srvc_snoc, 433 [SLAVE_QDSS_STM] = &xs_qdss_stm, 434 [SLAVE_TCU] = &xs_sys_tcu_cfg, 435 }; 436 437 static const struct qcom_icc_desc sdm845_system_noc = { 438 .nodes = system_noc_nodes, 439 .num_nodes = ARRAY_SIZE(system_noc_nodes), 440 .bcms = system_noc_bcms, 441 .num_bcms = ARRAY_SIZE(system_noc_bcms), 442 }; 443 444 static const struct of_device_id qnoc_of_match[] = { 445 { .compatible = "qcom,sdm845-aggre1-noc", 446 .data = &sdm845_aggre1_noc}, 447 { .compatible = "qcom,sdm845-aggre2-noc", 448 .data = &sdm845_aggre2_noc}, 449 { .compatible = "qcom,sdm845-config-noc", 450 .data = &sdm845_config_noc}, 451 { .compatible = "qcom,sdm845-dc-noc", 452 .data = &sdm845_dc_noc}, 453 { .compatible = "qcom,sdm845-gladiator-noc", 454 .data = &sdm845_gladiator_noc}, 455 { .compatible = "qcom,sdm845-mem-noc", 456 .data = &sdm845_mem_noc}, 457 { .compatible = "qcom,sdm845-mmss-noc", 458 .data = &sdm845_mmss_noc}, 459 { .compatible = "qcom,sdm845-system-noc", 460 .data = &sdm845_system_noc}, 461 { } 462 }; 463 MODULE_DEVICE_TABLE(of, qnoc_of_match); 464 465 static struct platform_driver qnoc_driver = { 466 .probe = qcom_icc_rpmh_probe, 467 .remove = qcom_icc_rpmh_remove, 468 .driver = { 469 .name = "qnoc-sdm845", 470 .of_match_table = qnoc_of_match, 471 .sync_state = icc_sync_state, 472 }, 473 }; 474 module_platform_driver(qnoc_driver); 475 476 MODULE_AUTHOR("David Dai <daidavid1@codeaurora.org>"); 477 MODULE_DESCRIPTION("Qualcomm sdm845 NoC driver"); 478 MODULE_LICENSE("GPL v2"); 479