cliffs.c 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023-2024, Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. */
  6. #include <dt-bindings/interconnect/qcom,cliffs.h>
  7. #include <linux/device.h>
  8. #include <linux/interconnect.h>
  9. #include <linux/interconnect-provider.h>
  10. #include <linux/io.h>
  11. #include <linux/module.h>
  12. #include <linux/of_device.h>
  13. #include <linux/of_platform.h>
  14. #include <linux/platform_device.h>
  15. #include "icc-rpmh.h"
  16. #include "qnoc-qos.h"
  17. enum {
  18. VOTER_IDX_HLOS,
  19. VOTER_IDX_DISP,
  20. VOTER_IDX_CAM_IFE_0,
  21. VOTER_IDX_CAM_IFE_1,
  22. VOTER_IDX_CAM_IFE_2,
  23. VOTER_IDX_PCIE_CRM_HW_0,
  24. };
  25. static const struct regmap_config icc_regmap_config = {
  26. .reg_bits = 32,
  27. .reg_stride = 4,
  28. .val_bits = 32,
  29. };
  30. static struct qcom_icc_qosbox qhm_qspi_qos = {
  31. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  32. .num_ports = 1,
  33. .offsets = { 0xc000 },
  34. .config = &(struct qos_config) {
  35. .prio = 2,
  36. .urg_fwd = 0,
  37. .prio_fwd_disable = 1,
  38. },
  39. };
  40. static struct qcom_icc_node qhm_qspi = {
  41. .name = "qhm_qspi",
  42. .id = MASTER_QSPI_0,
  43. .channels = 1,
  44. .buswidth = 4,
  45. .noc_ops = &qcom_qnoc4_ops,
  46. .qosbox = &qhm_qspi_qos,
  47. .num_links = 1,
  48. .links = { SLAVE_A1NOC_SNOC },
  49. };
  50. static struct qcom_icc_qosbox qhm_qup0_qos = {
  51. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  52. .num_ports = 1,
  53. .offsets = { 0xd000 },
  54. .config = &(struct qos_config) {
  55. .prio = 2,
  56. .urg_fwd = 0,
  57. .prio_fwd_disable = 1,
  58. },
  59. };
  60. static struct qcom_icc_node qhm_qup0 = {
  61. .name = "qhm_qup0",
  62. .id = MASTER_QUP_0,
  63. .channels = 1,
  64. .buswidth = 4,
  65. .noc_ops = &qcom_qnoc4_ops,
  66. .qosbox = &qhm_qup0_qos,
  67. .num_links = 1,
  68. .links = { SLAVE_A1NOC_SNOC },
  69. };
  70. static struct qcom_icc_qosbox xm_sdc2_qos = {
  71. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  72. .num_ports = 1,
  73. .offsets = { 0x19000 },
  74. .config = &(struct qos_config) {
  75. .prio = 2,
  76. .urg_fwd = 0,
  77. .prio_fwd_disable = 1,
  78. },
  79. };
  80. static struct qcom_icc_node xm_sdc2 = {
  81. .name = "xm_sdc2",
  82. .id = MASTER_SDCC_2,
  83. .channels = 1,
  84. .buswidth = 8,
  85. .noc_ops = &qcom_qnoc4_ops,
  86. .qosbox = &xm_sdc2_qos,
  87. .num_links = 1,
  88. .links = { SLAVE_A1NOC_SNOC },
  89. };
  90. static struct qcom_icc_node xm_ufs_mem = {
  91. .name = "xm_ufs_mem",
  92. .id = MASTER_UFS_MEM,
  93. .channels = 1,
  94. .buswidth = 16,
  95. .noc_ops = &qcom_qnoc4_ops,
  96. .num_links = 1,
  97. .links = { SLAVE_A1NOC_SNOC },
  98. };
  99. static struct qcom_icc_qosbox xm_usb3_0_qos = {
  100. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  101. .num_ports = 1,
  102. .offsets = { 0x10000 },
  103. .config = &(struct qos_config) {
  104. .prio = 2,
  105. .urg_fwd = 0,
  106. .prio_fwd_disable = 1,
  107. },
  108. };
  109. static struct qcom_icc_node xm_usb3_0 = {
  110. .name = "xm_usb3_0",
  111. .id = MASTER_USB3_0,
  112. .channels = 1,
  113. .buswidth = 8,
  114. .noc_ops = &qcom_qnoc4_ops,
  115. .qosbox = &xm_usb3_0_qos,
  116. .num_links = 1,
  117. .links = { SLAVE_A1NOC_SNOC },
  118. };
  119. static struct qcom_icc_qosbox qhm_qdss_bam_qos = {
  120. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  121. .num_ports = 1,
  122. .offsets = { 0x12000 },
  123. .config = &(struct qos_config) {
  124. .prio = 2,
  125. .urg_fwd = 0,
  126. .prio_fwd_disable = 1,
  127. },
  128. };
  129. static struct qcom_icc_node qhm_qdss_bam = {
  130. .name = "qhm_qdss_bam",
  131. .id = MASTER_QDSS_BAM,
  132. .channels = 1,
  133. .buswidth = 4,
  134. .noc_ops = &qcom_qnoc4_ops,
  135. .qosbox = &qhm_qdss_bam_qos,
  136. .num_links = 1,
  137. .links = { SLAVE_A2NOC_SNOC },
  138. };
  139. static struct qcom_icc_qosbox qhm_qup1_qos = {
  140. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  141. .num_ports = 1,
  142. .offsets = { 0x13000 },
  143. .config = &(struct qos_config) {
  144. .prio = 2,
  145. .urg_fwd = 0,
  146. .prio_fwd_disable = 1,
  147. },
  148. };
  149. static struct qcom_icc_node qhm_qup1 = {
  150. .name = "qhm_qup1",
  151. .id = MASTER_QUP_1,
  152. .channels = 1,
  153. .buswidth = 4,
  154. .noc_ops = &qcom_qnoc4_ops,
  155. .qosbox = &qhm_qup1_qos,
  156. .num_links = 1,
  157. .links = { SLAVE_A2NOC_SNOC },
  158. };
  159. static struct qcom_icc_qosbox qxm_crypto_qos = {
  160. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  161. .num_ports = 1,
  162. .offsets = { 0x15000 },
  163. .config = &(struct qos_config) {
  164. .prio = 2,
  165. .urg_fwd = 0,
  166. .prio_fwd_disable = 1,
  167. },
  168. };
  169. static struct qcom_icc_node qxm_crypto = {
  170. .name = "qxm_crypto",
  171. .id = MASTER_CRYPTO,
  172. .channels = 1,
  173. .buswidth = 8,
  174. .noc_ops = &qcom_qnoc4_ops,
  175. .qosbox = &qxm_crypto_qos,
  176. .num_links = 1,
  177. .links = { SLAVE_A2NOC_SNOC },
  178. };
  179. static struct qcom_icc_qosbox qxm_ipa_qos = {
  180. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  181. .num_ports = 1,
  182. .offsets = { 0x16000 },
  183. .config = &(struct qos_config) {
  184. .prio = 2,
  185. .urg_fwd = 0,
  186. .prio_fwd_disable = 1,
  187. },
  188. };
  189. static struct qcom_icc_node qxm_ipa = {
  190. .name = "qxm_ipa",
  191. .id = MASTER_IPA,
  192. .channels = 1,
  193. .buswidth = 8,
  194. .noc_ops = &qcom_qnoc4_ops,
  195. .qosbox = &qxm_ipa_qos,
  196. .num_links = 1,
  197. .links = { SLAVE_A2NOC_SNOC },
  198. };
  199. static struct qcom_icc_qosbox xm_qdss_etr_0_qos = {
  200. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  201. .num_ports = 1,
  202. .offsets = { 0x17000 },
  203. .config = &(struct qos_config) {
  204. .prio = 2,
  205. .urg_fwd = 0,
  206. .prio_fwd_disable = 1,
  207. },
  208. };
  209. static struct qcom_icc_node xm_qdss_etr_0 = {
  210. .name = "xm_qdss_etr_0",
  211. .id = MASTER_QDSS_ETR,
  212. .channels = 1,
  213. .buswidth = 8,
  214. .noc_ops = &qcom_qnoc4_ops,
  215. .qosbox = &xm_qdss_etr_0_qos,
  216. .num_links = 1,
  217. .links = { SLAVE_A2NOC_SNOC },
  218. };
  219. static struct qcom_icc_qosbox xm_qdss_etr_1_qos = {
  220. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  221. .num_ports = 1,
  222. .offsets = { 0x18000 },
  223. .config = &(struct qos_config) {
  224. .prio = 2,
  225. .urg_fwd = 0,
  226. .prio_fwd_disable = 1,
  227. },
  228. };
  229. static struct qcom_icc_node xm_qdss_etr_1 = {
  230. .name = "xm_qdss_etr_1",
  231. .id = MASTER_QDSS_ETR_1,
  232. .channels = 1,
  233. .buswidth = 8,
  234. .noc_ops = &qcom_qnoc4_ops,
  235. .qosbox = &xm_qdss_etr_1_qos,
  236. .num_links = 1,
  237. .links = { SLAVE_A2NOC_SNOC },
  238. };
  239. static struct qcom_icc_node qup0_core_master = {
  240. .name = "qup0_core_master",
  241. .id = MASTER_QUP_CORE_0,
  242. .channels = 1,
  243. .buswidth = 4,
  244. .noc_ops = &qcom_qnoc4_ops,
  245. .num_links = 1,
  246. .links = { SLAVE_QUP_CORE_0 },
  247. };
  248. static struct qcom_icc_node qup1_core_master = {
  249. .name = "qup1_core_master",
  250. .id = MASTER_QUP_CORE_1,
  251. .channels = 1,
  252. .buswidth = 4,
  253. .noc_ops = &qcom_qnoc4_ops,
  254. .num_links = 1,
  255. .links = { SLAVE_QUP_CORE_1 },
  256. };
  257. static struct qcom_icc_node qsm_cfg = {
  258. .name = "qsm_cfg",
  259. .id = MASTER_CNOC_CFG,
  260. .channels = 1,
  261. .buswidth = 4,
  262. .noc_ops = &qcom_qnoc4_ops,
  263. .num_links = 39,
  264. .links = { SLAVE_AHB2PHY_SOUTH, SLAVE_AHB2PHY_NORTH,
  265. SLAVE_CAMERA_CFG, SLAVE_CLK_CTL,
  266. SLAVE_RBCPR_CX_CFG, SLAVE_RBCPR_MMCX_CFG,
  267. SLAVE_RBCPR_MXC_CFG, SLAVE_CPR_NSPCX,
  268. SLAVE_CRYPTO_0_CFG, SLAVE_CX_RDPM,
  269. SLAVE_GFX3D_CFG, SLAVE_I3C_IBI0_CFG,
  270. SLAVE_I3C_IBI1_CFG, SLAVE_IMEM_CFG,
  271. SLAVE_CNOC_MSS, SLAVE_MX_2_RDPM,
  272. SLAVE_MX_RDPM, SLAVE_PCIE_RSCC,
  273. SLAVE_PDM, SLAVE_QDSS_CFG,
  274. SLAVE_QSPI_0, SLAVE_QUP_1,
  275. SLAVE_QUP_0, SLAVE_SDCC_2,
  276. SLAVE_TCSR, SLAVE_TLMM,
  277. SLAVE_UFS_MEM_CFG, SLAVE_USB3_0,
  278. SLAVE_VENUS_CFG, SLAVE_VSENSE_CTRL_CFG,
  279. SLAVE_WLAN, SLAVE_CNOC_MNOC_HF_CFG,
  280. SLAVE_CNOC_MNOC_SF_CFG, SLAVE_NSP_QTB_CFG,
  281. SLAVE_PCIE_ANOC_CFG, SLAVE_WLAN_Q6_THROTTLE_CFG,
  282. SLAVE_SERVICE_CNOC_CFG, SLAVE_QDSS_STM,
  283. SLAVE_TCU },
  284. };
  285. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  286. .name = "qnm_gemnoc_cnoc",
  287. .id = MASTER_GEM_NOC_CNOC,
  288. .channels = 1,
  289. .buswidth = 16,
  290. .noc_ops = &qcom_qnoc4_ops,
  291. .num_links = 12,
  292. .links = { SLAVE_AOSS, SLAVE_DISPLAY_CFG,
  293. SLAVE_IPA_CFG, SLAVE_IPC_ROUTER_CFG,
  294. SLAVE_PCIE_0_CFG, SLAVE_PRNG,
  295. SLAVE_TME_CFG, SLAVE_APPSS,
  296. SLAVE_CNOC_CFG, SLAVE_DDRSS_CFG,
  297. SLAVE_IMEM, SLAVE_SERVICE_CNOC },
  298. };
  299. static struct qcom_icc_node qnm_gemnoc_pcie = {
  300. .name = "qnm_gemnoc_pcie",
  301. .id = MASTER_GEM_NOC_PCIE_SNOC,
  302. .channels = 1,
  303. .buswidth = 8,
  304. .noc_ops = &qcom_qnoc4_ops,
  305. .num_links = 1,
  306. .links = { SLAVE_PCIE_0 },
  307. };
  308. static struct qcom_icc_qosbox alm_gpu_tcu_qos = {
  309. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  310. .num_ports = 1,
  311. .offsets = { 0xbf000 },
  312. .config = &(struct qos_config) {
  313. .prio = 1,
  314. .urg_fwd = 0,
  315. .prio_fwd_disable = 1,
  316. },
  317. };
  318. static struct qcom_icc_node alm_gpu_tcu = {
  319. .name = "alm_gpu_tcu",
  320. .id = MASTER_GPU_TCU,
  321. .channels = 1,
  322. .buswidth = 8,
  323. .noc_ops = &qcom_qnoc4_ops,
  324. .qosbox = &alm_gpu_tcu_qos,
  325. .num_links = 2,
  326. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  327. };
  328. static struct qcom_icc_qosbox alm_sys_tcu_qos = {
  329. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  330. .num_ports = 1,
  331. .offsets = { 0xc1000 },
  332. .config = &(struct qos_config) {
  333. .prio = 6,
  334. .urg_fwd = 0,
  335. .prio_fwd_disable = 1,
  336. },
  337. };
  338. static struct qcom_icc_node alm_sys_tcu = {
  339. .name = "alm_sys_tcu",
  340. .id = MASTER_SYS_TCU,
  341. .channels = 1,
  342. .buswidth = 8,
  343. .noc_ops = &qcom_qnoc4_ops,
  344. .qosbox = &alm_sys_tcu_qos,
  345. .num_links = 2,
  346. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  347. };
  348. static struct qcom_icc_node chm_apps = {
  349. .name = "chm_apps",
  350. .id = MASTER_APPSS_PROC,
  351. .channels = 3,
  352. .buswidth = 32,
  353. .noc_ops = &qcom_qnoc4_ops,
  354. .num_links = 3,
  355. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  356. SLAVE_MEM_NOC_PCIE_SNOC },
  357. };
  358. static struct qcom_icc_qosbox qnm_gpu_qos = {
  359. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  360. .num_ports = 2,
  361. .offsets = { 0x31000, 0x71000 },
  362. .config = &(struct qos_config) {
  363. .prio = 0,
  364. .urg_fwd = 0,
  365. .prio_fwd_disable = 1,
  366. },
  367. };
  368. static struct qcom_icc_node qnm_gpu = {
  369. .name = "qnm_gpu",
  370. .id = MASTER_GFX3D,
  371. .channels = 2,
  372. .buswidth = 32,
  373. .noc_ops = &qcom_qnoc4_ops,
  374. .qosbox = &qnm_gpu_qos,
  375. .num_links = 2,
  376. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  377. };
  378. static struct qcom_icc_qosbox qnm_lpass_gemnoc_qos = {
  379. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  380. .num_ports = 1,
  381. .offsets = { 0xb5000 },
  382. .config = &(struct qos_config) {
  383. .prio = 0,
  384. .urg_fwd = 1,
  385. .prio_fwd_disable = 0,
  386. },
  387. };
  388. static struct qcom_icc_node qnm_lpass_gemnoc = {
  389. .name = "qnm_lpass_gemnoc",
  390. .id = MASTER_LPASS_GEM_NOC,
  391. .channels = 1,
  392. .buswidth = 16,
  393. .noc_ops = &qcom_qnoc4_ops,
  394. .qosbox = &qnm_lpass_gemnoc_qos,
  395. .num_links = 3,
  396. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  397. SLAVE_MEM_NOC_PCIE_SNOC },
  398. };
  399. static struct qcom_icc_node qnm_mdsp = {
  400. .name = "qnm_mdsp",
  401. .id = MASTER_MSS_PROC,
  402. .channels = 1,
  403. .buswidth = 16,
  404. .noc_ops = &qcom_qnoc4_ops,
  405. .num_links = 3,
  406. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  407. SLAVE_MEM_NOC_PCIE_SNOC },
  408. };
  409. static struct qcom_icc_qosbox qnm_mnoc_hf_qos = {
  410. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  411. .num_ports = 2,
  412. .offsets = { 0x33000, 0x73000 },
  413. .config = &(struct qos_config) {
  414. .prio = 0,
  415. .urg_fwd = 1,
  416. .prio_fwd_disable = 0,
  417. },
  418. };
  419. static struct qcom_icc_node qnm_mnoc_hf = {
  420. .name = "qnm_mnoc_hf",
  421. .id = MASTER_MNOC_HF_MEM_NOC,
  422. .channels = 2,
  423. .buswidth = 32,
  424. .noc_ops = &qcom_qnoc4_ops,
  425. .qosbox = &qnm_mnoc_hf_qos,
  426. .num_links = 2,
  427. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  428. };
  429. static struct qcom_icc_qosbox qnm_mnoc_sf_qos = {
  430. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  431. .num_ports = 2,
  432. .offsets = { 0x35000, 0x75000 },
  433. .config = &(struct qos_config) {
  434. .prio = 0,
  435. .urg_fwd = 1,
  436. .prio_fwd_disable = 0,
  437. },
  438. };
  439. static struct qcom_icc_node qnm_mnoc_sf = {
  440. .name = "qnm_mnoc_sf",
  441. .id = MASTER_MNOC_SF_MEM_NOC,
  442. .channels = 2,
  443. .buswidth = 32,
  444. .noc_ops = &qcom_qnoc4_ops,
  445. .qosbox = &qnm_mnoc_sf_qos,
  446. .num_links = 2,
  447. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  448. };
  449. static struct qcom_icc_qosbox qnm_nsp_gemnoc_qos = {
  450. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  451. .num_ports = 2,
  452. .offsets = { 0x37000, 0x77000 },
  453. .config = &(struct qos_config) {
  454. .prio = 0,
  455. .urg_fwd = 0,
  456. .prio_fwd_disable = 1,
  457. },
  458. };
  459. static struct qcom_icc_node qnm_nsp_gemnoc = {
  460. .name = "qnm_nsp_gemnoc",
  461. .id = MASTER_COMPUTE_NOC,
  462. .channels = 2,
  463. .buswidth = 32,
  464. .noc_ops = &qcom_qnoc4_ops,
  465. .qosbox = &qnm_nsp_gemnoc_qos,
  466. .num_links = 3,
  467. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  468. SLAVE_MEM_NOC_PCIE_SNOC },
  469. };
  470. static struct qcom_icc_qosbox qnm_pcie_qos = {
  471. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  472. .num_ports = 1,
  473. .offsets = { 0xb7000 },
  474. .config = &(struct qos_config) {
  475. .prio = 2,
  476. .urg_fwd = 1,
  477. .prio_fwd_disable = 0,
  478. },
  479. };
  480. static struct qcom_icc_node qnm_pcie = {
  481. .name = "qnm_pcie",
  482. .id = MASTER_ANOC_PCIE_GEM_NOC,
  483. .channels = 1,
  484. .buswidth = 8,
  485. .noc_ops = &qcom_qnoc4_ops,
  486. .qosbox = &qnm_pcie_qos,
  487. .num_links = 2,
  488. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  489. };
  490. static struct qcom_icc_qosbox qnm_snoc_sf_qos = {
  491. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  492. .num_ports = 1,
  493. .offsets = { 0xbb000 },
  494. .config = &(struct qos_config) {
  495. .prio = 0,
  496. .urg_fwd = 1,
  497. .prio_fwd_disable = 0,
  498. },
  499. };
  500. static struct qcom_icc_node qnm_snoc_sf = {
  501. .name = "qnm_snoc_sf",
  502. .id = MASTER_SNOC_SF_MEM_NOC,
  503. .channels = 1,
  504. .buswidth = 16,
  505. .noc_ops = &qcom_qnoc4_ops,
  506. .qosbox = &qnm_snoc_sf_qos,
  507. .num_links = 3,
  508. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  509. SLAVE_MEM_NOC_PCIE_SNOC },
  510. };
  511. static struct qcom_icc_node qxm_wlan_q6 = {
  512. .name = "qxm_wlan_q6",
  513. .id = MASTER_WLAN_Q6,
  514. .channels = 1,
  515. .buswidth = 8,
  516. .noc_ops = &qcom_qnoc4_ops,
  517. .num_links = 3,
  518. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  519. SLAVE_MEM_NOC_PCIE_SNOC },
  520. };
  521. static struct qcom_icc_qosbox xm_gic_qos = {
  522. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  523. .num_ports = 1,
  524. .offsets = { 0xb9000 },
  525. .config = &(struct qos_config) {
  526. .prio = 4,
  527. .urg_fwd = 0,
  528. .prio_fwd_disable = 1,
  529. },
  530. };
  531. static struct qcom_icc_node xm_gic = {
  532. .name = "xm_gic",
  533. .id = MASTER_GIC,
  534. .channels = 1,
  535. .buswidth = 8,
  536. .noc_ops = &qcom_qnoc4_ops,
  537. .qosbox = &xm_gic_qos,
  538. .num_links = 1,
  539. .links = { SLAVE_LLCC },
  540. };
  541. static struct qcom_icc_node qnm_lpiaon_noc = {
  542. .name = "qnm_lpiaon_noc",
  543. .id = MASTER_LPIAON_NOC,
  544. .channels = 1,
  545. .buswidth = 16,
  546. .noc_ops = &qcom_qnoc4_ops,
  547. .num_links = 1,
  548. .links = { SLAVE_LPASS_GEM_NOC },
  549. };
  550. static struct qcom_icc_node qnm_lpass_lpinoc = {
  551. .name = "qnm_lpass_lpinoc",
  552. .id = MASTER_LPASS_LPINOC,
  553. .channels = 1,
  554. .buswidth = 16,
  555. .noc_ops = &qcom_qnoc4_ops,
  556. .num_links = 1,
  557. .links = { SLAVE_LPIAON_NOC_LPASS_AG_NOC },
  558. };
  559. static struct qcom_icc_node qxm_lpinoc_dsp_axim = {
  560. .name = "qxm_lpinoc_dsp_axim",
  561. .id = MASTER_LPASS_PROC,
  562. .channels = 1,
  563. .buswidth = 16,
  564. .noc_ops = &qcom_qnoc4_ops,
  565. .num_links = 1,
  566. .links = { SLAVE_LPICX_NOC_LPIAON_NOC },
  567. };
  568. static struct qcom_icc_node llcc_mc = {
  569. .name = "llcc_mc",
  570. .id = MASTER_LLCC,
  571. .channels = 4,
  572. .buswidth = 4,
  573. .noc_ops = &qcom_qnoc4_ops,
  574. .num_links = 1,
  575. .links = { SLAVE_EBI1 },
  576. };
  577. static struct qcom_icc_qosbox qnm_camnoc_hf_qos = {
  578. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  579. .num_ports = 2,
  580. .offsets = { 0xa8000, 0xa9000 },
  581. .config = &(struct qos_config) {
  582. .prio = 0,
  583. .urg_fwd = 1,
  584. .prio_fwd_disable = 0,
  585. },
  586. };
  587. static struct qcom_icc_node qnm_camnoc_hf = {
  588. .name = "qnm_camnoc_hf",
  589. .id = MASTER_CAMNOC_HF,
  590. .channels = 2,
  591. .buswidth = 32,
  592. .noc_ops = &qcom_qnoc4_ops,
  593. .qosbox = &qnm_camnoc_hf_qos,
  594. .num_links = 1,
  595. .links = { SLAVE_MNOC_HF_MEM_NOC },
  596. };
  597. static struct qcom_icc_qosbox qnm_camnoc_icp_qos = {
  598. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  599. .num_ports = 1,
  600. .offsets = { 0x2a000 },
  601. .config = &(struct qos_config) {
  602. .prio = 4,
  603. .urg_fwd = 0,
  604. .prio_fwd_disable = 1,
  605. },
  606. };
  607. static struct qcom_icc_node qnm_camnoc_icp = {
  608. .name = "qnm_camnoc_icp",
  609. .id = MASTER_CAMNOC_ICP,
  610. .channels = 1,
  611. .buswidth = 8,
  612. .noc_ops = &qcom_qnoc4_ops,
  613. .qosbox = &qnm_camnoc_icp_qos,
  614. .num_links = 1,
  615. .links = { SLAVE_MNOC_SF_MEM_NOC },
  616. };
  617. static struct qcom_icc_qosbox qnm_camnoc_sf_qos = {
  618. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  619. .num_ports = 2,
  620. .offsets = { 0x2b000, 0x2c000 },
  621. .config = &(struct qos_config) {
  622. .prio = 0,
  623. .urg_fwd = 1,
  624. .prio_fwd_disable = 0,
  625. },
  626. };
  627. static struct qcom_icc_node qnm_camnoc_sf = {
  628. .name = "qnm_camnoc_sf",
  629. .id = MASTER_CAMNOC_SF,
  630. .channels = 2,
  631. .buswidth = 32,
  632. .noc_ops = &qcom_qnoc4_ops,
  633. .qosbox = &qnm_camnoc_sf_qos,
  634. .num_links = 1,
  635. .links = { SLAVE_MNOC_SF_MEM_NOC },
  636. };
  637. static struct qcom_icc_qosbox qnm_mdp_qos = {
  638. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  639. .num_ports = 2,
  640. .offsets = { 0xad000, 0xae000 },
  641. .config = &(struct qos_config) {
  642. .prio = 0,
  643. .urg_fwd = 1,
  644. .prio_fwd_disable = 0,
  645. },
  646. };
  647. static struct qcom_icc_node qnm_mdp = {
  648. .name = "qnm_mdp",
  649. .id = MASTER_MDP,
  650. .channels = 2,
  651. .buswidth = 32,
  652. .noc_ops = &qcom_qnoc4_ops,
  653. .qosbox = &qnm_mdp_qos,
  654. .num_links = 1,
  655. .links = { SLAVE_MNOC_HF_MEM_NOC },
  656. };
  657. static struct qcom_icc_qosbox qnm_video_qos = {
  658. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  659. .num_ports = 1,
  660. .offsets = { 0x30000 },
  661. .config = &(struct qos_config) {
  662. .prio = 0,
  663. .urg_fwd = 1,
  664. .prio_fwd_disable = 0,
  665. },
  666. };
  667. static struct qcom_icc_node qnm_video = {
  668. .name = "qnm_video",
  669. .id = MASTER_VIDEO,
  670. .channels = 1,
  671. .buswidth = 32,
  672. .noc_ops = &qcom_qnoc4_ops,
  673. .qosbox = &qnm_video_qos,
  674. .num_links = 1,
  675. .links = { SLAVE_MNOC_SF_MEM_NOC },
  676. };
  677. static struct qcom_icc_qosbox qnm_video_cv_cpu_qos = {
  678. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  679. .num_ports = 1,
  680. .offsets = { 0x32000 },
  681. .config = &(struct qos_config) {
  682. .prio = 4,
  683. .urg_fwd = 0,
  684. .prio_fwd_disable = 1,
  685. },
  686. };
  687. static struct qcom_icc_node qnm_video_cv_cpu = {
  688. .name = "qnm_video_cv_cpu",
  689. .id = MASTER_VIDEO_CV_PROC,
  690. .channels = 1,
  691. .buswidth = 8,
  692. .noc_ops = &qcom_qnoc4_ops,
  693. .qosbox = &qnm_video_cv_cpu_qos,
  694. .num_links = 1,
  695. .links = { SLAVE_MNOC_SF_MEM_NOC },
  696. };
  697. static struct qcom_icc_qosbox qnm_video_cvp_qos = {
  698. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  699. .num_ports = 1,
  700. .offsets = { 0x33000 },
  701. .config = &(struct qos_config) {
  702. .prio = 3,
  703. .urg_fwd = 0,
  704. .prio_fwd_disable = 1,
  705. },
  706. };
  707. static struct qcom_icc_node qnm_video_cvp = {
  708. .name = "qnm_video_cvp",
  709. .id = MASTER_VIDEO_PROC,
  710. .channels = 1,
  711. .buswidth = 32,
  712. .noc_ops = &qcom_qnoc4_ops,
  713. .qosbox = &qnm_video_cvp_qos,
  714. .num_links = 1,
  715. .links = { SLAVE_MNOC_SF_MEM_NOC },
  716. };
  717. static struct qcom_icc_qosbox qnm_video_v_cpu_qos = {
  718. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  719. .num_ports = 1,
  720. .offsets = { 0x35000 },
  721. .config = &(struct qos_config) {
  722. .prio = 4,
  723. .urg_fwd = 0,
  724. .prio_fwd_disable = 1,
  725. },
  726. };
  727. static struct qcom_icc_node qnm_video_v_cpu = {
  728. .name = "qnm_video_v_cpu",
  729. .id = MASTER_VIDEO_V_PROC,
  730. .channels = 1,
  731. .buswidth = 8,
  732. .noc_ops = &qcom_qnoc4_ops,
  733. .qosbox = &qnm_video_v_cpu_qos,
  734. .num_links = 1,
  735. .links = { SLAVE_MNOC_SF_MEM_NOC },
  736. };
  737. static struct qcom_icc_node qsm_hf_mnoc_cfg = {
  738. .name = "qsm_hf_mnoc_cfg",
  739. .id = MASTER_CNOC_MNOC_HF_CFG,
  740. .channels = 1,
  741. .buswidth = 4,
  742. .noc_ops = &qcom_qnoc4_ops,
  743. .num_links = 1,
  744. .links = { SLAVE_SERVICE_MNOC_HF },
  745. };
  746. static struct qcom_icc_node qsm_sf_mnoc_cfg = {
  747. .name = "qsm_sf_mnoc_cfg",
  748. .id = MASTER_CNOC_MNOC_SF_CFG,
  749. .channels = 1,
  750. .buswidth = 4,
  751. .noc_ops = &qcom_qnoc4_ops,
  752. .num_links = 1,
  753. .links = { SLAVE_SERVICE_MNOC_SF },
  754. };
  755. static struct qcom_icc_node qxm_nsp = {
  756. .name = "qxm_nsp",
  757. .id = MASTER_CDSP_PROC,
  758. .channels = 2,
  759. .buswidth = 32,
  760. .noc_ops = &qcom_qnoc4_ops,
  761. .num_links = 1,
  762. .links = { SLAVE_CDSP_MEM_NOC },
  763. };
  764. static struct qcom_icc_node qsm_pcie_anoc_cfg = {
  765. .name = "qsm_pcie_anoc_cfg",
  766. .id = MASTER_PCIE_ANOC_CFG,
  767. .channels = 1,
  768. .buswidth = 4,
  769. .noc_ops = &qcom_qnoc4_ops,
  770. .num_links = 1,
  771. .links = { SLAVE_SERVICE_PCIE_ANOC },
  772. };
  773. static struct qcom_icc_qosbox xm_pcie3_0_qos = {
  774. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  775. .num_ports = 1,
  776. .offsets = { 0xb000 },
  777. .config = &(struct qos_config) {
  778. .prio = 3,
  779. .urg_fwd = 0,
  780. .prio_fwd_disable = 1,
  781. },
  782. };
  783. static struct qcom_icc_node xm_pcie3_0 = {
  784. .name = "xm_pcie3_0",
  785. .id = MASTER_PCIE_0,
  786. .channels = 1,
  787. .buswidth = 8,
  788. .noc_ops = &qcom_qnoc4_ops,
  789. .qosbox = &xm_pcie3_0_qos,
  790. .num_links = 1,
  791. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  792. };
  793. static struct qcom_icc_node qnm_aggre1_noc = {
  794. .name = "qnm_aggre1_noc",
  795. .id = MASTER_A1NOC_SNOC,
  796. .channels = 1,
  797. .buswidth = 16,
  798. .noc_ops = &qcom_qnoc4_ops,
  799. .num_links = 1,
  800. .links = { SLAVE_SNOC_GEM_NOC_SF },
  801. };
  802. static struct qcom_icc_node qnm_aggre2_noc = {
  803. .name = "qnm_aggre2_noc",
  804. .id = MASTER_A2NOC_SNOC,
  805. .channels = 1,
  806. .buswidth = 16,
  807. .noc_ops = &qcom_qnoc4_ops,
  808. .num_links = 1,
  809. .links = { SLAVE_SNOC_GEM_NOC_SF },
  810. };
  811. static struct qcom_icc_qosbox qnm_apss_noc_qos = {
  812. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  813. .num_ports = 1,
  814. .offsets = { 0x1c000 },
  815. .config = &(struct qos_config) {
  816. .prio = 2,
  817. .urg_fwd = 0,
  818. .prio_fwd_disable = 1,
  819. },
  820. };
  821. static struct qcom_icc_node qnm_apss_noc = {
  822. .name = "qnm_apss_noc",
  823. .id = MASTER_APSS_NOC,
  824. .channels = 1,
  825. .buswidth = 4,
  826. .noc_ops = &qcom_qnoc4_ops,
  827. .qosbox = &qnm_apss_noc_qos,
  828. .num_links = 1,
  829. .links = { SLAVE_SNOC_GEM_NOC_SF },
  830. };
  831. static struct qcom_icc_qosbox qnm_cnoc_data_qos = {
  832. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  833. .num_ports = 1,
  834. .offsets = { 0x1d000 },
  835. .config = &(struct qos_config) {
  836. .prio = 2,
  837. .urg_fwd = 0,
  838. .prio_fwd_disable = 1,
  839. },
  840. };
  841. static struct qcom_icc_node qnm_cnoc_data = {
  842. .name = "qnm_cnoc_data",
  843. .id = MASTER_CNOC_SNOC,
  844. .channels = 1,
  845. .buswidth = 8,
  846. .noc_ops = &qcom_qnoc4_ops,
  847. .qosbox = &qnm_cnoc_data_qos,
  848. .num_links = 1,
  849. .links = { SLAVE_SNOC_GEM_NOC_SF },
  850. };
  851. static struct qcom_icc_node qnm_mnoc_hf_disp = {
  852. .name = "qnm_mnoc_hf_disp",
  853. .id = MASTER_MNOC_HF_MEM_NOC_DISP,
  854. .channels = 2,
  855. .buswidth = 32,
  856. .noc_ops = &qcom_qnoc4_ops,
  857. .num_links = 1,
  858. .links = { SLAVE_LLCC_DISP },
  859. };
  860. static struct qcom_icc_node qnm_pcie_disp = {
  861. .name = "qnm_pcie_disp",
  862. .id = MASTER_ANOC_PCIE_GEM_NOC_DISP,
  863. .channels = 1,
  864. .buswidth = 8,
  865. .noc_ops = &qcom_qnoc4_ops,
  866. .num_links = 1,
  867. .links = { SLAVE_LLCC_DISP },
  868. };
  869. static struct qcom_icc_node llcc_mc_disp = {
  870. .name = "llcc_mc_disp",
  871. .id = MASTER_LLCC_DISP,
  872. .channels = 4,
  873. .buswidth = 4,
  874. .noc_ops = &qcom_qnoc4_ops,
  875. .num_links = 1,
  876. .links = { SLAVE_EBI1_DISP },
  877. };
  878. static struct qcom_icc_node qnm_mdp_disp = {
  879. .name = "qnm_mdp_disp",
  880. .id = MASTER_MDP_DISP,
  881. .channels = 2,
  882. .buswidth = 32,
  883. .noc_ops = &qcom_qnoc4_ops,
  884. .num_links = 1,
  885. .links = { SLAVE_MNOC_HF_MEM_NOC_DISP },
  886. };
  887. static struct qcom_icc_node qnm_mnoc_hf_cam_ife_0 = {
  888. .name = "qnm_mnoc_hf_cam_ife_0",
  889. .id = MASTER_MNOC_HF_MEM_NOC_CAM_IFE_0,
  890. .channels = 2,
  891. .buswidth = 32,
  892. .noc_ops = &qcom_qnoc4_ops,
  893. .num_links = 1,
  894. .links = { SLAVE_LLCC_CAM_IFE_0 },
  895. };
  896. static struct qcom_icc_node qnm_mnoc_sf_cam_ife_0 = {
  897. .name = "qnm_mnoc_sf_cam_ife_0",
  898. .id = MASTER_MNOC_SF_MEM_NOC_CAM_IFE_0,
  899. .channels = 2,
  900. .buswidth = 32,
  901. .noc_ops = &qcom_qnoc4_ops,
  902. .num_links = 1,
  903. .links = { SLAVE_LLCC_CAM_IFE_0 },
  904. };
  905. static struct qcom_icc_node qnm_pcie_cam_ife_0 = {
  906. .name = "qnm_pcie_cam_ife_0",
  907. .id = MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_0,
  908. .channels = 1,
  909. .buswidth = 8,
  910. .noc_ops = &qcom_qnoc4_ops,
  911. .num_links = 1,
  912. .links = { SLAVE_LLCC_CAM_IFE_0 },
  913. };
  914. static struct qcom_icc_node llcc_mc_cam_ife_0 = {
  915. .name = "llcc_mc_cam_ife_0",
  916. .id = MASTER_LLCC_CAM_IFE_0,
  917. .channels = 4,
  918. .buswidth = 4,
  919. .noc_ops = &qcom_qnoc4_ops,
  920. .num_links = 1,
  921. .links = { SLAVE_EBI1_CAM_IFE_0 },
  922. };
  923. static struct qcom_icc_node qnm_camnoc_hf_cam_ife_0 = {
  924. .name = "qnm_camnoc_hf_cam_ife_0",
  925. .id = MASTER_CAMNOC_HF_CAM_IFE_0,
  926. .channels = 2,
  927. .buswidth = 32,
  928. .noc_ops = &qcom_qnoc4_ops,
  929. .num_links = 1,
  930. .links = { SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_0 },
  931. };
  932. static struct qcom_icc_node qnm_camnoc_icp_cam_ife_0 = {
  933. .name = "qnm_camnoc_icp_cam_ife_0",
  934. .id = MASTER_CAMNOC_ICP_CAM_IFE_0,
  935. .channels = 1,
  936. .buswidth = 8,
  937. .noc_ops = &qcom_qnoc4_ops,
  938. .num_links = 1,
  939. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_0 },
  940. };
  941. static struct qcom_icc_node qnm_camnoc_sf_cam_ife_0 = {
  942. .name = "qnm_camnoc_sf_cam_ife_0",
  943. .id = MASTER_CAMNOC_SF_CAM_IFE_0,
  944. .channels = 2,
  945. .buswidth = 32,
  946. .noc_ops = &qcom_qnoc4_ops,
  947. .num_links = 1,
  948. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_0 },
  949. };
  950. static struct qcom_icc_node qnm_mnoc_hf_cam_ife_1 = {
  951. .name = "qnm_mnoc_hf_cam_ife_1",
  952. .id = MASTER_MNOC_HF_MEM_NOC_CAM_IFE_1,
  953. .channels = 2,
  954. .buswidth = 32,
  955. .noc_ops = &qcom_qnoc4_ops,
  956. .num_links = 1,
  957. .links = { SLAVE_LLCC_CAM_IFE_1 },
  958. };
  959. static struct qcom_icc_node qnm_mnoc_sf_cam_ife_1 = {
  960. .name = "qnm_mnoc_sf_cam_ife_1",
  961. .id = MASTER_MNOC_SF_MEM_NOC_CAM_IFE_1,
  962. .channels = 2,
  963. .buswidth = 32,
  964. .noc_ops = &qcom_qnoc4_ops,
  965. .num_links = 1,
  966. .links = { SLAVE_LLCC_CAM_IFE_1 },
  967. };
  968. static struct qcom_icc_node qnm_pcie_cam_ife_1 = {
  969. .name = "qnm_pcie_cam_ife_1",
  970. .id = MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_1,
  971. .channels = 1,
  972. .buswidth = 8,
  973. .noc_ops = &qcom_qnoc4_ops,
  974. .num_links = 1,
  975. .links = { SLAVE_LLCC_CAM_IFE_1 },
  976. };
  977. static struct qcom_icc_node llcc_mc_cam_ife_1 = {
  978. .name = "llcc_mc_cam_ife_1",
  979. .id = MASTER_LLCC_CAM_IFE_1,
  980. .channels = 4,
  981. .buswidth = 4,
  982. .noc_ops = &qcom_qnoc4_ops,
  983. .num_links = 1,
  984. .links = { SLAVE_EBI1_CAM_IFE_1 },
  985. };
  986. static struct qcom_icc_node qnm_camnoc_hf_cam_ife_1 = {
  987. .name = "qnm_camnoc_hf_cam_ife_1",
  988. .id = MASTER_CAMNOC_HF_CAM_IFE_1,
  989. .channels = 2,
  990. .buswidth = 32,
  991. .noc_ops = &qcom_qnoc4_ops,
  992. .num_links = 1,
  993. .links = { SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_1 },
  994. };
  995. static struct qcom_icc_node qnm_camnoc_icp_cam_ife_1 = {
  996. .name = "qnm_camnoc_icp_cam_ife_1",
  997. .id = MASTER_CAMNOC_ICP_CAM_IFE_1,
  998. .channels = 1,
  999. .buswidth = 8,
  1000. .noc_ops = &qcom_qnoc4_ops,
  1001. .num_links = 1,
  1002. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_1 },
  1003. };
  1004. static struct qcom_icc_node qnm_camnoc_sf_cam_ife_1 = {
  1005. .name = "qnm_camnoc_sf_cam_ife_1",
  1006. .id = MASTER_CAMNOC_SF_CAM_IFE_1,
  1007. .channels = 2,
  1008. .buswidth = 32,
  1009. .noc_ops = &qcom_qnoc4_ops,
  1010. .num_links = 1,
  1011. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_1 },
  1012. };
  1013. static struct qcom_icc_node qnm_mnoc_hf_cam_ife_2 = {
  1014. .name = "qnm_mnoc_hf_cam_ife_2",
  1015. .id = MASTER_MNOC_HF_MEM_NOC_CAM_IFE_2,
  1016. .channels = 2,
  1017. .buswidth = 32,
  1018. .noc_ops = &qcom_qnoc4_ops,
  1019. .num_links = 1,
  1020. .links = { SLAVE_LLCC_CAM_IFE_2 },
  1021. };
  1022. static struct qcom_icc_node qnm_mnoc_sf_cam_ife_2 = {
  1023. .name = "qnm_mnoc_sf_cam_ife_2",
  1024. .id = MASTER_MNOC_SF_MEM_NOC_CAM_IFE_2,
  1025. .channels = 2,
  1026. .buswidth = 32,
  1027. .noc_ops = &qcom_qnoc4_ops,
  1028. .num_links = 1,
  1029. .links = { SLAVE_LLCC_CAM_IFE_2 },
  1030. };
  1031. static struct qcom_icc_node qnm_pcie_cam_ife_2 = {
  1032. .name = "qnm_pcie_cam_ife_2",
  1033. .id = MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_2,
  1034. .channels = 1,
  1035. .buswidth = 8,
  1036. .noc_ops = &qcom_qnoc4_ops,
  1037. .num_links = 1,
  1038. .links = { SLAVE_LLCC_CAM_IFE_2 },
  1039. };
  1040. static struct qcom_icc_node llcc_mc_cam_ife_2 = {
  1041. .name = "llcc_mc_cam_ife_2",
  1042. .id = MASTER_LLCC_CAM_IFE_2,
  1043. .channels = 4,
  1044. .buswidth = 4,
  1045. .noc_ops = &qcom_qnoc4_ops,
  1046. .num_links = 1,
  1047. .links = { SLAVE_EBI1_CAM_IFE_2 },
  1048. };
  1049. static struct qcom_icc_node qnm_camnoc_hf_cam_ife_2 = {
  1050. .name = "qnm_camnoc_hf_cam_ife_2",
  1051. .id = MASTER_CAMNOC_HF_CAM_IFE_2,
  1052. .channels = 2,
  1053. .buswidth = 32,
  1054. .noc_ops = &qcom_qnoc4_ops,
  1055. .num_links = 1,
  1056. .links = { SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_2 },
  1057. };
  1058. static struct qcom_icc_node qnm_camnoc_icp_cam_ife_2 = {
  1059. .name = "qnm_camnoc_icp_cam_ife_2",
  1060. .id = MASTER_CAMNOC_ICP_CAM_IFE_2,
  1061. .channels = 1,
  1062. .buswidth = 8,
  1063. .noc_ops = &qcom_qnoc4_ops,
  1064. .num_links = 1,
  1065. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_2 },
  1066. };
  1067. static struct qcom_icc_node qnm_camnoc_sf_cam_ife_2 = {
  1068. .name = "qnm_camnoc_sf_cam_ife_2",
  1069. .id = MASTER_CAMNOC_SF_CAM_IFE_2,
  1070. .channels = 2,
  1071. .buswidth = 32,
  1072. .noc_ops = &qcom_qnoc4_ops,
  1073. .num_links = 1,
  1074. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_2 },
  1075. };
  1076. static struct qcom_icc_node ipa_core_master_pcie_crm_hw_0 = {
  1077. .name = "ipa_core_master_pcie_crm_hw_0",
  1078. .id = MASTER_IPA_CORE_PCIE_CRM_HW_0,
  1079. .channels = 1,
  1080. .buswidth = 8,
  1081. .noc_ops = &qcom_qnoc4_ops,
  1082. .num_links = 1,
  1083. .links = { SLAVE_IPA_CORE_PCIE_CRM_HW_0 },
  1084. };
  1085. static struct qcom_icc_node qnm_pcie_pcie_crm_hw_0 = {
  1086. .name = "qnm_pcie_pcie_crm_hw_0",
  1087. .id = MASTER_ANOC_PCIE_GEM_NOC_PCIE_CRM_HW_0,
  1088. .channels = 1,
  1089. .buswidth = 8,
  1090. .noc_ops = &qcom_qnoc4_ops,
  1091. .num_links = 1,
  1092. .links = { SLAVE_LLCC_PCIE_CRM_HW_0 },
  1093. };
  1094. static struct qcom_icc_node llcc_mc_pcie_crm_hw_0 = {
  1095. .name = "llcc_mc_pcie_crm_hw_0",
  1096. .id = MASTER_LLCC_PCIE_CRM_HW_0,
  1097. .channels = 4,
  1098. .buswidth = 4,
  1099. .noc_ops = &qcom_qnoc4_ops,
  1100. .num_links = 1,
  1101. .links = { SLAVE_EBI1_PCIE_CRM_HW_0 },
  1102. };
  1103. static struct qcom_icc_node xm_pcie3_0_pcie_crm_hw_0 = {
  1104. .name = "xm_pcie3_0_pcie_crm_hw_0",
  1105. .id = MASTER_PCIE_0_PCIE_CRM_HW_0,
  1106. .channels = 1,
  1107. .buswidth = 8,
  1108. .noc_ops = &qcom_qnoc4_ops,
  1109. .num_links = 1,
  1110. .links = { SLAVE_ANOC_PCIE_GEM_NOC_PCIE_CRM_HW_0 },
  1111. };
  1112. static struct qcom_icc_node qns_a1noc_snoc = {
  1113. .name = "qns_a1noc_snoc",
  1114. .id = SLAVE_A1NOC_SNOC,
  1115. .channels = 1,
  1116. .buswidth = 16,
  1117. .noc_ops = &qcom_qnoc4_ops,
  1118. .num_links = 1,
  1119. .links = { MASTER_A1NOC_SNOC },
  1120. };
  1121. static struct qcom_icc_node qns_a2noc_snoc = {
  1122. .name = "qns_a2noc_snoc",
  1123. .id = SLAVE_A2NOC_SNOC,
  1124. .channels = 1,
  1125. .buswidth = 16,
  1126. .noc_ops = &qcom_qnoc4_ops,
  1127. .num_links = 1,
  1128. .links = { MASTER_A2NOC_SNOC },
  1129. };
  1130. static struct qcom_icc_node qup0_core_slave = {
  1131. .name = "qup0_core_slave",
  1132. .id = SLAVE_QUP_CORE_0,
  1133. .channels = 1,
  1134. .buswidth = 4,
  1135. .noc_ops = &qcom_qnoc4_ops,
  1136. .num_links = 0,
  1137. };
  1138. static struct qcom_icc_node qup1_core_slave = {
  1139. .name = "qup1_core_slave",
  1140. .id = SLAVE_QUP_CORE_1,
  1141. .channels = 1,
  1142. .buswidth = 4,
  1143. .noc_ops = &qcom_qnoc4_ops,
  1144. .num_links = 0,
  1145. };
  1146. static struct qcom_icc_node qhs_ahb2phy0 = {
  1147. .name = "qhs_ahb2phy0",
  1148. .id = SLAVE_AHB2PHY_SOUTH,
  1149. .channels = 1,
  1150. .buswidth = 4,
  1151. .noc_ops = &qcom_qnoc4_ops,
  1152. .num_links = 0,
  1153. };
  1154. static struct qcom_icc_node qhs_ahb2phy1 = {
  1155. .name = "qhs_ahb2phy1",
  1156. .id = SLAVE_AHB2PHY_NORTH,
  1157. .channels = 1,
  1158. .buswidth = 4,
  1159. .noc_ops = &qcom_qnoc4_ops,
  1160. .num_links = 0,
  1161. };
  1162. static struct qcom_icc_node qhs_camera_cfg = {
  1163. .name = "qhs_camera_cfg",
  1164. .id = SLAVE_CAMERA_CFG,
  1165. .channels = 1,
  1166. .buswidth = 4,
  1167. .noc_ops = &qcom_qnoc4_ops,
  1168. .num_links = 0,
  1169. };
  1170. static struct qcom_icc_node qhs_clk_ctl = {
  1171. .name = "qhs_clk_ctl",
  1172. .id = SLAVE_CLK_CTL,
  1173. .channels = 1,
  1174. .buswidth = 4,
  1175. .noc_ops = &qcom_qnoc4_ops,
  1176. .num_links = 0,
  1177. };
  1178. static struct qcom_icc_node qhs_cpr_cx = {
  1179. .name = "qhs_cpr_cx",
  1180. .id = SLAVE_RBCPR_CX_CFG,
  1181. .channels = 1,
  1182. .buswidth = 4,
  1183. .noc_ops = &qcom_qnoc4_ops,
  1184. .num_links = 0,
  1185. };
  1186. static struct qcom_icc_node qhs_cpr_mmcx = {
  1187. .name = "qhs_cpr_mmcx",
  1188. .id = SLAVE_RBCPR_MMCX_CFG,
  1189. .channels = 1,
  1190. .buswidth = 4,
  1191. .noc_ops = &qcom_qnoc4_ops,
  1192. .num_links = 0,
  1193. };
  1194. static struct qcom_icc_node qhs_cpr_mxc = {
  1195. .name = "qhs_cpr_mxc",
  1196. .id = SLAVE_RBCPR_MXC_CFG,
  1197. .channels = 1,
  1198. .buswidth = 4,
  1199. .noc_ops = &qcom_qnoc4_ops,
  1200. .num_links = 0,
  1201. };
  1202. static struct qcom_icc_node qhs_cpr_nspcx = {
  1203. .name = "qhs_cpr_nspcx",
  1204. .id = SLAVE_CPR_NSPCX,
  1205. .channels = 1,
  1206. .buswidth = 4,
  1207. .noc_ops = &qcom_qnoc4_ops,
  1208. .num_links = 0,
  1209. };
  1210. static struct qcom_icc_node qhs_crypto0_cfg = {
  1211. .name = "qhs_crypto0_cfg",
  1212. .id = SLAVE_CRYPTO_0_CFG,
  1213. .channels = 1,
  1214. .buswidth = 4,
  1215. .noc_ops = &qcom_qnoc4_ops,
  1216. .num_links = 0,
  1217. };
  1218. static struct qcom_icc_node qhs_cx_rdpm = {
  1219. .name = "qhs_cx_rdpm",
  1220. .id = SLAVE_CX_RDPM,
  1221. .channels = 1,
  1222. .buswidth = 4,
  1223. .noc_ops = &qcom_qnoc4_ops,
  1224. .num_links = 0,
  1225. };
  1226. static struct qcom_icc_node qhs_gpuss_cfg = {
  1227. .name = "qhs_gpuss_cfg",
  1228. .id = SLAVE_GFX3D_CFG,
  1229. .channels = 1,
  1230. .buswidth = 8,
  1231. .noc_ops = &qcom_qnoc4_ops,
  1232. .num_links = 0,
  1233. };
  1234. static struct qcom_icc_node qhs_i3c_ibi0_cfg = {
  1235. .name = "qhs_i3c_ibi0_cfg",
  1236. .id = SLAVE_I3C_IBI0_CFG,
  1237. .channels = 1,
  1238. .buswidth = 4,
  1239. .noc_ops = &qcom_qnoc4_ops,
  1240. .num_links = 0,
  1241. };
  1242. static struct qcom_icc_node qhs_i3c_ibi1_cfg = {
  1243. .name = "qhs_i3c_ibi1_cfg",
  1244. .id = SLAVE_I3C_IBI1_CFG,
  1245. .channels = 1,
  1246. .buswidth = 4,
  1247. .noc_ops = &qcom_qnoc4_ops,
  1248. .num_links = 0,
  1249. };
  1250. static struct qcom_icc_node qhs_imem_cfg = {
  1251. .name = "qhs_imem_cfg",
  1252. .id = SLAVE_IMEM_CFG,
  1253. .channels = 1,
  1254. .buswidth = 4,
  1255. .noc_ops = &qcom_qnoc4_ops,
  1256. .num_links = 0,
  1257. };
  1258. static struct qcom_icc_node qhs_mss_cfg = {
  1259. .name = "qhs_mss_cfg",
  1260. .id = SLAVE_CNOC_MSS,
  1261. .channels = 1,
  1262. .buswidth = 4,
  1263. .noc_ops = &qcom_qnoc4_ops,
  1264. .num_links = 0,
  1265. };
  1266. static struct qcom_icc_node qhs_mx_2_rdpm = {
  1267. .name = "qhs_mx_2_rdpm",
  1268. .id = SLAVE_MX_2_RDPM,
  1269. .channels = 1,
  1270. .buswidth = 4,
  1271. .noc_ops = &qcom_qnoc4_ops,
  1272. .num_links = 0,
  1273. };
  1274. static struct qcom_icc_node qhs_mx_rdpm = {
  1275. .name = "qhs_mx_rdpm",
  1276. .id = SLAVE_MX_RDPM,
  1277. .channels = 1,
  1278. .buswidth = 4,
  1279. .noc_ops = &qcom_qnoc4_ops,
  1280. .num_links = 0,
  1281. };
  1282. static struct qcom_icc_node qhs_pcie_rscc = {
  1283. .name = "qhs_pcie_rscc",
  1284. .id = SLAVE_PCIE_RSCC,
  1285. .channels = 1,
  1286. .buswidth = 4,
  1287. .noc_ops = &qcom_qnoc4_ops,
  1288. .num_links = 0,
  1289. };
  1290. static struct qcom_icc_node qhs_pdm = {
  1291. .name = "qhs_pdm",
  1292. .id = SLAVE_PDM,
  1293. .channels = 1,
  1294. .buswidth = 4,
  1295. .noc_ops = &qcom_qnoc4_ops,
  1296. .num_links = 0,
  1297. };
  1298. static struct qcom_icc_node qhs_qdss_cfg = {
  1299. .name = "qhs_qdss_cfg",
  1300. .id = SLAVE_QDSS_CFG,
  1301. .channels = 1,
  1302. .buswidth = 4,
  1303. .noc_ops = &qcom_qnoc4_ops,
  1304. .num_links = 0,
  1305. };
  1306. static struct qcom_icc_node qhs_qspi = {
  1307. .name = "qhs_qspi",
  1308. .id = SLAVE_QSPI_0,
  1309. .channels = 1,
  1310. .buswidth = 4,
  1311. .noc_ops = &qcom_qnoc4_ops,
  1312. .num_links = 0,
  1313. };
  1314. static struct qcom_icc_node qhs_qup0 = {
  1315. .name = "qhs_qup0",
  1316. .id = SLAVE_QUP_0,
  1317. .channels = 1,
  1318. .buswidth = 4,
  1319. .noc_ops = &qcom_qnoc4_ops,
  1320. .num_links = 0,
  1321. };
  1322. static struct qcom_icc_node qhs_qup1 = {
  1323. .name = "qhs_qup1",
  1324. .id = SLAVE_QUP_1,
  1325. .channels = 1,
  1326. .buswidth = 4,
  1327. .noc_ops = &qcom_qnoc4_ops,
  1328. .num_links = 0,
  1329. };
  1330. static struct qcom_icc_node qhs_sdc2 = {
  1331. .name = "qhs_sdc2",
  1332. .id = SLAVE_SDCC_2,
  1333. .channels = 1,
  1334. .buswidth = 4,
  1335. .noc_ops = &qcom_qnoc4_ops,
  1336. .num_links = 0,
  1337. };
  1338. static struct qcom_icc_node qhs_tcsr = {
  1339. .name = "qhs_tcsr",
  1340. .id = SLAVE_TCSR,
  1341. .channels = 1,
  1342. .buswidth = 4,
  1343. .noc_ops = &qcom_qnoc4_ops,
  1344. .num_links = 0,
  1345. };
  1346. static struct qcom_icc_node qhs_tlmm = {
  1347. .name = "qhs_tlmm",
  1348. .id = SLAVE_TLMM,
  1349. .channels = 1,
  1350. .buswidth = 4,
  1351. .noc_ops = &qcom_qnoc4_ops,
  1352. .num_links = 0,
  1353. };
  1354. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  1355. .name = "qhs_ufs_mem_cfg",
  1356. .id = SLAVE_UFS_MEM_CFG,
  1357. .channels = 1,
  1358. .buswidth = 4,
  1359. .noc_ops = &qcom_qnoc4_ops,
  1360. .num_links = 0,
  1361. };
  1362. static struct qcom_icc_node qhs_usb3_0 = {
  1363. .name = "qhs_usb3_0",
  1364. .id = SLAVE_USB3_0,
  1365. .channels = 1,
  1366. .buswidth = 4,
  1367. .noc_ops = &qcom_qnoc4_ops,
  1368. .num_links = 0,
  1369. };
  1370. static struct qcom_icc_node qhs_venus_cfg = {
  1371. .name = "qhs_venus_cfg",
  1372. .id = SLAVE_VENUS_CFG,
  1373. .channels = 1,
  1374. .buswidth = 4,
  1375. .noc_ops = &qcom_qnoc4_ops,
  1376. .num_links = 0,
  1377. };
  1378. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  1379. .name = "qhs_vsense_ctrl_cfg",
  1380. .id = SLAVE_VSENSE_CTRL_CFG,
  1381. .channels = 1,
  1382. .buswidth = 4,
  1383. .noc_ops = &qcom_qnoc4_ops,
  1384. .num_links = 0,
  1385. };
  1386. static struct qcom_icc_node qhs_wlan_q6 = {
  1387. .name = "qhs_wlan_q6",
  1388. .id = SLAVE_WLAN,
  1389. .channels = 1,
  1390. .buswidth = 4,
  1391. .noc_ops = &qcom_qnoc4_ops,
  1392. .num_links = 0,
  1393. };
  1394. static struct qcom_icc_node qss_mnoc_hf_cfg = {
  1395. .name = "qss_mnoc_hf_cfg",
  1396. .id = SLAVE_CNOC_MNOC_HF_CFG,
  1397. .channels = 1,
  1398. .buswidth = 4,
  1399. .noc_ops = &qcom_qnoc4_ops,
  1400. .num_links = 1,
  1401. .links = { MASTER_CNOC_MNOC_HF_CFG },
  1402. };
  1403. static struct qcom_icc_node qss_mnoc_sf_cfg = {
  1404. .name = "qss_mnoc_sf_cfg",
  1405. .id = SLAVE_CNOC_MNOC_SF_CFG,
  1406. .channels = 1,
  1407. .buswidth = 4,
  1408. .noc_ops = &qcom_qnoc4_ops,
  1409. .num_links = 1,
  1410. .links = { MASTER_CNOC_MNOC_SF_CFG },
  1411. };
  1412. static struct qcom_icc_node qss_nsp_qtb_cfg = {
  1413. .name = "qss_nsp_qtb_cfg",
  1414. .id = SLAVE_NSP_QTB_CFG,
  1415. .channels = 1,
  1416. .buswidth = 4,
  1417. .noc_ops = &qcom_qnoc4_ops,
  1418. .num_links = 0,
  1419. };
  1420. static struct qcom_icc_node qss_pcie_anoc_cfg = {
  1421. .name = "qss_pcie_anoc_cfg",
  1422. .id = SLAVE_PCIE_ANOC_CFG,
  1423. .channels = 1,
  1424. .buswidth = 4,
  1425. .noc_ops = &qcom_qnoc4_ops,
  1426. .num_links = 1,
  1427. .links = { MASTER_PCIE_ANOC_CFG },
  1428. };
  1429. static struct qcom_icc_node qss_wlan_q6_throttle_cfg = {
  1430. .name = "qss_wlan_q6_throttle_cfg",
  1431. .id = SLAVE_WLAN_Q6_THROTTLE_CFG,
  1432. .channels = 1,
  1433. .buswidth = 4,
  1434. .noc_ops = &qcom_qnoc4_ops,
  1435. .num_links = 0,
  1436. };
  1437. static struct qcom_icc_node srvc_cnoc_cfg = {
  1438. .name = "srvc_cnoc_cfg",
  1439. .id = SLAVE_SERVICE_CNOC_CFG,
  1440. .channels = 1,
  1441. .buswidth = 4,
  1442. .noc_ops = &qcom_qnoc4_ops,
  1443. .num_links = 0,
  1444. };
  1445. static struct qcom_icc_node xs_qdss_stm = {
  1446. .name = "xs_qdss_stm",
  1447. .id = SLAVE_QDSS_STM,
  1448. .channels = 1,
  1449. .buswidth = 4,
  1450. .noc_ops = &qcom_qnoc4_ops,
  1451. .num_links = 0,
  1452. };
  1453. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1454. .name = "xs_sys_tcu_cfg",
  1455. .id = SLAVE_TCU,
  1456. .channels = 1,
  1457. .buswidth = 8,
  1458. .noc_ops = &qcom_qnoc4_ops,
  1459. .num_links = 0,
  1460. };
  1461. static struct qcom_icc_node qhs_aoss = {
  1462. .name = "qhs_aoss",
  1463. .id = SLAVE_AOSS,
  1464. .channels = 1,
  1465. .buswidth = 4,
  1466. .noc_ops = &qcom_qnoc4_ops,
  1467. .num_links = 0,
  1468. };
  1469. static struct qcom_icc_node qhs_display_cfg = {
  1470. .name = "qhs_display_cfg",
  1471. .id = SLAVE_DISPLAY_CFG,
  1472. .channels = 1,
  1473. .buswidth = 4,
  1474. .noc_ops = &qcom_qnoc4_ops,
  1475. .num_links = 0,
  1476. };
  1477. static struct qcom_icc_node qhs_ipa = {
  1478. .name = "qhs_ipa",
  1479. .id = SLAVE_IPA_CFG,
  1480. .channels = 1,
  1481. .buswidth = 4,
  1482. .noc_ops = &qcom_qnoc4_ops,
  1483. .num_links = 0,
  1484. };
  1485. static struct qcom_icc_node qhs_ipc_router = {
  1486. .name = "qhs_ipc_router",
  1487. .id = SLAVE_IPC_ROUTER_CFG,
  1488. .channels = 1,
  1489. .buswidth = 4,
  1490. .noc_ops = &qcom_qnoc4_ops,
  1491. .num_links = 0,
  1492. };
  1493. static struct qcom_icc_node qhs_pcie0_cfg = {
  1494. .name = "qhs_pcie0_cfg",
  1495. .id = SLAVE_PCIE_0_CFG,
  1496. .channels = 1,
  1497. .buswidth = 4,
  1498. .noc_ops = &qcom_qnoc4_ops,
  1499. .num_links = 0,
  1500. };
  1501. static struct qcom_icc_node qhs_prng = {
  1502. .name = "qhs_prng",
  1503. .id = SLAVE_PRNG,
  1504. .channels = 1,
  1505. .buswidth = 4,
  1506. .noc_ops = &qcom_qnoc4_ops,
  1507. .num_links = 0,
  1508. };
  1509. static struct qcom_icc_node qhs_tme_cfg = {
  1510. .name = "qhs_tme_cfg",
  1511. .id = SLAVE_TME_CFG,
  1512. .channels = 1,
  1513. .buswidth = 4,
  1514. .noc_ops = &qcom_qnoc4_ops,
  1515. .num_links = 0,
  1516. };
  1517. static struct qcom_icc_node qss_apss = {
  1518. .name = "qss_apss",
  1519. .id = SLAVE_APPSS,
  1520. .channels = 1,
  1521. .buswidth = 4,
  1522. .noc_ops = &qcom_qnoc4_ops,
  1523. .num_links = 0,
  1524. };
  1525. static struct qcom_icc_node qss_cfg = {
  1526. .name = "qss_cfg",
  1527. .id = SLAVE_CNOC_CFG,
  1528. .channels = 1,
  1529. .buswidth = 4,
  1530. .noc_ops = &qcom_qnoc4_ops,
  1531. .num_links = 1,
  1532. .links = { MASTER_CNOC_CFG },
  1533. };
  1534. static struct qcom_icc_node qss_ddrss_cfg = {
  1535. .name = "qss_ddrss_cfg",
  1536. .id = SLAVE_DDRSS_CFG,
  1537. .channels = 1,
  1538. .buswidth = 4,
  1539. .noc_ops = &qcom_qnoc4_ops,
  1540. .num_links = 0,
  1541. };
  1542. static struct qcom_icc_node qxs_imem = {
  1543. .name = "qxs_imem",
  1544. .id = SLAVE_IMEM,
  1545. .channels = 1,
  1546. .buswidth = 8,
  1547. .noc_ops = &qcom_qnoc4_ops,
  1548. .num_links = 0,
  1549. };
  1550. static struct qcom_icc_node srvc_cnoc_main = {
  1551. .name = "srvc_cnoc_main",
  1552. .id = SLAVE_SERVICE_CNOC,
  1553. .channels = 1,
  1554. .buswidth = 4,
  1555. .noc_ops = &qcom_qnoc4_ops,
  1556. .num_links = 0,
  1557. };
  1558. static struct qcom_icc_node xs_pcie_0 = {
  1559. .name = "xs_pcie_0",
  1560. .id = SLAVE_PCIE_0,
  1561. .channels = 1,
  1562. .buswidth = 8,
  1563. .noc_ops = &qcom_qnoc4_ops,
  1564. .num_links = 0,
  1565. };
  1566. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1567. .name = "qns_gem_noc_cnoc",
  1568. .id = SLAVE_GEM_NOC_CNOC,
  1569. .channels = 1,
  1570. .buswidth = 16,
  1571. .noc_ops = &qcom_qnoc4_ops,
  1572. .num_links = 1,
  1573. .links = { MASTER_GEM_NOC_CNOC },
  1574. };
  1575. static struct qcom_icc_node qns_llcc = {
  1576. .name = "qns_llcc",
  1577. .id = SLAVE_LLCC,
  1578. .channels = 4,
  1579. .buswidth = 16,
  1580. .noc_ops = &qcom_qnoc4_ops,
  1581. .num_links = 1,
  1582. .links = { MASTER_LLCC },
  1583. };
  1584. static struct qcom_icc_node qns_pcie = {
  1585. .name = "qns_pcie",
  1586. .id = SLAVE_MEM_NOC_PCIE_SNOC,
  1587. .channels = 1,
  1588. .buswidth = 8,
  1589. .noc_ops = &qcom_qnoc4_ops,
  1590. .num_links = 1,
  1591. .links = { MASTER_GEM_NOC_PCIE_SNOC },
  1592. };
  1593. static struct qcom_icc_node qns_lpass_ag_noc_gemnoc = {
  1594. .name = "qns_lpass_ag_noc_gemnoc",
  1595. .id = SLAVE_LPASS_GEM_NOC,
  1596. .channels = 1,
  1597. .buswidth = 16,
  1598. .noc_ops = &qcom_qnoc4_ops,
  1599. .num_links = 1,
  1600. .links = { MASTER_LPASS_GEM_NOC },
  1601. };
  1602. static struct qcom_icc_node qns_lpass_aggnoc = {
  1603. .name = "qns_lpass_aggnoc",
  1604. .id = SLAVE_LPIAON_NOC_LPASS_AG_NOC,
  1605. .channels = 1,
  1606. .buswidth = 16,
  1607. .noc_ops = &qcom_qnoc4_ops,
  1608. .num_links = 1,
  1609. .links = { MASTER_LPIAON_NOC },
  1610. };
  1611. static struct qcom_icc_node qns_lpi_aon_noc = {
  1612. .name = "qns_lpi_aon_noc",
  1613. .id = SLAVE_LPICX_NOC_LPIAON_NOC,
  1614. .channels = 1,
  1615. .buswidth = 16,
  1616. .noc_ops = &qcom_qnoc4_ops,
  1617. .num_links = 1,
  1618. .links = { MASTER_LPASS_LPINOC },
  1619. };
  1620. static struct qcom_icc_node ebi = {
  1621. .name = "ebi",
  1622. .id = SLAVE_EBI1,
  1623. .channels = 4,
  1624. .buswidth = 4,
  1625. .noc_ops = &qcom_qnoc4_ops,
  1626. .num_links = 0,
  1627. };
  1628. static struct qcom_icc_node qns_mem_noc_hf = {
  1629. .name = "qns_mem_noc_hf",
  1630. .id = SLAVE_MNOC_HF_MEM_NOC,
  1631. .channels = 2,
  1632. .buswidth = 32,
  1633. .noc_ops = &qcom_qnoc4_ops,
  1634. .num_links = 1,
  1635. .links = { MASTER_MNOC_HF_MEM_NOC },
  1636. };
  1637. static struct qcom_icc_node qns_mem_noc_sf = {
  1638. .name = "qns_mem_noc_sf",
  1639. .id = SLAVE_MNOC_SF_MEM_NOC,
  1640. .channels = 2,
  1641. .buswidth = 32,
  1642. .noc_ops = &qcom_qnoc4_ops,
  1643. .num_links = 1,
  1644. .links = { MASTER_MNOC_SF_MEM_NOC },
  1645. };
  1646. static struct qcom_icc_node srvc_mnoc_hf = {
  1647. .name = "srvc_mnoc_hf",
  1648. .id = SLAVE_SERVICE_MNOC_HF,
  1649. .channels = 1,
  1650. .buswidth = 4,
  1651. .noc_ops = &qcom_qnoc4_ops,
  1652. .num_links = 0,
  1653. };
  1654. static struct qcom_icc_node srvc_mnoc_sf = {
  1655. .name = "srvc_mnoc_sf",
  1656. .id = SLAVE_SERVICE_MNOC_SF,
  1657. .channels = 1,
  1658. .buswidth = 4,
  1659. .noc_ops = &qcom_qnoc4_ops,
  1660. .num_links = 0,
  1661. };
  1662. static struct qcom_icc_node qns_nsp_gemnoc = {
  1663. .name = "qns_nsp_gemnoc",
  1664. .id = SLAVE_CDSP_MEM_NOC,
  1665. .channels = 2,
  1666. .buswidth = 32,
  1667. .noc_ops = &qcom_qnoc4_ops,
  1668. .num_links = 1,
  1669. .links = { MASTER_COMPUTE_NOC },
  1670. };
  1671. static struct qcom_icc_node qns_pcie_mem_noc = {
  1672. .name = "qns_pcie_mem_noc",
  1673. .id = SLAVE_ANOC_PCIE_GEM_NOC,
  1674. .channels = 1,
  1675. .buswidth = 8,
  1676. .noc_ops = &qcom_qnoc4_ops,
  1677. .num_links = 1,
  1678. .links = { MASTER_ANOC_PCIE_GEM_NOC },
  1679. };
  1680. static struct qcom_icc_node srvc_pcie_aggre_noc = {
  1681. .name = "srvc_pcie_aggre_noc",
  1682. .id = SLAVE_SERVICE_PCIE_ANOC,
  1683. .channels = 1,
  1684. .buswidth = 4,
  1685. .noc_ops = &qcom_qnoc4_ops,
  1686. .num_links = 0,
  1687. };
  1688. static struct qcom_icc_node qns_gemnoc_sf = {
  1689. .name = "qns_gemnoc_sf",
  1690. .id = SLAVE_SNOC_GEM_NOC_SF,
  1691. .channels = 1,
  1692. .buswidth = 16,
  1693. .noc_ops = &qcom_qnoc4_ops,
  1694. .num_links = 1,
  1695. .links = { MASTER_SNOC_SF_MEM_NOC },
  1696. };
  1697. static struct qcom_icc_node qns_llcc_disp = {
  1698. .name = "qns_llcc_disp",
  1699. .id = SLAVE_LLCC_DISP,
  1700. .channels = 4,
  1701. .buswidth = 16,
  1702. .noc_ops = &qcom_qnoc4_ops,
  1703. .num_links = 1,
  1704. .links = { MASTER_LLCC_DISP },
  1705. };
  1706. static struct qcom_icc_node ebi_disp = {
  1707. .name = "ebi_disp",
  1708. .id = SLAVE_EBI1_DISP,
  1709. .channels = 4,
  1710. .buswidth = 4,
  1711. .noc_ops = &qcom_qnoc4_ops,
  1712. .num_links = 0,
  1713. };
  1714. static struct qcom_icc_node qns_mem_noc_hf_disp = {
  1715. .name = "qns_mem_noc_hf_disp",
  1716. .id = SLAVE_MNOC_HF_MEM_NOC_DISP,
  1717. .channels = 2,
  1718. .buswidth = 32,
  1719. .noc_ops = &qcom_qnoc4_ops,
  1720. .num_links = 1,
  1721. .links = { MASTER_MNOC_HF_MEM_NOC_DISP },
  1722. };
  1723. static struct qcom_icc_node qns_llcc_cam_ife_0 = {
  1724. .name = "qns_llcc_cam_ife_0",
  1725. .id = SLAVE_LLCC_CAM_IFE_0,
  1726. .channels = 4,
  1727. .buswidth = 16,
  1728. .noc_ops = &qcom_qnoc4_ops,
  1729. .num_links = 1,
  1730. .links = { MASTER_LLCC_CAM_IFE_0 },
  1731. };
  1732. static struct qcom_icc_node ebi_cam_ife_0 = {
  1733. .name = "ebi_cam_ife_0",
  1734. .id = SLAVE_EBI1_CAM_IFE_0,
  1735. .channels = 4,
  1736. .buswidth = 4,
  1737. .noc_ops = &qcom_qnoc4_ops,
  1738. .num_links = 0,
  1739. };
  1740. static struct qcom_icc_node qns_mem_noc_hf_cam_ife_0 = {
  1741. .name = "qns_mem_noc_hf_cam_ife_0",
  1742. .id = SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_0,
  1743. .channels = 2,
  1744. .buswidth = 32,
  1745. .noc_ops = &qcom_qnoc4_ops,
  1746. .num_links = 1,
  1747. .links = { MASTER_MNOC_HF_MEM_NOC_CAM_IFE_0 },
  1748. };
  1749. static struct qcom_icc_node qns_mem_noc_sf_cam_ife_0 = {
  1750. .name = "qns_mem_noc_sf_cam_ife_0",
  1751. .id = SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_0,
  1752. .channels = 2,
  1753. .buswidth = 32,
  1754. .noc_ops = &qcom_qnoc4_ops,
  1755. .num_links = 1,
  1756. .links = { MASTER_MNOC_SF_MEM_NOC_CAM_IFE_0 },
  1757. };
  1758. static struct qcom_icc_node qns_llcc_cam_ife_1 = {
  1759. .name = "qns_llcc_cam_ife_1",
  1760. .id = SLAVE_LLCC_CAM_IFE_1,
  1761. .channels = 4,
  1762. .buswidth = 16,
  1763. .noc_ops = &qcom_qnoc4_ops,
  1764. .num_links = 1,
  1765. .links = { MASTER_LLCC_CAM_IFE_1 },
  1766. };
  1767. static struct qcom_icc_node ebi_cam_ife_1 = {
  1768. .name = "ebi_cam_ife_1",
  1769. .id = SLAVE_EBI1_CAM_IFE_1,
  1770. .channels = 4,
  1771. .buswidth = 4,
  1772. .noc_ops = &qcom_qnoc4_ops,
  1773. .num_links = 0,
  1774. };
  1775. static struct qcom_icc_node qns_mem_noc_hf_cam_ife_1 = {
  1776. .name = "qns_mem_noc_hf_cam_ife_1",
  1777. .id = SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_1,
  1778. .channels = 2,
  1779. .buswidth = 32,
  1780. .noc_ops = &qcom_qnoc4_ops,
  1781. .num_links = 1,
  1782. .links = { MASTER_MNOC_HF_MEM_NOC_CAM_IFE_1 },
  1783. };
  1784. static struct qcom_icc_node qns_mem_noc_sf_cam_ife_1 = {
  1785. .name = "qns_mem_noc_sf_cam_ife_1",
  1786. .id = SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_1,
  1787. .channels = 2,
  1788. .buswidth = 32,
  1789. .noc_ops = &qcom_qnoc4_ops,
  1790. .num_links = 1,
  1791. .links = { MASTER_MNOC_SF_MEM_NOC_CAM_IFE_1 },
  1792. };
  1793. static struct qcom_icc_node qns_llcc_cam_ife_2 = {
  1794. .name = "qns_llcc_cam_ife_2",
  1795. .id = SLAVE_LLCC_CAM_IFE_2,
  1796. .channels = 4,
  1797. .buswidth = 16,
  1798. .noc_ops = &qcom_qnoc4_ops,
  1799. .num_links = 1,
  1800. .links = { MASTER_LLCC_CAM_IFE_2 },
  1801. };
  1802. static struct qcom_icc_node ebi_cam_ife_2 = {
  1803. .name = "ebi_cam_ife_2",
  1804. .id = SLAVE_EBI1_CAM_IFE_2,
  1805. .channels = 4,
  1806. .buswidth = 4,
  1807. .noc_ops = &qcom_qnoc4_ops,
  1808. .num_links = 0,
  1809. };
  1810. static struct qcom_icc_node qns_mem_noc_hf_cam_ife_2 = {
  1811. .name = "qns_mem_noc_hf_cam_ife_2",
  1812. .id = SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_2,
  1813. .channels = 2,
  1814. .buswidth = 32,
  1815. .noc_ops = &qcom_qnoc4_ops,
  1816. .num_links = 1,
  1817. .links = { MASTER_MNOC_HF_MEM_NOC_CAM_IFE_2 },
  1818. };
  1819. static struct qcom_icc_node qns_mem_noc_sf_cam_ife_2 = {
  1820. .name = "qns_mem_noc_sf_cam_ife_2",
  1821. .id = SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_2,
  1822. .channels = 2,
  1823. .buswidth = 32,
  1824. .noc_ops = &qcom_qnoc4_ops,
  1825. .num_links = 1,
  1826. .links = { MASTER_MNOC_SF_MEM_NOC_CAM_IFE_2 },
  1827. };
  1828. static struct qcom_icc_node ipa_core_slave_pcie_crm_hw_0 = {
  1829. .name = "ipa_core_slave_pcie_crm_hw_0",
  1830. .id = SLAVE_IPA_CORE_PCIE_CRM_HW_0,
  1831. .channels = 1,
  1832. .buswidth = 8,
  1833. .noc_ops = &qcom_qnoc4_ops,
  1834. .num_links = 0,
  1835. };
  1836. static struct qcom_icc_node qns_llcc_pcie_crm_hw_0 = {
  1837. .name = "qns_llcc_pcie_crm_hw_0",
  1838. .id = SLAVE_LLCC_PCIE_CRM_HW_0,
  1839. .channels = 4,
  1840. .buswidth = 16,
  1841. .noc_ops = &qcom_qnoc4_ops,
  1842. .num_links = 1,
  1843. .links = { MASTER_LLCC_PCIE_CRM_HW_0 },
  1844. };
  1845. static struct qcom_icc_node ebi_pcie_crm_hw_0 = {
  1846. .name = "ebi_pcie_crm_hw_0",
  1847. .id = SLAVE_EBI1_PCIE_CRM_HW_0,
  1848. .channels = 4,
  1849. .buswidth = 4,
  1850. .noc_ops = &qcom_qnoc4_ops,
  1851. .num_links = 0,
  1852. };
  1853. static struct qcom_icc_node qns_pcie_mem_noc_pcie_crm_hw_0 = {
  1854. .name = "qns_pcie_mem_noc_pcie_crm_hw_0",
  1855. .id = SLAVE_ANOC_PCIE_GEM_NOC_PCIE_CRM_HW_0,
  1856. .channels = 1,
  1857. .buswidth = 8,
  1858. .noc_ops = &qcom_qnoc4_ops,
  1859. .num_links = 1,
  1860. .links = { MASTER_ANOC_PCIE_GEM_NOC_PCIE_CRM_HW_0 },
  1861. };
  1862. static struct qcom_icc_bcm bcm_acv = {
  1863. .name = "ACV",
  1864. .voter_idx = VOTER_IDX_HLOS,
  1865. .enable_mask = 0x1,
  1866. .perf_mode_mask = 0x2,
  1867. .num_nodes = 1,
  1868. .nodes = { &ebi },
  1869. };
  1870. static struct qcom_icc_bcm bcm_ce0 = {
  1871. .name = "CE0",
  1872. .voter_idx = VOTER_IDX_HLOS,
  1873. .num_nodes = 1,
  1874. .nodes = { &qxm_crypto },
  1875. };
  1876. static struct qcom_icc_bcm bcm_cn0 = {
  1877. .name = "CN0",
  1878. .voter_idx = VOTER_IDX_HLOS,
  1879. .enable_mask = 0x1,
  1880. .keepalive = true,
  1881. .num_nodes = 52,
  1882. .nodes = { &qsm_cfg, &qhs_ahb2phy0,
  1883. &qhs_ahb2phy1, &qhs_camera_cfg,
  1884. &qhs_clk_ctl, &qhs_cpr_cx,
  1885. &qhs_cpr_mmcx, &qhs_cpr_mxc,
  1886. &qhs_cpr_nspcx, &qhs_crypto0_cfg,
  1887. &qhs_cx_rdpm, &qhs_gpuss_cfg,
  1888. &qhs_i3c_ibi0_cfg, &qhs_i3c_ibi1_cfg,
  1889. &qhs_imem_cfg, &qhs_mss_cfg,
  1890. &qhs_mx_2_rdpm, &qhs_mx_rdpm,
  1891. &qhs_pcie_rscc, &qhs_pdm,
  1892. &qhs_qdss_cfg, &qhs_qspi,
  1893. &qhs_sdc2, &qhs_tcsr,
  1894. &qhs_tlmm, &qhs_ufs_mem_cfg,
  1895. &qhs_usb3_0, &qhs_venus_cfg,
  1896. &qhs_vsense_ctrl_cfg, &qhs_wlan_q6,
  1897. &qss_mnoc_hf_cfg, &qss_mnoc_sf_cfg,
  1898. &qss_nsp_qtb_cfg, &qss_pcie_anoc_cfg,
  1899. &qss_wlan_q6_throttle_cfg, &srvc_cnoc_cfg,
  1900. &xs_qdss_stm, &xs_sys_tcu_cfg,
  1901. &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie,
  1902. &qhs_aoss, &qhs_ipa,
  1903. &qhs_ipc_router, &qhs_pcie0_cfg,
  1904. &qhs_prng, &qhs_tme_cfg,
  1905. &qss_apss, &qss_cfg,
  1906. &qss_ddrss_cfg, &qxs_imem,
  1907. &srvc_cnoc_main, &xs_pcie_0 },
  1908. };
  1909. static struct qcom_icc_bcm bcm_cn1 = {
  1910. .name = "CN1",
  1911. .voter_idx = VOTER_IDX_HLOS,
  1912. .num_nodes = 3,
  1913. .nodes = { &qhs_qup0, &qhs_qup1,
  1914. &qhs_display_cfg },
  1915. };
  1916. static struct qcom_icc_bcm bcm_co0 = {
  1917. .name = "CO0",
  1918. .voter_idx = VOTER_IDX_HLOS,
  1919. .enable_mask = 0x1,
  1920. .num_nodes = 2,
  1921. .nodes = { &qxm_nsp, &qns_nsp_gemnoc },
  1922. };
  1923. static struct qcom_icc_bcm bcm_lp0 = {
  1924. .name = "LP0",
  1925. .voter_idx = VOTER_IDX_HLOS,
  1926. .num_nodes = 2,
  1927. .nodes = { &qnm_lpass_lpinoc, &qns_lpass_aggnoc },
  1928. };
  1929. static struct qcom_icc_bcm bcm_mc0 = {
  1930. .name = "MC0",
  1931. .voter_idx = VOTER_IDX_HLOS,
  1932. .keepalive = true,
  1933. .num_nodes = 1,
  1934. .nodes = { &ebi },
  1935. };
  1936. static struct qcom_icc_bcm bcm_mm0 = {
  1937. .name = "MM0",
  1938. .voter_idx = VOTER_IDX_HLOS,
  1939. .keepalive_early = true,
  1940. .num_nodes = 1,
  1941. .nodes = { &qns_mem_noc_hf },
  1942. };
  1943. static struct qcom_icc_bcm bcm_mm1 = {
  1944. .name = "MM1",
  1945. .voter_idx = VOTER_IDX_HLOS,
  1946. .enable_mask = 0x1,
  1947. .num_nodes = 7,
  1948. .nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
  1949. &qnm_camnoc_sf, &qnm_video_cv_cpu,
  1950. &qnm_video_cvp, &qnm_video_v_cpu,
  1951. &qns_mem_noc_sf },
  1952. };
  1953. static struct qcom_icc_bcm bcm_qup0 = {
  1954. .name = "QUP0",
  1955. .voter_idx = VOTER_IDX_HLOS,
  1956. .keepalive = true,
  1957. .vote_scale = 1,
  1958. .num_nodes = 1,
  1959. .nodes = { &qup0_core_slave },
  1960. };
  1961. static struct qcom_icc_bcm bcm_qup1 = {
  1962. .name = "QUP1",
  1963. .voter_idx = VOTER_IDX_HLOS,
  1964. .keepalive = true,
  1965. .vote_scale = 1,
  1966. .num_nodes = 1,
  1967. .nodes = { &qup1_core_slave },
  1968. };
  1969. static struct qcom_icc_bcm bcm_sh0 = {
  1970. .name = "SH0",
  1971. .voter_idx = VOTER_IDX_HLOS,
  1972. .keepalive = true,
  1973. .num_nodes = 1,
  1974. .nodes = { &qns_llcc },
  1975. };
  1976. static struct qcom_icc_bcm bcm_sh1 = {
  1977. .name = "SH1",
  1978. .voter_idx = VOTER_IDX_HLOS,
  1979. .enable_mask = 0x1,
  1980. .num_nodes = 14,
  1981. .nodes = { &alm_gpu_tcu, &alm_sys_tcu,
  1982. &chm_apps, &qnm_gpu,
  1983. &qnm_mdsp, &qnm_mnoc_hf,
  1984. &qnm_mnoc_sf, &qnm_nsp_gemnoc,
  1985. &qnm_pcie, &qnm_snoc_sf,
  1986. &qxm_wlan_q6, &xm_gic,
  1987. &qns_gem_noc_cnoc, &qns_pcie },
  1988. };
  1989. static struct qcom_icc_bcm bcm_sn0 = {
  1990. .name = "SN0",
  1991. .voter_idx = VOTER_IDX_HLOS,
  1992. .keepalive = true,
  1993. .num_nodes = 1,
  1994. .nodes = { &qns_gemnoc_sf },
  1995. };
  1996. static struct qcom_icc_bcm bcm_sn2 = {
  1997. .name = "SN2",
  1998. .voter_idx = VOTER_IDX_HLOS,
  1999. .num_nodes = 1,
  2000. .nodes = { &qnm_aggre1_noc },
  2001. };
  2002. static struct qcom_icc_bcm bcm_sn3 = {
  2003. .name = "SN3",
  2004. .voter_idx = VOTER_IDX_HLOS,
  2005. .num_nodes = 1,
  2006. .nodes = { &qnm_aggre2_noc },
  2007. };
  2008. static struct qcom_icc_bcm bcm_sn4 = {
  2009. .name = "SN4",
  2010. .voter_idx = VOTER_IDX_HLOS,
  2011. .num_nodes = 1,
  2012. .nodes = { &qns_pcie_mem_noc },
  2013. };
  2014. static struct qcom_icc_bcm bcm_acv_disp = {
  2015. .name = "ACV",
  2016. .voter_idx = VOTER_IDX_DISP,
  2017. .enable_mask = 0x1,
  2018. .perf_mode_mask = 0x2,
  2019. .num_nodes = 1,
  2020. .nodes = { &ebi_disp },
  2021. };
  2022. static struct qcom_icc_bcm bcm_mc0_disp = {
  2023. .name = "MC0",
  2024. .voter_idx = VOTER_IDX_DISP,
  2025. .num_nodes = 1,
  2026. .nodes = { &ebi_disp },
  2027. };
  2028. static struct qcom_icc_bcm bcm_mm0_disp = {
  2029. .name = "MM0",
  2030. .voter_idx = VOTER_IDX_DISP,
  2031. .num_nodes = 1,
  2032. .nodes = { &qns_mem_noc_hf_disp },
  2033. };
  2034. static struct qcom_icc_bcm bcm_sh0_disp = {
  2035. .name = "SH0",
  2036. .voter_idx = VOTER_IDX_DISP,
  2037. .num_nodes = 1,
  2038. .nodes = { &qns_llcc_disp },
  2039. };
  2040. static struct qcom_icc_bcm bcm_sh1_disp = {
  2041. .name = "SH1",
  2042. .voter_idx = VOTER_IDX_DISP,
  2043. .enable_mask = 0x1,
  2044. .num_nodes = 2,
  2045. .nodes = { &qnm_mnoc_hf_disp, &qnm_pcie_disp },
  2046. };
  2047. static struct qcom_icc_bcm bcm_acv_cam_ife_0 = {
  2048. .name = "ACV",
  2049. .voter_idx = VOTER_IDX_CAM_IFE_0,
  2050. .enable_mask = 0x1,
  2051. .num_nodes = 1,
  2052. .nodes = { &ebi_cam_ife_0 },
  2053. };
  2054. static struct qcom_icc_bcm bcm_mc0_cam_ife_0 = {
  2055. .name = "MC0",
  2056. .voter_idx = VOTER_IDX_CAM_IFE_0,
  2057. .num_nodes = 1,
  2058. .nodes = { &ebi_cam_ife_0 },
  2059. };
  2060. static struct qcom_icc_bcm bcm_mm0_cam_ife_0 = {
  2061. .name = "MM0",
  2062. .voter_idx = VOTER_IDX_CAM_IFE_0,
  2063. .num_nodes = 1,
  2064. .nodes = { &qns_mem_noc_hf_cam_ife_0 },
  2065. };
  2066. static struct qcom_icc_bcm bcm_mm1_cam_ife_0 = {
  2067. .name = "MM1",
  2068. .voter_idx = VOTER_IDX_CAM_IFE_0,
  2069. .enable_mask = 0x1,
  2070. .num_nodes = 4,
  2071. .nodes = { &qnm_camnoc_hf_cam_ife_0, &qnm_camnoc_icp_cam_ife_0,
  2072. &qnm_camnoc_sf_cam_ife_0, &qns_mem_noc_sf_cam_ife_0 },
  2073. };
  2074. static struct qcom_icc_bcm bcm_sh0_cam_ife_0 = {
  2075. .name = "SH0",
  2076. .voter_idx = VOTER_IDX_CAM_IFE_0,
  2077. .num_nodes = 1,
  2078. .nodes = { &qns_llcc_cam_ife_0 },
  2079. };
  2080. static struct qcom_icc_bcm bcm_sh1_cam_ife_0 = {
  2081. .name = "SH1",
  2082. .voter_idx = VOTER_IDX_CAM_IFE_0,
  2083. .enable_mask = 0x1,
  2084. .num_nodes = 3,
  2085. .nodes = { &qnm_mnoc_hf_cam_ife_0, &qnm_mnoc_sf_cam_ife_0,
  2086. &qnm_pcie_cam_ife_0 },
  2087. };
  2088. static struct qcom_icc_bcm bcm_acv_cam_ife_1 = {
  2089. .name = "ACV",
  2090. .voter_idx = VOTER_IDX_CAM_IFE_1,
  2091. .enable_mask = 0x1,
  2092. .num_nodes = 1,
  2093. .nodes = { &ebi_cam_ife_1 },
  2094. };
  2095. static struct qcom_icc_bcm bcm_mc0_cam_ife_1 = {
  2096. .name = "MC0",
  2097. .voter_idx = VOTER_IDX_CAM_IFE_1,
  2098. .num_nodes = 1,
  2099. .nodes = { &ebi_cam_ife_1 },
  2100. };
  2101. static struct qcom_icc_bcm bcm_mm0_cam_ife_1 = {
  2102. .name = "MM0",
  2103. .voter_idx = VOTER_IDX_CAM_IFE_1,
  2104. .num_nodes = 1,
  2105. .nodes = { &qns_mem_noc_hf_cam_ife_1 },
  2106. };
  2107. static struct qcom_icc_bcm bcm_mm1_cam_ife_1 = {
  2108. .name = "MM1",
  2109. .voter_idx = VOTER_IDX_CAM_IFE_1,
  2110. .enable_mask = 0x1,
  2111. .num_nodes = 4,
  2112. .nodes = { &qnm_camnoc_hf_cam_ife_1, &qnm_camnoc_icp_cam_ife_1,
  2113. &qnm_camnoc_sf_cam_ife_1, &qns_mem_noc_sf_cam_ife_1 },
  2114. };
  2115. static struct qcom_icc_bcm bcm_sh0_cam_ife_1 = {
  2116. .name = "SH0",
  2117. .voter_idx = VOTER_IDX_CAM_IFE_1,
  2118. .num_nodes = 1,
  2119. .nodes = { &qns_llcc_cam_ife_1 },
  2120. };
  2121. static struct qcom_icc_bcm bcm_sh1_cam_ife_1 = {
  2122. .name = "SH1",
  2123. .voter_idx = VOTER_IDX_CAM_IFE_1,
  2124. .enable_mask = 0x1,
  2125. .num_nodes = 3,
  2126. .nodes = { &qnm_mnoc_hf_cam_ife_1, &qnm_mnoc_sf_cam_ife_1,
  2127. &qnm_pcie_cam_ife_1 },
  2128. };
  2129. static struct qcom_icc_bcm bcm_acv_cam_ife_2 = {
  2130. .name = "ACV",
  2131. .voter_idx = VOTER_IDX_CAM_IFE_2,
  2132. .enable_mask = 0x1,
  2133. .num_nodes = 1,
  2134. .nodes = { &ebi_cam_ife_2 },
  2135. };
  2136. static struct qcom_icc_bcm bcm_mc0_cam_ife_2 = {
  2137. .name = "MC0",
  2138. .voter_idx = VOTER_IDX_CAM_IFE_2,
  2139. .num_nodes = 1,
  2140. .nodes = { &ebi_cam_ife_2 },
  2141. };
  2142. static struct qcom_icc_bcm bcm_mm0_cam_ife_2 = {
  2143. .name = "MM0",
  2144. .voter_idx = VOTER_IDX_CAM_IFE_2,
  2145. .num_nodes = 1,
  2146. .nodes = { &qns_mem_noc_hf_cam_ife_2 },
  2147. };
  2148. static struct qcom_icc_bcm bcm_mm1_cam_ife_2 = {
  2149. .name = "MM1",
  2150. .voter_idx = VOTER_IDX_CAM_IFE_2,
  2151. .enable_mask = 0x1,
  2152. .num_nodes = 4,
  2153. .nodes = { &qnm_camnoc_hf_cam_ife_2, &qnm_camnoc_icp_cam_ife_2,
  2154. &qnm_camnoc_sf_cam_ife_2, &qns_mem_noc_sf_cam_ife_2 },
  2155. };
  2156. static struct qcom_icc_bcm bcm_sh0_cam_ife_2 = {
  2157. .name = "SH0",
  2158. .voter_idx = VOTER_IDX_CAM_IFE_2,
  2159. .num_nodes = 1,
  2160. .nodes = { &qns_llcc_cam_ife_2 },
  2161. };
  2162. static struct qcom_icc_bcm bcm_sh1_cam_ife_2 = {
  2163. .name = "SH1",
  2164. .voter_idx = VOTER_IDX_CAM_IFE_2,
  2165. .enable_mask = 0x1,
  2166. .num_nodes = 3,
  2167. .nodes = { &qnm_mnoc_hf_cam_ife_2, &qnm_mnoc_sf_cam_ife_2,
  2168. &qnm_pcie_cam_ife_2 },
  2169. };
  2170. static struct qcom_icc_bcm bcm_acv_pcie_crm_hw_0 = {
  2171. .name = "ACV",
  2172. .voter_idx = VOTER_IDX_PCIE_CRM_HW_0,
  2173. .crm_node = 5,
  2174. .enable_mask = 0x1,
  2175. .num_nodes = 1,
  2176. .nodes = { &ebi_pcie_crm_hw_0 },
  2177. };
  2178. static struct qcom_icc_bcm bcm_ip0_pcie_crm_hw_0 = {
  2179. .name = "IP0",
  2180. .voter_idx = VOTER_IDX_PCIE_CRM_HW_0,
  2181. .crm_node = 4,
  2182. .vote_scale = 1,
  2183. .num_nodes = 1,
  2184. .nodes = { &ipa_core_slave_pcie_crm_hw_0 },
  2185. };
  2186. static struct qcom_icc_bcm bcm_mc0_pcie_crm_hw_0 = {
  2187. .name = "MC0",
  2188. .voter_idx = VOTER_IDX_PCIE_CRM_HW_0,
  2189. .crm_node = 0,
  2190. .num_nodes = 1,
  2191. .nodes = { &ebi_pcie_crm_hw_0 },
  2192. };
  2193. static struct qcom_icc_bcm bcm_sh0_pcie_crm_hw_0 = {
  2194. .name = "SH0",
  2195. .voter_idx = VOTER_IDX_PCIE_CRM_HW_0,
  2196. .crm_node = 1,
  2197. .num_nodes = 1,
  2198. .nodes = { &qns_llcc_pcie_crm_hw_0 },
  2199. };
  2200. static struct qcom_icc_bcm bcm_sh1_pcie_crm_hw_0 = {
  2201. .name = "SH1",
  2202. .voter_idx = VOTER_IDX_PCIE_CRM_HW_0,
  2203. .crm_node = 2,
  2204. .enable_mask = 0x1,
  2205. .num_nodes = 1,
  2206. .nodes = { &qnm_pcie_pcie_crm_hw_0 },
  2207. };
  2208. static struct qcom_icc_bcm bcm_sn4_pcie_crm_hw_0 = {
  2209. .name = "SN4",
  2210. .voter_idx = VOTER_IDX_PCIE_CRM_HW_0,
  2211. .crm_node = 3,
  2212. .num_nodes = 1,
  2213. .nodes = { &qns_pcie_mem_noc_pcie_crm_hw_0 },
  2214. };
  2215. static struct qcom_icc_bcm *aggre1_noc_bcms[] = {
  2216. };
  2217. static struct qcom_icc_node *aggre1_noc_nodes[] = {
  2218. [MASTER_QSPI_0] = &qhm_qspi,
  2219. [MASTER_QUP_0] = &qhm_qup0,
  2220. [MASTER_SDCC_2] = &xm_sdc2,
  2221. [MASTER_UFS_MEM] = &xm_ufs_mem,
  2222. [MASTER_USB3_0] = &xm_usb3_0,
  2223. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  2224. };
  2225. static char *aggre1_noc_voters[] = {
  2226. [VOTER_IDX_HLOS] = "hlos",
  2227. };
  2228. static struct qcom_icc_desc cliffs_aggre1_noc = {
  2229. .config = &icc_regmap_config,
  2230. .nodes = aggre1_noc_nodes,
  2231. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  2232. .bcms = aggre1_noc_bcms,
  2233. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  2234. .voters = aggre1_noc_voters,
  2235. .num_voters = ARRAY_SIZE(aggre1_noc_voters),
  2236. };
  2237. static struct qcom_icc_bcm *aggre2_noc_bcms[] = {
  2238. &bcm_ce0,
  2239. };
  2240. static struct qcom_icc_node *aggre2_noc_nodes[] = {
  2241. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  2242. [MASTER_QUP_1] = &qhm_qup1,
  2243. [MASTER_CRYPTO] = &qxm_crypto,
  2244. [MASTER_IPA] = &qxm_ipa,
  2245. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  2246. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  2247. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  2248. };
  2249. static char *aggre2_noc_voters[] = {
  2250. [VOTER_IDX_HLOS] = "hlos",
  2251. };
  2252. static struct qcom_icc_desc cliffs_aggre2_noc = {
  2253. .config = &icc_regmap_config,
  2254. .nodes = aggre2_noc_nodes,
  2255. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  2256. .bcms = aggre2_noc_bcms,
  2257. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  2258. .voters = aggre2_noc_voters,
  2259. .num_voters = ARRAY_SIZE(aggre2_noc_voters),
  2260. };
  2261. static struct qcom_icc_bcm *clk_virt_bcms[] = {
  2262. &bcm_qup0,
  2263. &bcm_qup1,
  2264. &bcm_ip0_pcie_crm_hw_0,
  2265. };
  2266. static struct qcom_icc_node *clk_virt_nodes[] = {
  2267. [MASTER_QUP_CORE_0] = &qup0_core_master,
  2268. [MASTER_QUP_CORE_1] = &qup1_core_master,
  2269. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  2270. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  2271. [MASTER_IPA_CORE_PCIE_CRM_HW_0] = &ipa_core_master_pcie_crm_hw_0,
  2272. [SLAVE_IPA_CORE_PCIE_CRM_HW_0] = &ipa_core_slave_pcie_crm_hw_0,
  2273. };
  2274. static char *clk_virt_voters[] = {
  2275. [VOTER_IDX_HLOS] = "hlos",
  2276. [VOTER_IDX_PCIE_CRM_HW_0] = "pcie_crm_hw_0",
  2277. };
  2278. static struct qcom_icc_desc cliffs_clk_virt = {
  2279. .config = &icc_regmap_config,
  2280. .nodes = clk_virt_nodes,
  2281. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  2282. .bcms = clk_virt_bcms,
  2283. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  2284. .voters = clk_virt_voters,
  2285. .num_voters = ARRAY_SIZE(clk_virt_voters),
  2286. };
  2287. static struct qcom_icc_bcm *cnoc_cfg_bcms[] = {
  2288. &bcm_cn0,
  2289. &bcm_cn1,
  2290. };
  2291. static struct qcom_icc_node *cnoc_cfg_nodes[] = {
  2292. [MASTER_CNOC_CFG] = &qsm_cfg,
  2293. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  2294. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  2295. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  2296. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  2297. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  2298. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  2299. [SLAVE_RBCPR_MXC_CFG] = &qhs_cpr_mxc,
  2300. [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
  2301. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  2302. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  2303. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  2304. [SLAVE_I3C_IBI0_CFG] = &qhs_i3c_ibi0_cfg,
  2305. [SLAVE_I3C_IBI1_CFG] = &qhs_i3c_ibi1_cfg,
  2306. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  2307. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  2308. [SLAVE_MX_2_RDPM] = &qhs_mx_2_rdpm,
  2309. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  2310. [SLAVE_PCIE_RSCC] = &qhs_pcie_rscc,
  2311. [SLAVE_PDM] = &qhs_pdm,
  2312. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  2313. [SLAVE_QSPI_0] = &qhs_qspi,
  2314. [SLAVE_QUP_0] = &qhs_qup0,
  2315. [SLAVE_QUP_1] = &qhs_qup1,
  2316. [SLAVE_SDCC_2] = &qhs_sdc2,
  2317. [SLAVE_TCSR] = &qhs_tcsr,
  2318. [SLAVE_TLMM] = &qhs_tlmm,
  2319. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  2320. [SLAVE_USB3_0] = &qhs_usb3_0,
  2321. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  2322. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  2323. [SLAVE_WLAN] = &qhs_wlan_q6,
  2324. [SLAVE_CNOC_MNOC_HF_CFG] = &qss_mnoc_hf_cfg,
  2325. [SLAVE_CNOC_MNOC_SF_CFG] = &qss_mnoc_sf_cfg,
  2326. [SLAVE_NSP_QTB_CFG] = &qss_nsp_qtb_cfg,
  2327. [SLAVE_PCIE_ANOC_CFG] = &qss_pcie_anoc_cfg,
  2328. [SLAVE_WLAN_Q6_THROTTLE_CFG] = &qss_wlan_q6_throttle_cfg,
  2329. [SLAVE_SERVICE_CNOC_CFG] = &srvc_cnoc_cfg,
  2330. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  2331. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  2332. };
  2333. static char *cnoc_cfg_voters[] = {
  2334. [VOTER_IDX_HLOS] = "hlos",
  2335. };
  2336. static struct qcom_icc_desc cliffs_cnoc_cfg = {
  2337. .config = &icc_regmap_config,
  2338. .nodes = cnoc_cfg_nodes,
  2339. .num_nodes = ARRAY_SIZE(cnoc_cfg_nodes),
  2340. .bcms = cnoc_cfg_bcms,
  2341. .num_bcms = ARRAY_SIZE(cnoc_cfg_bcms),
  2342. .voters = cnoc_cfg_voters,
  2343. .num_voters = ARRAY_SIZE(cnoc_cfg_voters),
  2344. };
  2345. static struct qcom_icc_bcm *cnoc_main_bcms[] = {
  2346. &bcm_cn0,
  2347. &bcm_cn1,
  2348. };
  2349. static struct qcom_icc_node *cnoc_main_nodes[] = {
  2350. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  2351. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  2352. [SLAVE_AOSS] = &qhs_aoss,
  2353. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  2354. [SLAVE_IPA_CFG] = &qhs_ipa,
  2355. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  2356. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  2357. [SLAVE_PRNG] = &qhs_prng,
  2358. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  2359. [SLAVE_APPSS] = &qss_apss,
  2360. [SLAVE_CNOC_CFG] = &qss_cfg,
  2361. [SLAVE_DDRSS_CFG] = &qss_ddrss_cfg,
  2362. [SLAVE_IMEM] = &qxs_imem,
  2363. [SLAVE_SERVICE_CNOC] = &srvc_cnoc_main,
  2364. [SLAVE_PCIE_0] = &xs_pcie_0,
  2365. };
  2366. static char *cnoc_main_voters[] = {
  2367. [VOTER_IDX_HLOS] = "hlos",
  2368. };
  2369. static struct qcom_icc_desc cliffs_cnoc_main = {
  2370. .config = &icc_regmap_config,
  2371. .nodes = cnoc_main_nodes,
  2372. .num_nodes = ARRAY_SIZE(cnoc_main_nodes),
  2373. .bcms = cnoc_main_bcms,
  2374. .num_bcms = ARRAY_SIZE(cnoc_main_bcms),
  2375. .voters = cnoc_main_voters,
  2376. .num_voters = ARRAY_SIZE(cnoc_main_voters),
  2377. };
  2378. static struct qcom_icc_bcm *gem_noc_bcms[] = {
  2379. &bcm_sh0,
  2380. &bcm_sh1,
  2381. &bcm_sh0_disp,
  2382. &bcm_sh1_disp,
  2383. &bcm_sh0_cam_ife_0,
  2384. &bcm_sh1_cam_ife_0,
  2385. &bcm_sh0_cam_ife_1,
  2386. &bcm_sh1_cam_ife_1,
  2387. &bcm_sh0_cam_ife_2,
  2388. &bcm_sh1_cam_ife_2,
  2389. &bcm_sh0_pcie_crm_hw_0,
  2390. &bcm_sh1_pcie_crm_hw_0,
  2391. };
  2392. static struct qcom_icc_node *gem_noc_nodes[] = {
  2393. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  2394. [MASTER_SYS_TCU] = &alm_sys_tcu,
  2395. [MASTER_APPSS_PROC] = &chm_apps,
  2396. [MASTER_GFX3D] = &qnm_gpu,
  2397. [MASTER_LPASS_GEM_NOC] = &qnm_lpass_gemnoc,
  2398. [MASTER_MSS_PROC] = &qnm_mdsp,
  2399. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  2400. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  2401. [MASTER_COMPUTE_NOC] = &qnm_nsp_gemnoc,
  2402. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  2403. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  2404. [MASTER_WLAN_Q6] = &qxm_wlan_q6,
  2405. [MASTER_GIC] = &xm_gic,
  2406. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  2407. [SLAVE_LLCC] = &qns_llcc,
  2408. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  2409. [MASTER_MNOC_HF_MEM_NOC_DISP] = &qnm_mnoc_hf_disp,
  2410. [MASTER_ANOC_PCIE_GEM_NOC_DISP] = &qnm_pcie_disp,
  2411. [SLAVE_LLCC_DISP] = &qns_llcc_disp,
  2412. [MASTER_MNOC_HF_MEM_NOC_CAM_IFE_0] = &qnm_mnoc_hf_cam_ife_0,
  2413. [MASTER_MNOC_SF_MEM_NOC_CAM_IFE_0] = &qnm_mnoc_sf_cam_ife_0,
  2414. [MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_0] = &qnm_pcie_cam_ife_0,
  2415. [SLAVE_LLCC_CAM_IFE_0] = &qns_llcc_cam_ife_0,
  2416. [MASTER_MNOC_HF_MEM_NOC_CAM_IFE_1] = &qnm_mnoc_hf_cam_ife_1,
  2417. [MASTER_MNOC_SF_MEM_NOC_CAM_IFE_1] = &qnm_mnoc_sf_cam_ife_1,
  2418. [MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_1] = &qnm_pcie_cam_ife_1,
  2419. [SLAVE_LLCC_CAM_IFE_1] = &qns_llcc_cam_ife_1,
  2420. [MASTER_MNOC_HF_MEM_NOC_CAM_IFE_2] = &qnm_mnoc_hf_cam_ife_2,
  2421. [MASTER_MNOC_SF_MEM_NOC_CAM_IFE_2] = &qnm_mnoc_sf_cam_ife_2,
  2422. [MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_2] = &qnm_pcie_cam_ife_2,
  2423. [SLAVE_LLCC_CAM_IFE_2] = &qns_llcc_cam_ife_2,
  2424. [MASTER_ANOC_PCIE_GEM_NOC_PCIE_CRM_HW_0] = &qnm_pcie_pcie_crm_hw_0,
  2425. [SLAVE_LLCC_PCIE_CRM_HW_0] = &qns_llcc_pcie_crm_hw_0,
  2426. };
  2427. static char *gem_noc_voters[] = {
  2428. [VOTER_IDX_HLOS] = "hlos",
  2429. [VOTER_IDX_DISP] = "disp",
  2430. [VOTER_IDX_CAM_IFE_0] = "cam_ife_0",
  2431. [VOTER_IDX_CAM_IFE_1] = "cam_ife_1",
  2432. [VOTER_IDX_CAM_IFE_2] = "cam_ife_2",
  2433. [VOTER_IDX_PCIE_CRM_HW_0] = "pcie_crm_hw_0",
  2434. };
  2435. static struct qcom_icc_desc cliffs_gem_noc = {
  2436. .config = &icc_regmap_config,
  2437. .nodes = gem_noc_nodes,
  2438. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  2439. .bcms = gem_noc_bcms,
  2440. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  2441. .voters = gem_noc_voters,
  2442. .num_voters = ARRAY_SIZE(gem_noc_voters),
  2443. };
  2444. static struct qcom_icc_bcm *lpass_ag_noc_bcms[] = {
  2445. };
  2446. static struct qcom_icc_node *lpass_ag_noc_nodes[] = {
  2447. [MASTER_LPIAON_NOC] = &qnm_lpiaon_noc,
  2448. [SLAVE_LPASS_GEM_NOC] = &qns_lpass_ag_noc_gemnoc,
  2449. };
  2450. static char *lpass_ag_noc_voters[] = {
  2451. [VOTER_IDX_HLOS] = "hlos",
  2452. };
  2453. static struct qcom_icc_desc cliffs_lpass_ag_noc = {
  2454. .config = &icc_regmap_config,
  2455. .nodes = lpass_ag_noc_nodes,
  2456. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  2457. .bcms = lpass_ag_noc_bcms,
  2458. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  2459. .voters = lpass_ag_noc_voters,
  2460. .num_voters = ARRAY_SIZE(lpass_ag_noc_voters),
  2461. };
  2462. static struct qcom_icc_bcm *lpass_lpiaon_noc_bcms[] = {
  2463. &bcm_lp0,
  2464. };
  2465. static struct qcom_icc_node *lpass_lpiaon_noc_nodes[] = {
  2466. [MASTER_LPASS_LPINOC] = &qnm_lpass_lpinoc,
  2467. [SLAVE_LPIAON_NOC_LPASS_AG_NOC] = &qns_lpass_aggnoc,
  2468. };
  2469. static char *lpass_lpiaon_noc_voters[] = {
  2470. [VOTER_IDX_HLOS] = "hlos",
  2471. };
  2472. static struct qcom_icc_desc cliffs_lpass_lpiaon_noc = {
  2473. .config = &icc_regmap_config,
  2474. .nodes = lpass_lpiaon_noc_nodes,
  2475. .num_nodes = ARRAY_SIZE(lpass_lpiaon_noc_nodes),
  2476. .bcms = lpass_lpiaon_noc_bcms,
  2477. .num_bcms = ARRAY_SIZE(lpass_lpiaon_noc_bcms),
  2478. .voters = lpass_lpiaon_noc_voters,
  2479. .num_voters = ARRAY_SIZE(lpass_lpiaon_noc_voters),
  2480. };
  2481. static struct qcom_icc_bcm *lpass_lpicx_noc_bcms[] = {
  2482. };
  2483. static struct qcom_icc_node *lpass_lpicx_noc_nodes[] = {
  2484. [MASTER_LPASS_PROC] = &qxm_lpinoc_dsp_axim,
  2485. [SLAVE_LPICX_NOC_LPIAON_NOC] = &qns_lpi_aon_noc,
  2486. };
  2487. static char *lpass_lpicx_noc_voters[] = {
  2488. [VOTER_IDX_HLOS] = "hlos",
  2489. };
  2490. static struct qcom_icc_desc cliffs_lpass_lpicx_noc = {
  2491. .config = &icc_regmap_config,
  2492. .nodes = lpass_lpicx_noc_nodes,
  2493. .num_nodes = ARRAY_SIZE(lpass_lpicx_noc_nodes),
  2494. .bcms = lpass_lpicx_noc_bcms,
  2495. .num_bcms = ARRAY_SIZE(lpass_lpicx_noc_bcms),
  2496. .voters = lpass_lpicx_noc_voters,
  2497. .num_voters = ARRAY_SIZE(lpass_lpicx_noc_voters),
  2498. };
  2499. static struct qcom_icc_bcm *mc_virt_bcms[] = {
  2500. &bcm_acv,
  2501. &bcm_mc0,
  2502. &bcm_acv_disp,
  2503. &bcm_mc0_disp,
  2504. &bcm_acv_cam_ife_0,
  2505. &bcm_mc0_cam_ife_0,
  2506. &bcm_acv_cam_ife_1,
  2507. &bcm_mc0_cam_ife_1,
  2508. &bcm_acv_cam_ife_2,
  2509. &bcm_mc0_cam_ife_2,
  2510. &bcm_acv_pcie_crm_hw_0,
  2511. &bcm_mc0_pcie_crm_hw_0,
  2512. };
  2513. static struct qcom_icc_node *mc_virt_nodes[] = {
  2514. [MASTER_LLCC] = &llcc_mc,
  2515. [SLAVE_EBI1] = &ebi,
  2516. [MASTER_LLCC_DISP] = &llcc_mc_disp,
  2517. [SLAVE_EBI1_DISP] = &ebi_disp,
  2518. [MASTER_LLCC_CAM_IFE_0] = &llcc_mc_cam_ife_0,
  2519. [SLAVE_EBI1_CAM_IFE_0] = &ebi_cam_ife_0,
  2520. [MASTER_LLCC_CAM_IFE_1] = &llcc_mc_cam_ife_1,
  2521. [SLAVE_EBI1_CAM_IFE_1] = &ebi_cam_ife_1,
  2522. [MASTER_LLCC_CAM_IFE_2] = &llcc_mc_cam_ife_2,
  2523. [SLAVE_EBI1_CAM_IFE_2] = &ebi_cam_ife_2,
  2524. [MASTER_LLCC_PCIE_CRM_HW_0] = &llcc_mc_pcie_crm_hw_0,
  2525. [SLAVE_EBI1_PCIE_CRM_HW_0] = &ebi_pcie_crm_hw_0,
  2526. };
  2527. static char *mc_virt_voters[] = {
  2528. [VOTER_IDX_HLOS] = "hlos",
  2529. [VOTER_IDX_DISP] = "disp",
  2530. [VOTER_IDX_CAM_IFE_0] = "cam_ife_0",
  2531. [VOTER_IDX_CAM_IFE_1] = "cam_ife_1",
  2532. [VOTER_IDX_CAM_IFE_2] = "cam_ife_2",
  2533. [VOTER_IDX_PCIE_CRM_HW_0] = "pcie_crm_hw_0",
  2534. };
  2535. static struct qcom_icc_desc cliffs_mc_virt = {
  2536. .config = &icc_regmap_config,
  2537. .nodes = mc_virt_nodes,
  2538. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  2539. .bcms = mc_virt_bcms,
  2540. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  2541. .voters = mc_virt_voters,
  2542. .num_voters = ARRAY_SIZE(mc_virt_voters),
  2543. };
  2544. static struct qcom_icc_bcm *mmss_noc_bcms[] = {
  2545. &bcm_mm0,
  2546. &bcm_mm1,
  2547. &bcm_mm0_disp,
  2548. &bcm_mm0_cam_ife_0,
  2549. &bcm_mm1_cam_ife_0,
  2550. &bcm_mm0_cam_ife_1,
  2551. &bcm_mm1_cam_ife_1,
  2552. &bcm_mm0_cam_ife_2,
  2553. &bcm_mm1_cam_ife_2,
  2554. };
  2555. static struct qcom_icc_node *mmss_noc_nodes[] = {
  2556. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  2557. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  2558. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  2559. [MASTER_MDP] = &qnm_mdp,
  2560. [MASTER_VIDEO] = &qnm_video,
  2561. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  2562. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  2563. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  2564. [MASTER_CNOC_MNOC_HF_CFG] = &qsm_hf_mnoc_cfg,
  2565. [MASTER_CNOC_MNOC_SF_CFG] = &qsm_sf_mnoc_cfg,
  2566. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  2567. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  2568. [SLAVE_SERVICE_MNOC_HF] = &srvc_mnoc_hf,
  2569. [SLAVE_SERVICE_MNOC_SF] = &srvc_mnoc_sf,
  2570. [MASTER_MDP_DISP] = &qnm_mdp_disp,
  2571. [SLAVE_MNOC_HF_MEM_NOC_DISP] = &qns_mem_noc_hf_disp,
  2572. [MASTER_CAMNOC_HF_CAM_IFE_0] = &qnm_camnoc_hf_cam_ife_0,
  2573. [MASTER_CAMNOC_ICP_CAM_IFE_0] = &qnm_camnoc_icp_cam_ife_0,
  2574. [MASTER_CAMNOC_SF_CAM_IFE_0] = &qnm_camnoc_sf_cam_ife_0,
  2575. [SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_0] = &qns_mem_noc_hf_cam_ife_0,
  2576. [SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_0] = &qns_mem_noc_sf_cam_ife_0,
  2577. [MASTER_CAMNOC_HF_CAM_IFE_1] = &qnm_camnoc_hf_cam_ife_1,
  2578. [MASTER_CAMNOC_ICP_CAM_IFE_1] = &qnm_camnoc_icp_cam_ife_1,
  2579. [MASTER_CAMNOC_SF_CAM_IFE_1] = &qnm_camnoc_sf_cam_ife_1,
  2580. [SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_1] = &qns_mem_noc_hf_cam_ife_1,
  2581. [SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_1] = &qns_mem_noc_sf_cam_ife_1,
  2582. [MASTER_CAMNOC_HF_CAM_IFE_2] = &qnm_camnoc_hf_cam_ife_2,
  2583. [MASTER_CAMNOC_ICP_CAM_IFE_2] = &qnm_camnoc_icp_cam_ife_2,
  2584. [MASTER_CAMNOC_SF_CAM_IFE_2] = &qnm_camnoc_sf_cam_ife_2,
  2585. [SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_2] = &qns_mem_noc_hf_cam_ife_2,
  2586. [SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_2] = &qns_mem_noc_sf_cam_ife_2,
  2587. };
  2588. static char *mmss_noc_voters[] = {
  2589. [VOTER_IDX_HLOS] = "hlos",
  2590. [VOTER_IDX_DISP] = "disp",
  2591. [VOTER_IDX_CAM_IFE_0] = "cam_ife_0",
  2592. [VOTER_IDX_CAM_IFE_1] = "cam_ife_1",
  2593. [VOTER_IDX_CAM_IFE_2] = "cam_ife_2",
  2594. };
  2595. static struct qcom_icc_desc cliffs_mmss_noc = {
  2596. .config = &icc_regmap_config,
  2597. .nodes = mmss_noc_nodes,
  2598. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  2599. .bcms = mmss_noc_bcms,
  2600. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  2601. .voters = mmss_noc_voters,
  2602. .num_voters = ARRAY_SIZE(mmss_noc_voters),
  2603. };
  2604. static struct qcom_icc_bcm *nsp_noc_bcms[] = {
  2605. &bcm_co0,
  2606. };
  2607. static struct qcom_icc_node *nsp_noc_nodes[] = {
  2608. [MASTER_CDSP_PROC] = &qxm_nsp,
  2609. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  2610. };
  2611. static char *nsp_noc_voters[] = {
  2612. [VOTER_IDX_HLOS] = "hlos",
  2613. };
  2614. static struct qcom_icc_desc cliffs_nsp_noc = {
  2615. .config = &icc_regmap_config,
  2616. .nodes = nsp_noc_nodes,
  2617. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  2618. .bcms = nsp_noc_bcms,
  2619. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  2620. .voters = nsp_noc_voters,
  2621. .num_voters = ARRAY_SIZE(nsp_noc_voters),
  2622. };
  2623. static struct qcom_icc_bcm *pcie_anoc_bcms[] = {
  2624. &bcm_sn4,
  2625. &bcm_sn4_pcie_crm_hw_0,
  2626. };
  2627. static struct qcom_icc_node *pcie_anoc_nodes[] = {
  2628. [MASTER_PCIE_ANOC_CFG] = &qsm_pcie_anoc_cfg,
  2629. [MASTER_PCIE_0] = &xm_pcie3_0,
  2630. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  2631. [SLAVE_SERVICE_PCIE_ANOC] = &srvc_pcie_aggre_noc,
  2632. [MASTER_PCIE_0_PCIE_CRM_HW_0] = &xm_pcie3_0_pcie_crm_hw_0,
  2633. [SLAVE_ANOC_PCIE_GEM_NOC_PCIE_CRM_HW_0] = &qns_pcie_mem_noc_pcie_crm_hw_0,
  2634. };
  2635. static char *pcie_anoc_voters[] = {
  2636. [VOTER_IDX_HLOS] = "hlos",
  2637. [VOTER_IDX_PCIE_CRM_HW_0] = "pcie_crm_hw_0",
  2638. };
  2639. static struct qcom_icc_desc cliffs_pcie_anoc = {
  2640. .config = &icc_regmap_config,
  2641. .nodes = pcie_anoc_nodes,
  2642. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  2643. .bcms = pcie_anoc_bcms,
  2644. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  2645. .voters = pcie_anoc_voters,
  2646. .num_voters = ARRAY_SIZE(pcie_anoc_voters),
  2647. };
  2648. static struct qcom_icc_bcm *system_noc_bcms[] = {
  2649. &bcm_sn0,
  2650. &bcm_sn2,
  2651. &bcm_sn3,
  2652. };
  2653. static struct qcom_icc_node *system_noc_nodes[] = {
  2654. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  2655. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  2656. [MASTER_APSS_NOC] = &qnm_apss_noc,
  2657. [MASTER_CNOC_SNOC] = &qnm_cnoc_data,
  2658. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  2659. };
  2660. static char *system_noc_voters[] = {
  2661. [VOTER_IDX_HLOS] = "hlos",
  2662. };
  2663. static struct qcom_icc_desc cliffs_system_noc = {
  2664. .config = &icc_regmap_config,
  2665. .nodes = system_noc_nodes,
  2666. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  2667. .bcms = system_noc_bcms,
  2668. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  2669. .voters = system_noc_voters,
  2670. .num_voters = ARRAY_SIZE(system_noc_voters),
  2671. };
  2672. static int qnoc_probe(struct platform_device *pdev)
  2673. {
  2674. int ret;
  2675. ret = qcom_icc_rpmh_probe(pdev);
  2676. if (ret)
  2677. dev_err(&pdev->dev, "failed to register ICC provider: %d\n", ret);
  2678. else
  2679. dev_info(&pdev->dev, "Registered CLIFFS ICC\n");
  2680. return ret;
  2681. }
  2682. static const struct of_device_id qnoc_of_match[] = {
  2683. { .compatible = "qcom,cliffs-aggre1_noc",
  2684. .data = &cliffs_aggre1_noc},
  2685. { .compatible = "qcom,cliffs-aggre2_noc",
  2686. .data = &cliffs_aggre2_noc},
  2687. { .compatible = "qcom,cliffs-clk_virt",
  2688. .data = &cliffs_clk_virt},
  2689. { .compatible = "qcom,cliffs-cnoc_cfg",
  2690. .data = &cliffs_cnoc_cfg},
  2691. { .compatible = "qcom,cliffs-cnoc_main",
  2692. .data = &cliffs_cnoc_main},
  2693. { .compatible = "qcom,cliffs-gem_noc",
  2694. .data = &cliffs_gem_noc},
  2695. { .compatible = "qcom,cliffs-lpass_ag_noc",
  2696. .data = &cliffs_lpass_ag_noc},
  2697. { .compatible = "qcom,cliffs-lpass_lpiaon_noc",
  2698. .data = &cliffs_lpass_lpiaon_noc},
  2699. { .compatible = "qcom,cliffs-lpass_lpicx_noc",
  2700. .data = &cliffs_lpass_lpicx_noc},
  2701. { .compatible = "qcom,cliffs-mc_virt",
  2702. .data = &cliffs_mc_virt},
  2703. { .compatible = "qcom,cliffs-mmss_noc",
  2704. .data = &cliffs_mmss_noc},
  2705. { .compatible = "qcom,cliffs-nsp_noc",
  2706. .data = &cliffs_nsp_noc},
  2707. { .compatible = "qcom,cliffs-pcie_anoc",
  2708. .data = &cliffs_pcie_anoc},
  2709. { .compatible = "qcom,cliffs-system_noc",
  2710. .data = &cliffs_system_noc},
  2711. { }
  2712. };
  2713. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  2714. static struct platform_driver qnoc_driver = {
  2715. .probe = qnoc_probe,
  2716. .remove = qcom_icc_rpmh_remove,
  2717. .driver = {
  2718. .name = "qnoc-cliffs",
  2719. .of_match_table = qnoc_of_match,
  2720. .sync_state = qcom_icc_rpmh_sync_state,
  2721. },
  2722. };
  2723. static int __init qnoc_driver_init(void)
  2724. {
  2725. return platform_driver_register(&qnoc_driver);
  2726. }
  2727. core_initcall(qnoc_driver_init);
  2728. MODULE_DESCRIPTION("Cliffs NoC driver");
  2729. MODULE_LICENSE("GPL");