sc8180x-auto.c 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect-provider.h>
  8. #include <linux/module.h>
  9. #include <linux/of_device.h>
  10. #include <dt-bindings/interconnect/qcom,sc8180x.h>
  11. #include "bcm-voter.h"
  12. #include "icc-rpmh.h"
  13. #include "qnoc-qos.h"
  14. static struct qcom_icc_node qhm_a1noc_cfg = {
  15. .name = "qhm_a1noc_cfg",
  16. .id = MASTER_A1NOC_CFG,
  17. .channels = 1,
  18. .buswidth = 4,
  19. .noc_ops = &qcom_qnoc4_ops,
  20. .num_links = 1,
  21. .links = { SLAVE_SERVICE_A1NOC },
  22. };
  23. static struct qcom_icc_qosbox xm_pcie3_0_qos = {
  24. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  25. .num_ports = 1,
  26. .offsets = { 0xb000 },
  27. .config = &(struct qos_config) {
  28. .prio = 2,
  29. .urg_fwd = 0,
  30. },
  31. };
  32. static struct qcom_icc_node xm_pcie3_0 = {
  33. .name = "xm_pcie3_0",
  34. .id = MASTER_PCIE_0,
  35. .channels = 1,
  36. .buswidth = 8,
  37. .noc_ops = &qcom_qnoc4_ops,
  38. .qosbox = &xm_pcie3_0_qos,
  39. .num_links = 1,
  40. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  41. };
  42. static struct qcom_icc_qosbox xm_pcie3_1_qos = {
  43. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  44. .num_ports = 1,
  45. .offsets = { 0x4000 },
  46. .config = &(struct qos_config) {
  47. .prio = 2,
  48. .urg_fwd = 0,
  49. },
  50. };
  51. static struct qcom_icc_node xm_pcie3_1 = {
  52. .name = "xm_pcie3_1",
  53. .id = MASTER_PCIE_1,
  54. .channels = 1,
  55. .buswidth = 16,
  56. .noc_ops = &qcom_qnoc4_ops,
  57. .qosbox = &xm_pcie3_1_qos,
  58. .num_links = 1,
  59. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  60. };
  61. static struct qcom_icc_qosbox xm_pcie3_2_qos = {
  62. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  63. .num_ports = 1,
  64. .offsets = { 0x7000 },
  65. .config = &(struct qos_config) {
  66. .prio = 2,
  67. .urg_fwd = 0,
  68. },
  69. };
  70. static struct qcom_icc_node xm_pcie3_2 = {
  71. .name = "xm_pcie3_2",
  72. .id = MASTER_PCIE_2,
  73. .channels = 1,
  74. .buswidth = 8,
  75. .noc_ops = &qcom_qnoc4_ops,
  76. .qosbox = &xm_pcie3_2_qos,
  77. .num_links = 1,
  78. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  79. };
  80. static struct qcom_icc_qosbox xm_pcie3_3_qos = {
  81. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  82. .num_ports = 1,
  83. .offsets = { 0x8000 },
  84. .config = &(struct qos_config) {
  85. .prio = 2,
  86. .urg_fwd = 0,
  87. },
  88. };
  89. static struct qcom_icc_node xm_pcie3_3 = {
  90. .name = "xm_pcie3_3",
  91. .id = MASTER_PCIE_3,
  92. .channels = 1,
  93. .buswidth = 16,
  94. .noc_ops = &qcom_qnoc4_ops,
  95. .qosbox = &xm_pcie3_3_qos,
  96. .num_links = 1,
  97. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  98. };
  99. static struct qcom_icc_node xm_ufs_card = {
  100. .name = "xm_ufs_card",
  101. .id = MASTER_UFS_CARD,
  102. .channels = 1,
  103. .buswidth = 8,
  104. .noc_ops = &qcom_qnoc4_ops,
  105. .num_links = 1,
  106. .links = { SLAVE_A1NOC_SNOC },
  107. };
  108. static struct qcom_icc_qosbox xm_ufs_g4_qos = {
  109. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  110. .num_ports = 1,
  111. .offsets = { 0xf000 },
  112. .config = &(struct qos_config) {
  113. .prio = 2,
  114. .urg_fwd = 0,
  115. },
  116. };
  117. static struct qcom_icc_node xm_ufs_g4 = {
  118. .name = "xm_ufs_g4",
  119. .id = MASTER_UFS_GEN4,
  120. .channels = 1,
  121. .buswidth = 8,
  122. .noc_ops = &qcom_qnoc4_ops,
  123. .qosbox = &xm_ufs_g4_qos,
  124. .num_links = 1,
  125. .links = { SLAVE_A1NOC_SNOC },
  126. };
  127. static struct qcom_icc_qosbox xm_ufs_mem_qos = {
  128. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  129. .num_ports = 1,
  130. .offsets = { 0x3000 },
  131. .config = &(struct qos_config) {
  132. .prio = 2,
  133. .urg_fwd = 0,
  134. },
  135. };
  136. static struct qcom_icc_node xm_ufs_mem = {
  137. .name = "xm_ufs_mem",
  138. .id = MASTER_UFS_MEM,
  139. .channels = 1,
  140. .buswidth = 8,
  141. .noc_ops = &qcom_qnoc4_ops,
  142. .qosbox = &xm_ufs_mem_qos,
  143. .num_links = 1,
  144. .links = { SLAVE_A1NOC_SNOC },
  145. };
  146. static struct qcom_icc_qosbox xm_usb3_0_qos = {
  147. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  148. .num_ports = 1,
  149. .offsets = { 0xa000 },
  150. .config = &(struct qos_config) {
  151. .prio = 2,
  152. .urg_fwd = 0,
  153. },
  154. };
  155. static struct qcom_icc_node xm_usb3_0 = {
  156. .name = "xm_usb3_0",
  157. .id = MASTER_USB3_0,
  158. .channels = 1,
  159. .buswidth = 8,
  160. .noc_ops = &qcom_qnoc4_ops,
  161. .qosbox = &xm_usb3_0_qos,
  162. .num_links = 1,
  163. .links = { SLAVE_A1NOC_SNOC },
  164. };
  165. static struct qcom_icc_qosbox xm_usb3_1_qos = {
  166. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  167. .num_ports = 1,
  168. .offsets = { 0x5000 },
  169. .config = &(struct qos_config) {
  170. .prio = 2,
  171. .urg_fwd = 0,
  172. },
  173. };
  174. static struct qcom_icc_node xm_usb3_1 = {
  175. .name = "xm_usb3_1",
  176. .id = MASTER_USB3_1,
  177. .channels = 1,
  178. .buswidth = 8,
  179. .noc_ops = &qcom_qnoc4_ops,
  180. .qosbox = &xm_usb3_1_qos,
  181. .num_links = 1,
  182. .links = { SLAVE_A1NOC_SNOC },
  183. };
  184. static struct qcom_icc_qosbox xm_usb3_2_qos = {
  185. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  186. .num_ports = 1,
  187. .offsets = { 0x9000 },
  188. .config = &(struct qos_config) {
  189. .prio = 2,
  190. .urg_fwd = 0,
  191. },
  192. };
  193. static struct qcom_icc_node xm_usb3_2 = {
  194. .name = "xm_usb3_2",
  195. .id = MASTER_USB3_2,
  196. .channels = 1,
  197. .buswidth = 16,
  198. .noc_ops = &qcom_qnoc4_ops,
  199. .qosbox = &xm_usb3_2_qos,
  200. .num_links = 1,
  201. .links = { SLAVE_A1NOC_SNOC },
  202. };
  203. static struct qcom_icc_node qhm_a2noc_cfg = {
  204. .name = "qhm_a2noc_cfg",
  205. .id = MASTER_A2NOC_CFG,
  206. .channels = 1,
  207. .buswidth = 4,
  208. .noc_ops = &qcom_qnoc4_ops,
  209. .num_links = 1,
  210. .links = { SLAVE_SERVICE_A2NOC },
  211. };
  212. static struct qcom_icc_qosbox qhm_qdss_bam_qos = {
  213. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  214. .num_ports = 1,
  215. .offsets = { 0x1b000 },
  216. .config = &(struct qos_config) {
  217. .prio = 2,
  218. .urg_fwd = 0,
  219. },
  220. };
  221. static struct qcom_icc_node qhm_qdss_bam = {
  222. .name = "qhm_qdss_bam",
  223. .id = MASTER_QDSS_BAM,
  224. .channels = 1,
  225. .buswidth = 4,
  226. .noc_ops = &qcom_qnoc4_ops,
  227. .qosbox = &qhm_qdss_bam_qos,
  228. .num_links = 1,
  229. .links = { SLAVE_A2NOC_SNOC },
  230. };
  231. static struct qcom_icc_qosbox qhm_qspi_qos = {
  232. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  233. .num_ports = 1,
  234. .offsets = { 0x12000 },
  235. .config = &(struct qos_config) {
  236. .prio = 2,
  237. .urg_fwd = 0,
  238. },
  239. };
  240. static struct qcom_icc_node qhm_qspi = {
  241. .name = "qhm_qspi",
  242. .id = MASTER_QSPI_0,
  243. .channels = 1,
  244. .buswidth = 4,
  245. .noc_ops = &qcom_qnoc4_ops,
  246. .qosbox = &qhm_qspi_qos,
  247. .num_links = 1,
  248. .links = { SLAVE_A2NOC_SNOC },
  249. };
  250. static struct qcom_icc_qosbox qhm_qspi1_qos = {
  251. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  252. .num_ports = 1,
  253. .offsets = { 0x13000 },
  254. .config = &(struct qos_config) {
  255. .prio = 2,
  256. .urg_fwd = 0,
  257. },
  258. };
  259. static struct qcom_icc_node qhm_qspi1 = {
  260. .name = "qhm_qspi1",
  261. .id = MASTER_QSPI_1,
  262. .channels = 1,
  263. .buswidth = 4,
  264. .noc_ops = &qcom_qnoc4_ops,
  265. .qosbox = &qhm_qspi1_qos,
  266. .num_links = 1,
  267. .links = { SLAVE_A2NOC_SNOC },
  268. };
  269. static struct qcom_icc_qosbox qhm_qup0_qos = {
  270. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  271. .num_ports = 1,
  272. .offsets = { 0x9000 },
  273. .config = &(struct qos_config) {
  274. .prio = 2,
  275. .urg_fwd = 0,
  276. },
  277. };
  278. static struct qcom_icc_node qhm_qup0 = {
  279. .name = "qhm_qup0",
  280. .id = MASTER_QUP_0,
  281. .channels = 1,
  282. .buswidth = 4,
  283. .noc_ops = &qcom_qnoc4_ops,
  284. .qosbox = &qhm_qup0_qos,
  285. .num_links = 1,
  286. .links = { SLAVE_A2NOC_SNOC },
  287. };
  288. static struct qcom_icc_qosbox qhm_qup1_qos = {
  289. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  290. .num_ports = 1,
  291. .offsets = { 0x19000 },
  292. .config = &(struct qos_config) {
  293. .prio = 2,
  294. .urg_fwd = 0,
  295. },
  296. };
  297. static struct qcom_icc_node qhm_qup1 = {
  298. .name = "qhm_qup1",
  299. .id = MASTER_QUP_1,
  300. .channels = 1,
  301. .buswidth = 4,
  302. .noc_ops = &qcom_qnoc4_ops,
  303. .qosbox = &qhm_qup1_qos,
  304. .num_links = 1,
  305. .links = { SLAVE_A2NOC_SNOC },
  306. };
  307. static struct qcom_icc_qosbox qhm_qup2_qos = {
  308. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  309. .num_ports = 1,
  310. .offsets = { 0x1a000 },
  311. .config = &(struct qos_config) {
  312. .prio = 2,
  313. .urg_fwd = 0,
  314. },
  315. };
  316. static struct qcom_icc_node qhm_qup2 = {
  317. .name = "qhm_qup2",
  318. .id = MASTER_QUP_2,
  319. .channels = 1,
  320. .buswidth = 4,
  321. .noc_ops = &qcom_qnoc4_ops,
  322. .qosbox = &qhm_qup2_qos,
  323. .num_links = 1,
  324. .links = { SLAVE_A2NOC_SNOC },
  325. };
  326. static struct qcom_icc_qosbox qxm_crypto_qos = {
  327. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  328. .num_ports = 1,
  329. .offsets = { 0x7000 },
  330. .config = &(struct qos_config) {
  331. .prio = 2,
  332. .urg_fwd = 1,
  333. },
  334. };
  335. static struct qcom_icc_node qxm_crypto = {
  336. .name = "qxm_crypto",
  337. .id = MASTER_CRYPTO,
  338. .channels = 1,
  339. .buswidth = 8,
  340. .noc_ops = &qcom_qnoc4_ops,
  341. .qosbox = &qxm_crypto_qos,
  342. .num_links = 1,
  343. .links = { SLAVE_A2NOC_SNOC },
  344. };
  345. static struct qcom_icc_qosbox qxm_ipa_qos = {
  346. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  347. .num_ports = 1,
  348. .offsets = { 0x8000 },
  349. .config = &(struct qos_config) {
  350. .prio = 2,
  351. .urg_fwd = 1,
  352. },
  353. };
  354. static struct qcom_icc_node qxm_ipa = {
  355. .name = "qxm_ipa",
  356. .id = MASTER_IPA,
  357. .channels = 1,
  358. .buswidth = 8,
  359. .noc_ops = &qcom_qnoc4_ops,
  360. .qosbox = &qxm_ipa_qos,
  361. .num_links = 1,
  362. .links = { SLAVE_A2NOC_SNOC },
  363. };
  364. static struct qcom_icc_qosbox xm_emac_qos = {
  365. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  366. .num_ports = 1,
  367. .offsets = { 0x10000 },
  368. .config = &(struct qos_config) {
  369. .prio = 2,
  370. .urg_fwd = 0,
  371. },
  372. };
  373. static struct qcom_icc_node xm_emac = {
  374. .name = "xm_emac",
  375. .id = MASTER_EMAC,
  376. .channels = 1,
  377. .buswidth = 8,
  378. .noc_ops = &qcom_qnoc4_ops,
  379. .qosbox = &xm_emac_qos,
  380. .num_links = 1,
  381. .links = { SLAVE_A2NOC_SNOC },
  382. };
  383. static struct qcom_icc_qosbox xm_qdss_etr_qos = {
  384. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  385. .num_ports = 1,
  386. .offsets = { 0xd000 },
  387. .config = &(struct qos_config) {
  388. .prio = 0,
  389. .urg_fwd = 0,
  390. },
  391. };
  392. static struct qcom_icc_node xm_qdss_etr = {
  393. .name = "xm_qdss_etr",
  394. .id = MASTER_QDSS_ETR,
  395. .channels = 1,
  396. .buswidth = 8,
  397. .noc_ops = &qcom_qnoc4_ops,
  398. .qosbox = &xm_qdss_etr_qos,
  399. .num_links = 1,
  400. .links = { SLAVE_A2NOC_SNOC },
  401. };
  402. static struct qcom_icc_qosbox xm_sdc2_qos = {
  403. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  404. .num_ports = 1,
  405. .offsets = { 0xe000 },
  406. .config = &(struct qos_config) {
  407. .prio = 2,
  408. .urg_fwd = 0,
  409. },
  410. };
  411. static struct qcom_icc_node xm_sdc2 = {
  412. .name = "xm_sdc2",
  413. .id = MASTER_SDCC_2,
  414. .channels = 1,
  415. .buswidth = 8,
  416. .noc_ops = &qcom_qnoc4_ops,
  417. .qosbox = &xm_sdc2_qos,
  418. .num_links = 1,
  419. .links = { SLAVE_A2NOC_SNOC },
  420. };
  421. static struct qcom_icc_qosbox xm_sdc4_qos = {
  422. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  423. .num_ports = 1,
  424. .offsets = { 0xf000 },
  425. .config = &(struct qos_config) {
  426. .prio = 2,
  427. .urg_fwd = 0,
  428. },
  429. };
  430. static struct qcom_icc_node xm_sdc4 = {
  431. .name = "xm_sdc4",
  432. .id = MASTER_SDCC_4,
  433. .channels = 1,
  434. .buswidth = 8,
  435. .noc_ops = &qcom_qnoc4_ops,
  436. .qosbox = &xm_sdc4_qos,
  437. .num_links = 1,
  438. .links = { SLAVE_A2NOC_SNOC },
  439. };
  440. static struct qcom_icc_node qhm_sensorss_ahb = {
  441. .name = "qhm_sensorss_ahb",
  442. .id = MASTER_SENSORS_AHB,
  443. .channels = 1,
  444. .buswidth = 4,
  445. .num_links = 1,
  446. .links = { SLAVE_A2NOC_SNOC },
  447. };
  448. static struct qcom_icc_node qxm_camnoc_hf0_uncomp = {
  449. .name = "qxm_camnoc_hf0_uncomp",
  450. .id = MASTER_CAMNOC_HF0_UNCOMP,
  451. .channels = 1,
  452. .buswidth = 32,
  453. .noc_ops = &qcom_qnoc4_ops,
  454. .num_links = 1,
  455. .links = { SLAVE_CAMNOC_UNCOMP },
  456. };
  457. static struct qcom_icc_node qxm_camnoc_hf1_uncomp = {
  458. .name = "qxm_camnoc_hf1_uncomp",
  459. .id = MASTER_CAMNOC_HF1_UNCOMP,
  460. .channels = 1,
  461. .buswidth = 32,
  462. .noc_ops = &qcom_qnoc4_ops,
  463. .num_links = 1,
  464. .links = { SLAVE_CAMNOC_UNCOMP },
  465. };
  466. static struct qcom_icc_node qxm_camnoc_sf_uncomp = {
  467. .name = "qxm_camnoc_sf_uncomp",
  468. .id = MASTER_CAMNOC_SF_UNCOMP,
  469. .channels = 1,
  470. .buswidth = 32,
  471. .noc_ops = &qcom_qnoc4_ops,
  472. .num_links = 1,
  473. .links = { SLAVE_CAMNOC_UNCOMP },
  474. };
  475. static struct qcom_icc_qosbox qnm_npu_qos = {
  476. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  477. .num_ports = 1,
  478. .offsets = { 0x0 },
  479. .config = &(struct qos_config) {
  480. .prio = 0,
  481. .urg_fwd = 1,
  482. },
  483. };
  484. static struct qcom_icc_node qnm_npu = {
  485. .name = "qnm_npu",
  486. .id = MASTER_NPU,
  487. .channels = 1,
  488. .buswidth = 32,
  489. .noc_ops = &qcom_qnoc4_ops,
  490. .qosbox = &qnm_npu_qos,
  491. .num_links = 1,
  492. .links = { SLAVE_CDSP_MEM_NOC },
  493. };
  494. static struct qcom_icc_node qnm_snoc = {
  495. .name = "qnm_snoc",
  496. .id = MASTER_SNOC_CNOC,
  497. .channels = 1,
  498. .buswidth = 8,
  499. .noc_ops = &qcom_qnoc4_ops,
  500. .num_links = 56,
  501. .links = { SLAVE_A1NOC_CFG, SLAVE_A2NOC_CFG,
  502. SLAVE_AHB2PHY_CENTER, SLAVE_AHB2PHY_EAST,
  503. SLAVE_AHB2PHY_WEST, SLAVE_AHB2PHY_SOUTH,
  504. SLAVE_AOP, SLAVE_AOSS,
  505. SLAVE_CAMERA_CFG, SLAVE_CLK_CTL,
  506. SLAVE_CDSP_CFG, SLAVE_RBCPR_CX_CFG,
  507. SLAVE_RBCPR_MMCX_CFG, SLAVE_RBCPR_MX_CFG,
  508. SLAVE_CRYPTO_0_CFG, SLAVE_CNOC_DDRSS,
  509. SLAVE_DISPLAY_CFG, SLAVE_EMAC_CFG,
  510. SLAVE_GLM, SLAVE_GFX3D_CFG,
  511. SLAVE_IMEM_CFG, SLAVE_IPA_CFG,
  512. SLAVE_CNOC_MNOC_CFG, SLAVE_NPU_CFG,
  513. SLAVE_PCIE_0_CFG, SLAVE_PCIE_1_CFG,
  514. SLAVE_PCIE_2_CFG, SLAVE_PCIE_3_CFG,
  515. SLAVE_PDM, SLAVE_PIMEM_CFG,
  516. SLAVE_PRNG, SLAVE_QDSS_CFG,
  517. SLAVE_QSPI_0, SLAVE_QSPI_1,
  518. SLAVE_QUP_1, SLAVE_QUP_2,
  519. SLAVE_QUP_0, SLAVE_SDCC_2,
  520. SLAVE_SDCC_4, SLAVE_SECURITY,
  521. SLAVE_SNOC_CFG, SLAVE_SPSS_CFG,
  522. SLAVE_TCSR, SLAVE_TLMM_EAST,
  523. SLAVE_TLMM_SOUTH, SLAVE_TLMM_WEST,
  524. SLAVE_TSIF, SLAVE_UFS_CARD_CFG,
  525. SLAVE_UFS_MEM_0_CFG, SLAVE_UFS_MEM_1_CFG,
  526. SLAVE_USB3_0, SLAVE_USB3_1,
  527. SLAVE_USB3_2, SLAVE_VENUS_CFG,
  528. SLAVE_VSENSE_CTRL_CFG, SLAVE_SERVICE_CNOC },
  529. };
  530. static struct qcom_icc_node qhm_cnoc_dc_noc = {
  531. .name = "qhm_cnoc_dc_noc",
  532. .id = MASTER_CNOC_DC_NOC,
  533. .channels = 1,
  534. .buswidth = 4,
  535. .noc_ops = &qcom_qnoc4_ops,
  536. .num_links = 2,
  537. .links = { SLAVE_GEM_NOC_CFG, SLAVE_LLCC_CFG },
  538. };
  539. static struct qcom_icc_qosbox acm_apps_qos = {
  540. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  541. .num_ports = 8,
  542. .offsets = { 0x30000, 0x30080, 0x30100, 0x30180, 0x30200, 0x30280, 0x30300, 0x30380 },
  543. .config = &(struct qos_config) {
  544. .prio = 0,
  545. .urg_fwd = 1,
  546. },
  547. };
  548. static struct qcom_icc_node acm_apps = {
  549. .name = "acm_apps",
  550. .id = MASTER_APPSS_PROC,
  551. .channels = 4,
  552. .buswidth = 64,
  553. .noc_ops = &qcom_qnoc4_ops,
  554. .qosbox = &acm_apps_qos,
  555. .num_links = 3,
  556. .links = { SLAVE_ECC, SLAVE_GEM_NOC_SNOC,
  557. SLAVE_LLCC },
  558. };
  559. static struct qcom_icc_qosbox acm_gpu_tcu_qos = {
  560. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  561. .num_ports = 1,
  562. .offsets = { 0x30400 },
  563. .config = &(struct qos_config) {
  564. .prio = 1,
  565. .urg_fwd = 0,
  566. },
  567. };
  568. static struct qcom_icc_node acm_gpu_tcu = {
  569. .name = "acm_gpu_tcu",
  570. .id = MASTER_GPU_TCU,
  571. .channels = 1,
  572. .buswidth = 8,
  573. .noc_ops = &qcom_qnoc4_ops,
  574. .qosbox = &acm_gpu_tcu_qos,
  575. .num_links = 2,
  576. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  577. };
  578. static struct qcom_icc_qosbox acm_sys_tcu_qos = {
  579. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  580. .num_ports = 1,
  581. .offsets = { 0x30480 },
  582. .config = &(struct qos_config) {
  583. .prio = 6,
  584. .urg_fwd = 0,
  585. },
  586. };
  587. static struct qcom_icc_node acm_sys_tcu = {
  588. .name = "acm_sys_tcu",
  589. .id = MASTER_SYS_TCU,
  590. .channels = 1,
  591. .buswidth = 8,
  592. .noc_ops = &qcom_qnoc4_ops,
  593. .qosbox = &acm_sys_tcu_qos,
  594. .num_links = 2,
  595. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  596. };
  597. static struct qcom_icc_node qhm_gemnoc_cfg = {
  598. .name = "qhm_gemnoc_cfg",
  599. .id = MASTER_GEM_NOC_CFG,
  600. .channels = 1,
  601. .buswidth = 4,
  602. .noc_ops = &qcom_qnoc4_ops,
  603. .num_links = 3,
  604. .links = { SLAVE_MSS_PROC_MS_MPU_CFG, SLAVE_SERVICE_GEM_NOC,
  605. SLAVE_SERVICE_GEM_NOC_1 },
  606. };
  607. static struct qcom_icc_qosbox qnm_cmpnoc_qos = {
  608. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  609. .num_ports = 2,
  610. .offsets = { 0x57000, 0x57080 },
  611. .config = &(struct qos_config) {
  612. .prio = 0,
  613. .urg_fwd = 1,
  614. },
  615. };
  616. static struct qcom_icc_node qnm_cmpnoc = {
  617. .name = "qnm_cmpnoc",
  618. .id = MASTER_COMPUTE_NOC,
  619. .channels = 2,
  620. .buswidth = 32,
  621. .noc_ops = &qcom_qnoc4_ops,
  622. .qosbox = &qnm_cmpnoc_qos,
  623. .num_links = 3,
  624. .links = { SLAVE_ECC, SLAVE_GEM_NOC_SNOC,
  625. SLAVE_LLCC },
  626. };
  627. static struct qcom_icc_qosbox qnm_gpu_qos = {
  628. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  629. .num_ports = 4,
  630. .offsets = { 0x57100, 0x57180, 0x57200, 0x57280 },
  631. .config = &(struct qos_config) {
  632. .prio = 0,
  633. .urg_fwd = 1,
  634. },
  635. };
  636. static struct qcom_icc_node qnm_gpu = {
  637. .name = "qnm_gpu",
  638. .id = MASTER_GFX3D,
  639. .channels = 4,
  640. .buswidth = 32,
  641. .noc_ops = &qcom_qnoc4_ops,
  642. .qosbox = &qnm_gpu_qos,
  643. .num_links = 2,
  644. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  645. };
  646. static struct qcom_icc_qosbox qnm_mnoc_hf_qos = {
  647. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  648. .num_ports = 2,
  649. .offsets = { 0x57300, 0x57380 },
  650. .config = &(struct qos_config) {
  651. .prio = 0,
  652. .urg_fwd = 1,
  653. },
  654. };
  655. static struct qcom_icc_node qnm_mnoc_hf = {
  656. .name = "qnm_mnoc_hf",
  657. .id = MASTER_MNOC_HF_MEM_NOC,
  658. .channels = 2,
  659. .buswidth = 32,
  660. .noc_ops = &qcom_qnoc4_ops,
  661. .qosbox = &qnm_mnoc_hf_qos,
  662. .num_links = 1,
  663. .links = { SLAVE_LLCC },
  664. };
  665. static struct qcom_icc_qosbox qnm_mnoc_sf_qos = {
  666. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  667. .num_ports = 1,
  668. .offsets = { 0x30800 },
  669. .config = &(struct qos_config) {
  670. .prio = 0,
  671. .urg_fwd = 1,
  672. },
  673. };
  674. static struct qcom_icc_node qnm_mnoc_sf = {
  675. .name = "qnm_mnoc_sf",
  676. .id = MASTER_MNOC_SF_MEM_NOC,
  677. .channels = 1,
  678. .buswidth = 32,
  679. .noc_ops = &qcom_qnoc4_ops,
  680. .qosbox = &qnm_mnoc_sf_qos,
  681. .num_links = 2,
  682. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  683. };
  684. static struct qcom_icc_qosbox qnm_pcie_qos = {
  685. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  686. .num_ports = 1,
  687. .offsets = { 0x30880 },
  688. .config = &(struct qos_config) {
  689. .prio = 0,
  690. .urg_fwd = 1,
  691. },
  692. };
  693. static struct qcom_icc_node qnm_pcie = {
  694. .name = "qnm_pcie",
  695. .id = MASTER_GEM_NOC_PCIE_SNOC,
  696. .channels = 1,
  697. .buswidth = 32,
  698. .noc_ops = &qcom_qnoc4_ops,
  699. .qosbox = &qnm_pcie_qos,
  700. .num_links = 2,
  701. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  702. };
  703. static struct qcom_icc_qosbox qnm_snoc_gc_qos = {
  704. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  705. .num_ports = 1,
  706. .offsets = { 0x57400 },
  707. .config = &(struct qos_config) {
  708. .prio = 0,
  709. .urg_fwd = 1,
  710. },
  711. };
  712. static struct qcom_icc_node qnm_snoc_gc = {
  713. .name = "qnm_snoc_gc",
  714. .id = MASTER_SNOC_GC_MEM_NOC,
  715. .channels = 1,
  716. .buswidth = 8,
  717. .noc_ops = &qcom_qnoc4_ops,
  718. .qosbox = &qnm_snoc_gc_qos,
  719. .num_links = 1,
  720. .links = { SLAVE_LLCC },
  721. };
  722. static struct qcom_icc_qosbox qnm_snoc_sf_qos = {
  723. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  724. .num_ports = 1,
  725. .offsets = { 0x30980 },
  726. .config = &(struct qos_config) {
  727. .prio = 0,
  728. .urg_fwd = 1,
  729. },
  730. };
  731. static struct qcom_icc_node qnm_snoc_sf = {
  732. .name = "qnm_snoc_sf",
  733. .id = MASTER_SNOC_SF_MEM_NOC,
  734. .channels = 1,
  735. .buswidth = 32,
  736. .noc_ops = &qcom_qnoc4_ops,
  737. .qosbox = &qnm_snoc_sf_qos,
  738. .num_links = 1,
  739. .links = { SLAVE_LLCC },
  740. };
  741. static struct qcom_icc_qosbox qxm_ecc_qos = {
  742. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  743. .num_ports = 2,
  744. .offsets = { 0x57500, 0x57580 },
  745. .config = &(struct qos_config) {
  746. .prio = 4,
  747. .urg_fwd = 1,
  748. },
  749. };
  750. static struct qcom_icc_node qxm_ecc = {
  751. .name = "qxm_ecc",
  752. .id = MASTER_ECC,
  753. .channels = 2,
  754. .buswidth = 32,
  755. .noc_ops = &qcom_qnoc4_ops,
  756. .qosbox = &qxm_ecc_qos,
  757. .num_links = 1,
  758. .links = { SLAVE_LLCC },
  759. };
  760. static struct qcom_icc_node ipa_core_master = {
  761. .name = "ipa_core_master",
  762. .id = MASTER_IPA_CORE,
  763. .channels = 1,
  764. .buswidth = 8,
  765. .noc_ops = &qcom_qnoc4_ops,
  766. .num_links = 1,
  767. .links = { SLAVE_IPA_CORE },
  768. };
  769. static struct qcom_icc_node llcc_mc = {
  770. .name = "llcc_mc",
  771. .id = MASTER_LLCC,
  772. .channels = 8,
  773. .buswidth = 4,
  774. .noc_ops = &qcom_qnoc4_ops,
  775. .num_links = 1,
  776. .links = { SLAVE_EBI1 },
  777. };
  778. static struct qcom_icc_node qhm_mnoc_cfg = {
  779. .name = "qhm_mnoc_cfg",
  780. .id = MASTER_CNOC_MNOC_CFG,
  781. .channels = 1,
  782. .buswidth = 4,
  783. .noc_ops = &qcom_qnoc4_ops,
  784. .num_links = 1,
  785. .links = { SLAVE_SERVICE_MNOC },
  786. };
  787. static struct qcom_icc_qosbox qxm_camnoc_hf0_qos = {
  788. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  789. .num_ports = 1,
  790. .offsets = { 0xa000 },
  791. .config = &(struct qos_config) {
  792. .prio = 0,
  793. .urg_fwd = 1,
  794. },
  795. };
  796. static struct qcom_icc_node qxm_camnoc_hf0 = {
  797. .name = "qxm_camnoc_hf0",
  798. .id = MASTER_CAMNOC_HF0,
  799. .channels = 1,
  800. .buswidth = 32,
  801. .noc_ops = &qcom_qnoc4_ops,
  802. .qosbox = &qxm_camnoc_hf0_qos,
  803. .num_links = 1,
  804. .links = { SLAVE_MNOC_HF_MEM_NOC },
  805. };
  806. static struct qcom_icc_qosbox qxm_camnoc_hf1_qos = {
  807. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  808. .num_ports = 1,
  809. .offsets = { 0xb000 },
  810. .config = &(struct qos_config) {
  811. .prio = 0,
  812. .urg_fwd = 1,
  813. },
  814. };
  815. static struct qcom_icc_node qxm_camnoc_hf1 = {
  816. .name = "qxm_camnoc_hf1",
  817. .id = MASTER_CAMNOC_HF1,
  818. .channels = 1,
  819. .buswidth = 32,
  820. .noc_ops = &qcom_qnoc4_ops,
  821. .qosbox = &qxm_camnoc_hf1_qos,
  822. .num_links = 1,
  823. .links = { SLAVE_MNOC_HF_MEM_NOC },
  824. };
  825. static struct qcom_icc_qosbox qxm_camnoc_sf_qos = {
  826. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  827. .num_ports = 1,
  828. .offsets = { 0x9000 },
  829. .config = &(struct qos_config) {
  830. .prio = 0,
  831. .urg_fwd = 1,
  832. },
  833. };
  834. static struct qcom_icc_node qxm_camnoc_sf = {
  835. .name = "qxm_camnoc_sf",
  836. .id = MASTER_CAMNOC_SF,
  837. .channels = 1,
  838. .buswidth = 32,
  839. .noc_ops = &qcom_qnoc4_ops,
  840. .qosbox = &qxm_camnoc_sf_qos,
  841. .num_links = 1,
  842. .links = { SLAVE_MNOC_SF_MEM_NOC },
  843. };
  844. static struct qcom_icc_qosbox qxm_mdp0_qos = {
  845. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  846. .num_ports = 1,
  847. .offsets = { 0xc000 },
  848. .config = &(struct qos_config) {
  849. .prio = 0,
  850. .urg_fwd = 1,
  851. },
  852. };
  853. static struct qcom_icc_node qxm_mdp0 = {
  854. .name = "qxm_mdp0",
  855. .id = MASTER_MDP0,
  856. .channels = 1,
  857. .buswidth = 32,
  858. .noc_ops = &qcom_qnoc4_ops,
  859. .qosbox = &qxm_mdp0_qos,
  860. .num_links = 1,
  861. .links = { SLAVE_MNOC_HF_MEM_NOC },
  862. };
  863. static struct qcom_icc_qosbox qxm_mdp1_qos = {
  864. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  865. .num_ports = 1,
  866. .offsets = { 0xd000 },
  867. .config = &(struct qos_config) {
  868. .prio = 0,
  869. .urg_fwd = 1,
  870. },
  871. };
  872. static struct qcom_icc_node qxm_mdp1 = {
  873. .name = "qxm_mdp1",
  874. .id = MASTER_MDP1,
  875. .channels = 1,
  876. .buswidth = 32,
  877. .noc_ops = &qcom_qnoc4_ops,
  878. .qosbox = &qxm_mdp1_qos,
  879. .num_links = 1,
  880. .links = { SLAVE_MNOC_HF_MEM_NOC },
  881. };
  882. static struct qcom_icc_qosbox qxm_rot_qos = {
  883. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  884. .num_ports = 1,
  885. .offsets = { 0xe000 },
  886. .config = &(struct qos_config) {
  887. .prio = 0,
  888. .urg_fwd = 1,
  889. },
  890. };
  891. static struct qcom_icc_node qxm_rot = {
  892. .name = "qxm_rot",
  893. .id = MASTER_ROTATOR,
  894. .channels = 1,
  895. .buswidth = 32,
  896. .noc_ops = &qcom_qnoc4_ops,
  897. .qosbox = &qxm_rot_qos,
  898. .num_links = 1,
  899. .links = { SLAVE_MNOC_SF_MEM_NOC },
  900. };
  901. static struct qcom_icc_qosbox qxm_venus0_qos = {
  902. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  903. .num_ports = 1,
  904. .offsets = { 0xf000 },
  905. .config = &(struct qos_config) {
  906. .prio = 0,
  907. .urg_fwd = 1,
  908. },
  909. };
  910. static struct qcom_icc_node qxm_venus0 = {
  911. .name = "qxm_venus0",
  912. .id = MASTER_VIDEO_P0,
  913. .channels = 1,
  914. .buswidth = 32,
  915. .noc_ops = &qcom_qnoc4_ops,
  916. .qosbox = &qxm_venus0_qos,
  917. .num_links = 1,
  918. .links = { SLAVE_MNOC_SF_MEM_NOC },
  919. };
  920. static struct qcom_icc_qosbox qxm_venus1_qos = {
  921. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  922. .num_ports = 1,
  923. .offsets = { 0x10000 },
  924. .config = &(struct qos_config) {
  925. .prio = 0,
  926. .urg_fwd = 1,
  927. },
  928. };
  929. static struct qcom_icc_node qxm_venus1 = {
  930. .name = "qxm_venus1",
  931. .id = MASTER_VIDEO_P1,
  932. .channels = 1,
  933. .buswidth = 32,
  934. .noc_ops = &qcom_qnoc4_ops,
  935. .qosbox = &qxm_venus1_qos,
  936. .num_links = 1,
  937. .links = { SLAVE_MNOC_SF_MEM_NOC },
  938. };
  939. static struct qcom_icc_qosbox qxm_venus_arm9_qos = {
  940. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  941. .num_ports = 1,
  942. .offsets = { 0x11000 },
  943. .config = &(struct qos_config) {
  944. .prio = 0,
  945. .urg_fwd = 1,
  946. },
  947. };
  948. static struct qcom_icc_node qxm_venus_arm9 = {
  949. .name = "qxm_venus_arm9",
  950. .id = MASTER_VIDEO_PROC,
  951. .channels = 1,
  952. .buswidth = 8,
  953. .noc_ops = &qcom_qnoc4_ops,
  954. .qosbox = &qxm_venus_arm9_qos,
  955. .num_links = 1,
  956. .links = { SLAVE_MNOC_SF_MEM_NOC },
  957. };
  958. static struct qcom_icc_node qhm_snoc_cfg = {
  959. .name = "qhm_snoc_cfg",
  960. .id = MASTER_SNOC_CFG,
  961. .channels = 1,
  962. .buswidth = 4,
  963. .noc_ops = &qcom_qnoc4_ops,
  964. .num_links = 1,
  965. .links = { SLAVE_SERVICE_SNOC },
  966. };
  967. static struct qcom_icc_node qnm_aggre1_noc = {
  968. .name = "qnm_aggre1_noc",
  969. .id = MASTER_A1NOC_SNOC,
  970. .channels = 1,
  971. .buswidth = 32,
  972. .noc_ops = &qcom_qnoc4_ops,
  973. .num_links = 6,
  974. .links = { SLAVE_APPSS, SLAVE_SNOC_CNOC,
  975. SLAVE_SNOC_GEM_NOC_SF, SLAVE_IMEM,
  976. SLAVE_PIMEM, SLAVE_QDSS_STM },
  977. };
  978. static struct qcom_icc_node qnm_aggre2_noc = {
  979. .name = "qnm_aggre2_noc",
  980. .id = MASTER_A2NOC_SNOC,
  981. .channels = 1,
  982. .buswidth = 16,
  983. .noc_ops = &qcom_qnoc4_ops,
  984. .num_links = 11,
  985. .links = { SLAVE_APPSS, SLAVE_SNOC_CNOC,
  986. SLAVE_SNOC_GEM_NOC_SF, SLAVE_IMEM,
  987. SLAVE_PIMEM, SLAVE_PCIE_0,
  988. SLAVE_PCIE_1, SLAVE_PCIE_2,
  989. SLAVE_PCIE_3, SLAVE_QDSS_STM,
  990. SLAVE_TCU },
  991. };
  992. static struct qcom_icc_node qnm_gemnoc = {
  993. .name = "qnm_gemnoc",
  994. .id = MASTER_GEM_NOC_SNOC,
  995. .channels = 1,
  996. .buswidth = 8,
  997. .noc_ops = &qcom_qnoc4_ops,
  998. .num_links = 6,
  999. .links = { SLAVE_APPSS, SLAVE_SNOC_CNOC,
  1000. SLAVE_IMEM, SLAVE_PIMEM,
  1001. SLAVE_QDSS_STM, SLAVE_TCU },
  1002. };
  1003. static struct qcom_icc_qosbox qxm_pimem_qos = {
  1004. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  1005. .num_ports = 1,
  1006. .offsets = { 0x14000 },
  1007. .config = &(struct qos_config) {
  1008. .prio = 2,
  1009. .urg_fwd = 1,
  1010. },
  1011. };
  1012. static struct qcom_icc_node qxm_pimem = {
  1013. .name = "qxm_pimem",
  1014. .id = MASTER_PIMEM,
  1015. .channels = 1,
  1016. .buswidth = 8,
  1017. .noc_ops = &qcom_qnoc4_ops,
  1018. .qosbox = &qxm_pimem_qos,
  1019. .num_links = 2,
  1020. .links = { SLAVE_SNOC_GEM_NOC_GC, SLAVE_IMEM },
  1021. };
  1022. static struct qcom_icc_qosbox xm_gic_qos = {
  1023. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  1024. .num_ports = 1,
  1025. .offsets = { 0x11000 },
  1026. .config = &(struct qos_config) {
  1027. .prio = 2,
  1028. .urg_fwd = 1,
  1029. },
  1030. };
  1031. static struct qcom_icc_node xm_gic = {
  1032. .name = "xm_gic",
  1033. .id = MASTER_GIC,
  1034. .channels = 1,
  1035. .buswidth = 8,
  1036. .noc_ops = &qcom_qnoc4_ops,
  1037. .qosbox = &xm_gic_qos,
  1038. .num_links = 2,
  1039. .links = { SLAVE_SNOC_GEM_NOC_GC, SLAVE_IMEM },
  1040. };
  1041. static struct qcom_icc_node qnm_mnoc_hf_disp = {
  1042. .name = "qnm_mnoc_hf_disp",
  1043. .id = MASTER_MNOC_HF_MEM_NOC_DISP,
  1044. .channels = 2,
  1045. .buswidth = 32,
  1046. .noc_ops = &qcom_qnoc4_ops,
  1047. .num_links = 1,
  1048. .links = { SLAVE_LLCC_DISP },
  1049. };
  1050. static struct qcom_icc_node qnm_mnoc_sf_disp = {
  1051. .name = "qnm_mnoc_sf_disp",
  1052. .id = MASTER_MNOC_SF_MEM_NOC_DISP,
  1053. .channels = 1,
  1054. .buswidth = 32,
  1055. .noc_ops = &qcom_qnoc4_ops,
  1056. .num_links = 1,
  1057. .links = { SLAVE_LLCC_DISP },
  1058. };
  1059. static struct qcom_icc_node llcc_mc_disp = {
  1060. .name = "llcc_mc_disp",
  1061. .id = MASTER_LLCC_DISP,
  1062. .channels = 8,
  1063. .buswidth = 4,
  1064. .noc_ops = &qcom_qnoc4_ops,
  1065. .num_links = 1,
  1066. .links = { SLAVE_EBI1_DISP },
  1067. };
  1068. static struct qcom_icc_node qxm_mdp0_disp = {
  1069. .name = "qxm_mdp0_disp",
  1070. .id = MASTER_MDP0_DISP,
  1071. .channels = 1,
  1072. .buswidth = 32,
  1073. .noc_ops = &qcom_qnoc4_ops,
  1074. .num_links = 1,
  1075. .links = { SLAVE_MNOC_HF_MEM_NOC_DISP },
  1076. };
  1077. static struct qcom_icc_node qxm_mdp1_disp = {
  1078. .name = "qxm_mdp1_disp",
  1079. .id = MASTER_MDP1_DISP,
  1080. .channels = 1,
  1081. .buswidth = 32,
  1082. .noc_ops = &qcom_qnoc4_ops,
  1083. .num_links = 1,
  1084. .links = { SLAVE_MNOC_HF_MEM_NOC_DISP },
  1085. };
  1086. static struct qcom_icc_node qxm_rot_disp = {
  1087. .name = "qxm_rot_disp",
  1088. .id = MASTER_ROTATOR_DISP,
  1089. .channels = 1,
  1090. .buswidth = 32,
  1091. .noc_ops = &qcom_qnoc4_ops,
  1092. .num_links = 1,
  1093. .links = { SLAVE_MNOC_SF_MEM_NOC_DISP },
  1094. };
  1095. static struct qcom_icc_node qns_a1noc_snoc = {
  1096. .name = "qns_a1noc_snoc",
  1097. .id = SLAVE_A1NOC_SNOC,
  1098. .channels = 1,
  1099. .buswidth = 32,
  1100. .noc_ops = &qcom_qnoc4_ops,
  1101. .num_links = 1,
  1102. .links = { MASTER_A1NOC_SNOC },
  1103. };
  1104. static struct qcom_icc_node qns_pcie_mem_noc = {
  1105. .name = "qns_pcie_mem_noc",
  1106. .id = SLAVE_ANOC_PCIE_GEM_NOC,
  1107. .channels = 1,
  1108. .buswidth = 32,
  1109. .noc_ops = &qcom_qnoc4_ops,
  1110. .num_links = 1,
  1111. .links = { MASTER_GEM_NOC_PCIE_SNOC },
  1112. };
  1113. static struct qcom_icc_node srvc_aggre1_noc = {
  1114. .name = "srvc_aggre1_noc",
  1115. .id = SLAVE_SERVICE_A1NOC,
  1116. .channels = 1,
  1117. .buswidth = 4,
  1118. .noc_ops = &qcom_qnoc4_ops,
  1119. .num_links = 0,
  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 srvc_aggre2_noc = {
  1131. .name = "srvc_aggre2_noc",
  1132. .id = SLAVE_SERVICE_A2NOC,
  1133. .channels = 1,
  1134. .buswidth = 4,
  1135. .noc_ops = &qcom_qnoc4_ops,
  1136. .num_links = 0,
  1137. };
  1138. static struct qcom_icc_node qns_camnoc_uncomp = {
  1139. .name = "qns_camnoc_uncomp",
  1140. .id = SLAVE_CAMNOC_UNCOMP,
  1141. .channels = 1,
  1142. .buswidth = 32,
  1143. .noc_ops = &qcom_qnoc4_ops,
  1144. .num_links = 0,
  1145. };
  1146. static struct qcom_icc_node qns_cdsp_mem_noc = {
  1147. .name = "qns_cdsp_mem_noc",
  1148. .id = SLAVE_CDSP_MEM_NOC,
  1149. .channels = 2,
  1150. .buswidth = 32,
  1151. .noc_ops = &qcom_qnoc4_ops,
  1152. .num_links = 1,
  1153. .links = { MASTER_COMPUTE_NOC },
  1154. };
  1155. static struct qcom_icc_node qhs_a1_noc_cfg = {
  1156. .name = "qhs_a1_noc_cfg",
  1157. .id = SLAVE_A1NOC_CFG,
  1158. .channels = 1,
  1159. .buswidth = 4,
  1160. .noc_ops = &qcom_qnoc4_ops,
  1161. .num_links = 1,
  1162. .links = { MASTER_A1NOC_CFG },
  1163. };
  1164. static struct qcom_icc_node qhs_a2_noc_cfg = {
  1165. .name = "qhs_a2_noc_cfg",
  1166. .id = SLAVE_A2NOC_CFG,
  1167. .channels = 1,
  1168. .buswidth = 4,
  1169. .noc_ops = &qcom_qnoc4_ops,
  1170. .num_links = 1,
  1171. .links = { MASTER_A2NOC_CFG },
  1172. };
  1173. static struct qcom_icc_node qhs_ahb2phy_refgen_center = {
  1174. .name = "qhs_ahb2phy_refgen_center",
  1175. .id = SLAVE_AHB2PHY_CENTER,
  1176. .channels = 1,
  1177. .buswidth = 4,
  1178. .noc_ops = &qcom_qnoc4_ops,
  1179. .num_links = 0,
  1180. };
  1181. static struct qcom_icc_node qhs_ahb2phy_refgen_east = {
  1182. .name = "qhs_ahb2phy_refgen_east",
  1183. .id = SLAVE_AHB2PHY_EAST,
  1184. .channels = 1,
  1185. .buswidth = 4,
  1186. .noc_ops = &qcom_qnoc4_ops,
  1187. .num_links = 0,
  1188. };
  1189. static struct qcom_icc_node qhs_ahb2phy_refgen_west = {
  1190. .name = "qhs_ahb2phy_refgen_west",
  1191. .id = SLAVE_AHB2PHY_WEST,
  1192. .channels = 1,
  1193. .buswidth = 4,
  1194. .noc_ops = &qcom_qnoc4_ops,
  1195. .num_links = 0,
  1196. };
  1197. static struct qcom_icc_node qhs_ahb2phy_south = {
  1198. .name = "qhs_ahb2phy_south",
  1199. .id = SLAVE_AHB2PHY_SOUTH,
  1200. .channels = 1,
  1201. .buswidth = 4,
  1202. .noc_ops = &qcom_qnoc4_ops,
  1203. .num_links = 0,
  1204. };
  1205. static struct qcom_icc_node qhs_aop = {
  1206. .name = "qhs_aop",
  1207. .id = SLAVE_AOP,
  1208. .channels = 1,
  1209. .buswidth = 4,
  1210. .noc_ops = &qcom_qnoc4_ops,
  1211. .num_links = 0,
  1212. };
  1213. static struct qcom_icc_node qhs_aoss = {
  1214. .name = "qhs_aoss",
  1215. .id = SLAVE_AOSS,
  1216. .channels = 1,
  1217. .buswidth = 4,
  1218. .noc_ops = &qcom_qnoc4_ops,
  1219. .num_links = 0,
  1220. };
  1221. static struct qcom_icc_node qhs_camera_cfg = {
  1222. .name = "qhs_camera_cfg",
  1223. .id = SLAVE_CAMERA_CFG,
  1224. .channels = 1,
  1225. .buswidth = 4,
  1226. .noc_ops = &qcom_qnoc4_ops,
  1227. .num_links = 0,
  1228. };
  1229. static struct qcom_icc_node qhs_clk_ctl = {
  1230. .name = "qhs_clk_ctl",
  1231. .id = SLAVE_CLK_CTL,
  1232. .channels = 1,
  1233. .buswidth = 4,
  1234. .noc_ops = &qcom_qnoc4_ops,
  1235. .num_links = 0,
  1236. };
  1237. static struct qcom_icc_node qhs_compute_dsp = {
  1238. .name = "qhs_compute_dsp",
  1239. .id = SLAVE_CDSP_CFG,
  1240. .channels = 1,
  1241. .buswidth = 4,
  1242. .noc_ops = &qcom_qnoc4_ops,
  1243. .num_links = 0,
  1244. };
  1245. static struct qcom_icc_node qhs_cpr_cx = {
  1246. .name = "qhs_cpr_cx",
  1247. .id = SLAVE_RBCPR_CX_CFG,
  1248. .channels = 1,
  1249. .buswidth = 4,
  1250. .noc_ops = &qcom_qnoc4_ops,
  1251. .num_links = 0,
  1252. };
  1253. static struct qcom_icc_node qhs_cpr_mmcx = {
  1254. .name = "qhs_cpr_mmcx",
  1255. .id = SLAVE_RBCPR_MMCX_CFG,
  1256. .channels = 1,
  1257. .buswidth = 4,
  1258. .noc_ops = &qcom_qnoc4_ops,
  1259. .num_links = 0,
  1260. };
  1261. static struct qcom_icc_node qhs_cpr_mx = {
  1262. .name = "qhs_cpr_mx",
  1263. .id = SLAVE_RBCPR_MX_CFG,
  1264. .channels = 1,
  1265. .buswidth = 4,
  1266. .noc_ops = &qcom_qnoc4_ops,
  1267. .num_links = 0,
  1268. };
  1269. static struct qcom_icc_node qhs_crypto0_cfg = {
  1270. .name = "qhs_crypto0_cfg",
  1271. .id = SLAVE_CRYPTO_0_CFG,
  1272. .channels = 1,
  1273. .buswidth = 4,
  1274. .noc_ops = &qcom_qnoc4_ops,
  1275. .num_links = 0,
  1276. };
  1277. static struct qcom_icc_node qhs_ddrss_cfg = {
  1278. .name = "qhs_ddrss_cfg",
  1279. .id = SLAVE_CNOC_DDRSS,
  1280. .channels = 1,
  1281. .buswidth = 4,
  1282. .noc_ops = &qcom_qnoc4_ops,
  1283. .num_links = 1,
  1284. .links = { MASTER_CNOC_DC_NOC },
  1285. };
  1286. static struct qcom_icc_node qhs_display_cfg = {
  1287. .name = "qhs_display_cfg",
  1288. .id = SLAVE_DISPLAY_CFG,
  1289. .channels = 1,
  1290. .buswidth = 4,
  1291. .noc_ops = &qcom_qnoc4_ops,
  1292. .num_links = 0,
  1293. };
  1294. static struct qcom_icc_node qhs_emac_cfg = {
  1295. .name = "qhs_emac_cfg",
  1296. .id = SLAVE_EMAC_CFG,
  1297. .channels = 1,
  1298. .buswidth = 4,
  1299. .noc_ops = &qcom_qnoc4_ops,
  1300. .num_links = 0,
  1301. };
  1302. static struct qcom_icc_node qhs_glm = {
  1303. .name = "qhs_glm",
  1304. .id = SLAVE_GLM,
  1305. .channels = 1,
  1306. .buswidth = 4,
  1307. .noc_ops = &qcom_qnoc4_ops,
  1308. .num_links = 0,
  1309. };
  1310. static struct qcom_icc_node qhs_gpuss_cfg = {
  1311. .name = "qhs_gpuss_cfg",
  1312. .id = SLAVE_GFX3D_CFG,
  1313. .channels = 1,
  1314. .buswidth = 8,
  1315. .noc_ops = &qcom_qnoc4_ops,
  1316. .num_links = 0,
  1317. };
  1318. static struct qcom_icc_node qhs_imem_cfg = {
  1319. .name = "qhs_imem_cfg",
  1320. .id = SLAVE_IMEM_CFG,
  1321. .channels = 1,
  1322. .buswidth = 4,
  1323. .noc_ops = &qcom_qnoc4_ops,
  1324. .num_links = 0,
  1325. };
  1326. static struct qcom_icc_node qhs_ipa = {
  1327. .name = "qhs_ipa",
  1328. .id = SLAVE_IPA_CFG,
  1329. .channels = 1,
  1330. .buswidth = 4,
  1331. .noc_ops = &qcom_qnoc4_ops,
  1332. .num_links = 0,
  1333. };
  1334. static struct qcom_icc_node qhs_mnoc_cfg = {
  1335. .name = "qhs_mnoc_cfg",
  1336. .id = SLAVE_CNOC_MNOC_CFG,
  1337. .channels = 1,
  1338. .buswidth = 4,
  1339. .noc_ops = &qcom_qnoc4_ops,
  1340. .num_links = 1,
  1341. .links = { MASTER_CNOC_MNOC_CFG },
  1342. };
  1343. static struct qcom_icc_node qhs_npu_cfg = {
  1344. .name = "qhs_npu_cfg",
  1345. .id = SLAVE_NPU_CFG,
  1346. .channels = 1,
  1347. .buswidth = 4,
  1348. .noc_ops = &qcom_qnoc4_ops,
  1349. .num_links = 0,
  1350. };
  1351. static struct qcom_icc_node qhs_pcie0_cfg = {
  1352. .name = "qhs_pcie0_cfg",
  1353. .id = SLAVE_PCIE_0_CFG,
  1354. .channels = 1,
  1355. .buswidth = 4,
  1356. .noc_ops = &qcom_qnoc4_ops,
  1357. .num_links = 0,
  1358. };
  1359. static struct qcom_icc_node qhs_pcie1_cfg = {
  1360. .name = "qhs_pcie1_cfg",
  1361. .id = SLAVE_PCIE_1_CFG,
  1362. .channels = 1,
  1363. .buswidth = 4,
  1364. .noc_ops = &qcom_qnoc4_ops,
  1365. .num_links = 0,
  1366. };
  1367. static struct qcom_icc_node qhs_pcie2_cfg = {
  1368. .name = "qhs_pcie2_cfg",
  1369. .id = SLAVE_PCIE_2_CFG,
  1370. .channels = 1,
  1371. .buswidth = 4,
  1372. .noc_ops = &qcom_qnoc4_ops,
  1373. .num_links = 0,
  1374. };
  1375. static struct qcom_icc_node qhs_pcie3_cfg = {
  1376. .name = "qhs_pcie3_cfg",
  1377. .id = SLAVE_PCIE_3_CFG,
  1378. .channels = 1,
  1379. .buswidth = 4,
  1380. .noc_ops = &qcom_qnoc4_ops,
  1381. .num_links = 0,
  1382. };
  1383. static struct qcom_icc_node qhs_pdm = {
  1384. .name = "qhs_pdm",
  1385. .id = SLAVE_PDM,
  1386. .channels = 1,
  1387. .buswidth = 4,
  1388. .noc_ops = &qcom_qnoc4_ops,
  1389. .num_links = 0,
  1390. };
  1391. static struct qcom_icc_node qhs_pimem_cfg = {
  1392. .name = "qhs_pimem_cfg",
  1393. .id = SLAVE_PIMEM_CFG,
  1394. .channels = 1,
  1395. .buswidth = 4,
  1396. .noc_ops = &qcom_qnoc4_ops,
  1397. .num_links = 0,
  1398. };
  1399. static struct qcom_icc_node qhs_prng = {
  1400. .name = "qhs_prng",
  1401. .id = SLAVE_PRNG,
  1402. .channels = 1,
  1403. .buswidth = 4,
  1404. .noc_ops = &qcom_qnoc4_ops,
  1405. .num_links = 0,
  1406. };
  1407. static struct qcom_icc_node qhs_qdss_cfg = {
  1408. .name = "qhs_qdss_cfg",
  1409. .id = SLAVE_QDSS_CFG,
  1410. .channels = 1,
  1411. .buswidth = 4,
  1412. .noc_ops = &qcom_qnoc4_ops,
  1413. .num_links = 0,
  1414. };
  1415. static struct qcom_icc_node qhs_qspi_0 = {
  1416. .name = "qhs_qspi_0",
  1417. .id = SLAVE_QSPI_0,
  1418. .channels = 1,
  1419. .buswidth = 4,
  1420. .noc_ops = &qcom_qnoc4_ops,
  1421. .num_links = 0,
  1422. };
  1423. static struct qcom_icc_node qhs_qspi_1 = {
  1424. .name = "qhs_qspi_1",
  1425. .id = SLAVE_QSPI_1,
  1426. .channels = 1,
  1427. .buswidth = 4,
  1428. .noc_ops = &qcom_qnoc4_ops,
  1429. .num_links = 0,
  1430. };
  1431. static struct qcom_icc_node qhs_qupv3_east0 = {
  1432. .name = "qhs_qupv3_east0",
  1433. .id = SLAVE_QUP_1,
  1434. .channels = 1,
  1435. .buswidth = 4,
  1436. .noc_ops = &qcom_qnoc4_ops,
  1437. .num_links = 0,
  1438. };
  1439. static struct qcom_icc_node qhs_qupv3_east1 = {
  1440. .name = "qhs_qupv3_east1",
  1441. .id = SLAVE_QUP_2,
  1442. .channels = 1,
  1443. .buswidth = 4,
  1444. .noc_ops = &qcom_qnoc4_ops,
  1445. .num_links = 0,
  1446. };
  1447. static struct qcom_icc_node qhs_qupv3_west = {
  1448. .name = "qhs_qupv3_west",
  1449. .id = SLAVE_QUP_0,
  1450. .channels = 1,
  1451. .buswidth = 4,
  1452. .noc_ops = &qcom_qnoc4_ops,
  1453. .num_links = 0,
  1454. };
  1455. static struct qcom_icc_node qhs_sdc2 = {
  1456. .name = "qhs_sdc2",
  1457. .id = SLAVE_SDCC_2,
  1458. .channels = 1,
  1459. .buswidth = 4,
  1460. .noc_ops = &qcom_qnoc4_ops,
  1461. .num_links = 0,
  1462. };
  1463. static struct qcom_icc_node qhs_sdc4 = {
  1464. .name = "qhs_sdc4",
  1465. .id = SLAVE_SDCC_4,
  1466. .channels = 1,
  1467. .buswidth = 4,
  1468. .noc_ops = &qcom_qnoc4_ops,
  1469. .num_links = 0,
  1470. };
  1471. static struct qcom_icc_node qhs_security = {
  1472. .name = "qhs_security",
  1473. .id = SLAVE_SECURITY,
  1474. .channels = 1,
  1475. .buswidth = 4,
  1476. .noc_ops = &qcom_qnoc4_ops,
  1477. .num_links = 0,
  1478. };
  1479. static struct qcom_icc_node qhs_snoc_cfg = {
  1480. .name = "qhs_snoc_cfg",
  1481. .id = SLAVE_SNOC_CFG,
  1482. .channels = 1,
  1483. .buswidth = 4,
  1484. .noc_ops = &qcom_qnoc4_ops,
  1485. .num_links = 1,
  1486. .links = { MASTER_SNOC_CFG },
  1487. };
  1488. static struct qcom_icc_node qhs_spss_cfg = {
  1489. .name = "qhs_spss_cfg",
  1490. .id = SLAVE_SPSS_CFG,
  1491. .channels = 1,
  1492. .buswidth = 4,
  1493. .noc_ops = &qcom_qnoc4_ops,
  1494. .num_links = 0,
  1495. };
  1496. static struct qcom_icc_node qhs_tcsr = {
  1497. .name = "qhs_tcsr",
  1498. .id = SLAVE_TCSR,
  1499. .channels = 1,
  1500. .buswidth = 4,
  1501. .noc_ops = &qcom_qnoc4_ops,
  1502. .num_links = 0,
  1503. };
  1504. static struct qcom_icc_node qhs_tlmm_east = {
  1505. .name = "qhs_tlmm_east",
  1506. .id = SLAVE_TLMM_EAST,
  1507. .channels = 1,
  1508. .buswidth = 4,
  1509. .noc_ops = &qcom_qnoc4_ops,
  1510. .num_links = 0,
  1511. };
  1512. static struct qcom_icc_node qhs_tlmm_south = {
  1513. .name = "qhs_tlmm_south",
  1514. .id = SLAVE_TLMM_SOUTH,
  1515. .channels = 1,
  1516. .buswidth = 4,
  1517. .noc_ops = &qcom_qnoc4_ops,
  1518. .num_links = 0,
  1519. };
  1520. static struct qcom_icc_node qhs_tlmm_west = {
  1521. .name = "qhs_tlmm_west",
  1522. .id = SLAVE_TLMM_WEST,
  1523. .channels = 1,
  1524. .buswidth = 4,
  1525. .noc_ops = &qcom_qnoc4_ops,
  1526. .num_links = 0,
  1527. };
  1528. static struct qcom_icc_node qhs_tsif = {
  1529. .name = "qhs_tsif",
  1530. .id = SLAVE_TSIF,
  1531. .channels = 1,
  1532. .buswidth = 4,
  1533. .noc_ops = &qcom_qnoc4_ops,
  1534. .num_links = 0,
  1535. };
  1536. static struct qcom_icc_node qhs_ufs_card_cfg = {
  1537. .name = "qhs_ufs_card_cfg",
  1538. .id = SLAVE_UFS_CARD_CFG,
  1539. .channels = 1,
  1540. .buswidth = 4,
  1541. .noc_ops = &qcom_qnoc4_ops,
  1542. .num_links = 0,
  1543. };
  1544. static struct qcom_icc_node qhs_ufs_mem0_cfg = {
  1545. .name = "qhs_ufs_mem0_cfg",
  1546. .id = SLAVE_UFS_MEM_0_CFG,
  1547. .channels = 1,
  1548. .buswidth = 4,
  1549. .noc_ops = &qcom_qnoc4_ops,
  1550. .num_links = 0,
  1551. };
  1552. static struct qcom_icc_node qhs_ufs_mem1_cfg = {
  1553. .name = "qhs_ufs_mem1_cfg",
  1554. .id = SLAVE_UFS_MEM_1_CFG,
  1555. .channels = 1,
  1556. .buswidth = 4,
  1557. .noc_ops = &qcom_qnoc4_ops,
  1558. .num_links = 0,
  1559. };
  1560. static struct qcom_icc_node qhs_usb3_0 = {
  1561. .name = "qhs_usb3_0",
  1562. .id = SLAVE_USB3_0,
  1563. .channels = 1,
  1564. .buswidth = 4,
  1565. .noc_ops = &qcom_qnoc4_ops,
  1566. .num_links = 0,
  1567. };
  1568. static struct qcom_icc_node qhs_usb3_1 = {
  1569. .name = "qhs_usb3_1",
  1570. .id = SLAVE_USB3_1,
  1571. .channels = 1,
  1572. .buswidth = 4,
  1573. .noc_ops = &qcom_qnoc4_ops,
  1574. .num_links = 0,
  1575. };
  1576. static struct qcom_icc_node qhs_usb3_2 = {
  1577. .name = "qhs_usb3_2",
  1578. .id = SLAVE_USB3_2,
  1579. .channels = 1,
  1580. .buswidth = 4,
  1581. .noc_ops = &qcom_qnoc4_ops,
  1582. .num_links = 0,
  1583. };
  1584. static struct qcom_icc_node qhs_venus_cfg = {
  1585. .name = "qhs_venus_cfg",
  1586. .id = SLAVE_VENUS_CFG,
  1587. .channels = 1,
  1588. .buswidth = 4,
  1589. .noc_ops = &qcom_qnoc4_ops,
  1590. .num_links = 0,
  1591. };
  1592. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  1593. .name = "qhs_vsense_ctrl_cfg",
  1594. .id = SLAVE_VSENSE_CTRL_CFG,
  1595. .channels = 1,
  1596. .buswidth = 4,
  1597. .noc_ops = &qcom_qnoc4_ops,
  1598. .num_links = 0,
  1599. };
  1600. static struct qcom_icc_node srvc_cnoc = {
  1601. .name = "srvc_cnoc",
  1602. .id = SLAVE_SERVICE_CNOC,
  1603. .channels = 1,
  1604. .buswidth = 4,
  1605. .noc_ops = &qcom_qnoc4_ops,
  1606. .num_links = 0,
  1607. };
  1608. static struct qcom_icc_node qhs_gemnoc = {
  1609. .name = "qhs_gemnoc",
  1610. .id = SLAVE_GEM_NOC_CFG,
  1611. .channels = 1,
  1612. .buswidth = 4,
  1613. .noc_ops = &qcom_qnoc4_ops,
  1614. .num_links = 1,
  1615. .links = { MASTER_GEM_NOC_CFG },
  1616. };
  1617. static struct qcom_icc_node qhs_llcc = {
  1618. .name = "qhs_llcc",
  1619. .id = SLAVE_LLCC_CFG,
  1620. .channels = 1,
  1621. .buswidth = 4,
  1622. .noc_ops = &qcom_qnoc4_ops,
  1623. .num_links = 0,
  1624. };
  1625. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  1626. .name = "qhs_mdsp_ms_mpu_cfg",
  1627. .id = SLAVE_MSS_PROC_MS_MPU_CFG,
  1628. .channels = 1,
  1629. .buswidth = 4,
  1630. .noc_ops = &qcom_qnoc4_ops,
  1631. .num_links = 0,
  1632. };
  1633. static struct qcom_icc_node qns_ecc = {
  1634. .name = "qns_ecc",
  1635. .id = SLAVE_ECC,
  1636. .channels = 1,
  1637. .buswidth = 32,
  1638. .noc_ops = &qcom_qnoc4_ops,
  1639. .num_links = 0,
  1640. };
  1641. static struct qcom_icc_node qns_gem_noc_snoc = {
  1642. .name = "qns_gem_noc_snoc",
  1643. .id = SLAVE_GEM_NOC_SNOC,
  1644. .channels = 1,
  1645. .buswidth = 8,
  1646. .noc_ops = &qcom_qnoc4_ops,
  1647. .num_links = 1,
  1648. .links = { MASTER_GEM_NOC_SNOC },
  1649. };
  1650. static struct qcom_icc_node qns_llcc = {
  1651. .name = "qns_llcc",
  1652. .id = SLAVE_LLCC,
  1653. .channels = 8,
  1654. .buswidth = 16,
  1655. .noc_ops = &qcom_qnoc4_ops,
  1656. .num_links = 1,
  1657. .links = { MASTER_LLCC },
  1658. };
  1659. static struct qcom_icc_node srvc_gemnoc = {
  1660. .name = "srvc_gemnoc",
  1661. .id = SLAVE_SERVICE_GEM_NOC,
  1662. .channels = 1,
  1663. .buswidth = 4,
  1664. .noc_ops = &qcom_qnoc4_ops,
  1665. .num_links = 0,
  1666. };
  1667. static struct qcom_icc_node srvc_gemnoc1 = {
  1668. .name = "srvc_gemnoc1",
  1669. .id = SLAVE_SERVICE_GEM_NOC_1,
  1670. .channels = 1,
  1671. .buswidth = 4,
  1672. .noc_ops = &qcom_qnoc4_ops,
  1673. .num_links = 0,
  1674. };
  1675. static struct qcom_icc_node ipa_core_slave = {
  1676. .name = "ipa_core_slave",
  1677. .id = SLAVE_IPA_CORE,
  1678. .channels = 1,
  1679. .buswidth = 8,
  1680. .noc_ops = &qcom_qnoc4_ops,
  1681. .num_links = 0,
  1682. };
  1683. static struct qcom_icc_node ebi = {
  1684. .name = "ebi",
  1685. .id = SLAVE_EBI1,
  1686. .channels = 8,
  1687. .buswidth = 4,
  1688. .noc_ops = &qcom_qnoc4_ops,
  1689. .num_links = 0,
  1690. };
  1691. static struct qcom_icc_node qns2_mem_noc = {
  1692. .name = "qns2_mem_noc",
  1693. .id = SLAVE_MNOC_SF_MEM_NOC,
  1694. .channels = 1,
  1695. .buswidth = 32,
  1696. .noc_ops = &qcom_qnoc4_ops,
  1697. .num_links = 1,
  1698. .links = { MASTER_MNOC_SF_MEM_NOC },
  1699. };
  1700. static struct qcom_icc_node qns_mem_noc_hf = {
  1701. .name = "qns_mem_noc_hf",
  1702. .id = SLAVE_MNOC_HF_MEM_NOC,
  1703. .channels = 2,
  1704. .buswidth = 32,
  1705. .noc_ops = &qcom_qnoc4_ops,
  1706. .num_links = 1,
  1707. .links = { MASTER_MNOC_HF_MEM_NOC },
  1708. };
  1709. static struct qcom_icc_node srvc_mnoc = {
  1710. .name = "srvc_mnoc",
  1711. .id = SLAVE_SERVICE_MNOC,
  1712. .channels = 1,
  1713. .buswidth = 4,
  1714. .noc_ops = &qcom_qnoc4_ops,
  1715. .num_links = 0,
  1716. };
  1717. static struct qcom_icc_node qhs_apss = {
  1718. .name = "qhs_apss",
  1719. .id = SLAVE_APPSS,
  1720. .channels = 1,
  1721. .buswidth = 8,
  1722. .noc_ops = &qcom_qnoc4_ops,
  1723. .num_links = 0,
  1724. };
  1725. static struct qcom_icc_node qns_cnoc = {
  1726. .name = "qns_cnoc",
  1727. .id = SLAVE_SNOC_CNOC,
  1728. .channels = 1,
  1729. .buswidth = 8,
  1730. .noc_ops = &qcom_qnoc4_ops,
  1731. .num_links = 1,
  1732. .links = { MASTER_SNOC_CNOC },
  1733. };
  1734. static struct qcom_icc_node qns_gemnoc_gc = {
  1735. .name = "qns_gemnoc_gc",
  1736. .id = SLAVE_SNOC_GEM_NOC_GC,
  1737. .channels = 1,
  1738. .buswidth = 8,
  1739. .noc_ops = &qcom_qnoc4_ops,
  1740. .num_links = 1,
  1741. .links = { MASTER_SNOC_GC_MEM_NOC },
  1742. };
  1743. static struct qcom_icc_node qns_gemnoc_sf = {
  1744. .name = "qns_gemnoc_sf",
  1745. .id = SLAVE_SNOC_GEM_NOC_SF,
  1746. .channels = 1,
  1747. .buswidth = 32,
  1748. .noc_ops = &qcom_qnoc4_ops,
  1749. .num_links = 1,
  1750. .links = { MASTER_SNOC_SF_MEM_NOC },
  1751. };
  1752. static struct qcom_icc_node qxs_imem = {
  1753. .name = "qxs_imem",
  1754. .id = SLAVE_IMEM,
  1755. .channels = 1,
  1756. .buswidth = 8,
  1757. .noc_ops = &qcom_qnoc4_ops,
  1758. .num_links = 0,
  1759. };
  1760. static struct qcom_icc_node qxs_pimem = {
  1761. .name = "qxs_pimem",
  1762. .id = SLAVE_PIMEM,
  1763. .channels = 1,
  1764. .buswidth = 8,
  1765. .noc_ops = &qcom_qnoc4_ops,
  1766. .num_links = 0,
  1767. };
  1768. static struct qcom_icc_node srvc_snoc = {
  1769. .name = "srvc_snoc",
  1770. .id = SLAVE_SERVICE_SNOC,
  1771. .channels = 1,
  1772. .buswidth = 4,
  1773. .noc_ops = &qcom_qnoc4_ops,
  1774. .num_links = 0,
  1775. };
  1776. static struct qcom_icc_node xs_pcie_0 = {
  1777. .name = "xs_pcie_0",
  1778. .id = SLAVE_PCIE_0,
  1779. .channels = 1,
  1780. .buswidth = 8,
  1781. .noc_ops = &qcom_qnoc4_ops,
  1782. .num_links = 0,
  1783. };
  1784. static struct qcom_icc_node xs_pcie_1 = {
  1785. .name = "xs_pcie_1",
  1786. .id = SLAVE_PCIE_1,
  1787. .channels = 1,
  1788. .buswidth = 8,
  1789. .noc_ops = &qcom_qnoc4_ops,
  1790. .num_links = 0,
  1791. };
  1792. static struct qcom_icc_node xs_pcie_2 = {
  1793. .name = "xs_pcie_2",
  1794. .id = SLAVE_PCIE_2,
  1795. .channels = 1,
  1796. .buswidth = 8,
  1797. .noc_ops = &qcom_qnoc4_ops,
  1798. .num_links = 0,
  1799. };
  1800. static struct qcom_icc_node xs_pcie_3 = {
  1801. .name = "xs_pcie_3",
  1802. .id = SLAVE_PCIE_3,
  1803. .channels = 1,
  1804. .buswidth = 8,
  1805. .noc_ops = &qcom_qnoc4_ops,
  1806. .num_links = 0,
  1807. };
  1808. static struct qcom_icc_node xs_qdss_stm = {
  1809. .name = "xs_qdss_stm",
  1810. .id = SLAVE_QDSS_STM,
  1811. .channels = 1,
  1812. .buswidth = 4,
  1813. .noc_ops = &qcom_qnoc4_ops,
  1814. .num_links = 0,
  1815. };
  1816. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1817. .name = "xs_sys_tcu_cfg",
  1818. .id = SLAVE_TCU,
  1819. .channels = 1,
  1820. .buswidth = 8,
  1821. .noc_ops = &qcom_qnoc4_ops,
  1822. .num_links = 0,
  1823. };
  1824. static struct qcom_icc_node qns_llcc_disp = {
  1825. .name = "qns_llcc_disp",
  1826. .id = SLAVE_LLCC_DISP,
  1827. .channels = 8,
  1828. .buswidth = 16,
  1829. .noc_ops = &qcom_qnoc4_ops,
  1830. .num_links = 1,
  1831. .links = { MASTER_LLCC_DISP },
  1832. };
  1833. static struct qcom_icc_node ebi_disp = {
  1834. .name = "ebi_disp",
  1835. .id = SLAVE_EBI1_DISP,
  1836. .channels = 8,
  1837. .buswidth = 4,
  1838. .noc_ops = &qcom_qnoc4_ops,
  1839. .num_links = 0,
  1840. };
  1841. static struct qcom_icc_node qns2_mem_noc_disp = {
  1842. .name = "qns2_mem_noc_disp",
  1843. .id = SLAVE_MNOC_SF_MEM_NOC_DISP,
  1844. .channels = 1,
  1845. .buswidth = 32,
  1846. .noc_ops = &qcom_qnoc4_ops,
  1847. .num_links = 1,
  1848. .links = { MASTER_MNOC_SF_MEM_NOC_DISP },
  1849. };
  1850. static struct qcom_icc_node qns_mem_noc_hf_disp = {
  1851. .name = "qns_mem_noc_hf_disp",
  1852. .id = SLAVE_MNOC_HF_MEM_NOC_DISP,
  1853. .channels = 2,
  1854. .buswidth = 32,
  1855. .noc_ops = &qcom_qnoc4_ops,
  1856. .num_links = 1,
  1857. .links = { MASTER_MNOC_HF_MEM_NOC_DISP },
  1858. };
  1859. static struct qcom_icc_bcm bcm_acv = {
  1860. .name = "ACV",
  1861. .voter_idx = 0,
  1862. .num_nodes = 1,
  1863. .nodes = { &ebi },
  1864. };
  1865. static struct qcom_icc_bcm bcm_ce0 = {
  1866. .name = "CE0",
  1867. .voter_idx = 0,
  1868. .num_nodes = 1,
  1869. .nodes = { &qxm_crypto },
  1870. };
  1871. static struct qcom_icc_bcm bcm_cn0 = {
  1872. .name = "CN0",
  1873. .voter_idx = 0,
  1874. .keepalive = true,
  1875. .num_nodes = 57,
  1876. .nodes = { &qnm_snoc, &qhs_a1_noc_cfg,
  1877. &qhs_a2_noc_cfg, &qhs_ahb2phy_refgen_center,
  1878. &qhs_ahb2phy_refgen_east, &qhs_ahb2phy_refgen_west,
  1879. &qhs_ahb2phy_south, &qhs_aop,
  1880. &qhs_aoss, &qhs_camera_cfg,
  1881. &qhs_clk_ctl, &qhs_compute_dsp,
  1882. &qhs_cpr_cx, &qhs_cpr_mmcx,
  1883. &qhs_cpr_mx, &qhs_crypto0_cfg,
  1884. &qhs_ddrss_cfg, &qhs_display_cfg,
  1885. &qhs_emac_cfg, &qhs_glm,
  1886. &qhs_gpuss_cfg, &qhs_imem_cfg,
  1887. &qhs_ipa, &qhs_mnoc_cfg,
  1888. &qhs_npu_cfg, &qhs_pcie0_cfg,
  1889. &qhs_pcie1_cfg, &qhs_pcie2_cfg,
  1890. &qhs_pcie3_cfg, &qhs_pdm,
  1891. &qhs_pimem_cfg, &qhs_prng,
  1892. &qhs_qdss_cfg, &qhs_qspi_0,
  1893. &qhs_qspi_1, &qhs_qupv3_east0,
  1894. &qhs_qupv3_east1, &qhs_qupv3_west,
  1895. &qhs_sdc2, &qhs_sdc4,
  1896. &qhs_security, &qhs_snoc_cfg,
  1897. &qhs_spss_cfg, &qhs_tcsr,
  1898. &qhs_tlmm_east, &qhs_tlmm_south,
  1899. &qhs_tlmm_west, &qhs_tsif,
  1900. &qhs_ufs_card_cfg, &qhs_ufs_mem0_cfg,
  1901. &qhs_ufs_mem1_cfg, &qhs_usb3_0,
  1902. &qhs_usb3_1, &qhs_usb3_2,
  1903. &qhs_venus_cfg, &qhs_vsense_ctrl_cfg,
  1904. &srvc_cnoc },
  1905. };
  1906. static struct qcom_icc_bcm bcm_co0 = {
  1907. .name = "CO0",
  1908. .voter_idx = 0,
  1909. .keepalive = true,
  1910. .num_nodes = 1,
  1911. .nodes = { &qns_cdsp_mem_noc },
  1912. };
  1913. static struct qcom_icc_bcm bcm_co2 = {
  1914. .name = "CO2",
  1915. .voter_idx = 0,
  1916. .keepalive = true,
  1917. .num_nodes = 1,
  1918. .nodes = { &qnm_npu },
  1919. };
  1920. static struct qcom_icc_bcm bcm_ip0 = {
  1921. .name = "IP0",
  1922. .voter_idx = 0,
  1923. .qos_proxy = true,
  1924. .num_nodes = 1,
  1925. .nodes = { &ipa_core_slave },
  1926. };
  1927. static struct qcom_icc_bcm bcm_mc0 = {
  1928. .name = "MC0",
  1929. .voter_idx = 0,
  1930. .keepalive = true,
  1931. .num_nodes = 1,
  1932. .nodes = { &ebi },
  1933. };
  1934. static struct qcom_icc_bcm bcm_mm0 = {
  1935. .name = "MM0",
  1936. .voter_idx = 0,
  1937. .keepalive = true,
  1938. .num_nodes = 1,
  1939. .nodes = { &qns_mem_noc_hf },
  1940. };
  1941. static struct qcom_icc_bcm bcm_mm1 = {
  1942. .name = "MM1",
  1943. .voter_idx = 0,
  1944. .num_nodes = 7,
  1945. .nodes = { &qxm_camnoc_hf0_uncomp, &qxm_camnoc_hf1_uncomp,
  1946. &qxm_camnoc_sf_uncomp, &qxm_camnoc_hf0,
  1947. &qxm_camnoc_hf1, &qxm_mdp0,
  1948. &qxm_mdp1 },
  1949. };
  1950. static struct qcom_icc_bcm bcm_mm2 = {
  1951. .name = "MM2",
  1952. .voter_idx = 0,
  1953. .num_nodes = 6,
  1954. .nodes = { &qxm_camnoc_sf, &qxm_rot,
  1955. &qxm_venus0, &qxm_venus1,
  1956. &qxm_venus_arm9, &qns2_mem_noc },
  1957. };
  1958. static struct qcom_icc_bcm bcm_qup0 = {
  1959. .name = "QUP0",
  1960. .voter_idx = 0,
  1961. .keepalive = true,
  1962. .vote_scale = 1,
  1963. .num_nodes = 3,
  1964. .nodes = { &qhm_qup0, &qhm_qup1,
  1965. &qhm_qup2 },
  1966. };
  1967. static struct qcom_icc_bcm bcm_sh0 = {
  1968. .name = "SH0",
  1969. .voter_idx = 0,
  1970. .keepalive = true,
  1971. .num_nodes = 1,
  1972. .nodes = { &qns_llcc },
  1973. };
  1974. static struct qcom_icc_bcm bcm_sh2 = {
  1975. .name = "SH2",
  1976. .voter_idx = 0,
  1977. .num_nodes = 1,
  1978. .nodes = { &qns_gem_noc_snoc },
  1979. };
  1980. static struct qcom_icc_bcm bcm_sh3 = {
  1981. .name = "SH3",
  1982. .voter_idx = 0,
  1983. .num_nodes = 1,
  1984. .nodes = { &acm_apps },
  1985. };
  1986. static struct qcom_icc_bcm bcm_sn0 = {
  1987. .name = "SN0",
  1988. .voter_idx = 0,
  1989. .keepalive = true,
  1990. .num_nodes = 1,
  1991. .nodes = { &qns_gemnoc_sf },
  1992. };
  1993. static struct qcom_icc_bcm bcm_sn1 = {
  1994. .name = "SN1",
  1995. .voter_idx = 0,
  1996. .num_nodes = 1,
  1997. .nodes = { &qxs_imem },
  1998. };
  1999. static struct qcom_icc_bcm bcm_sn2 = {
  2000. .name = "SN2",
  2001. .voter_idx = 0,
  2002. .num_nodes = 1,
  2003. .nodes = { &qns_gemnoc_gc },
  2004. };
  2005. static struct qcom_icc_bcm bcm_sn3 = {
  2006. .name = "SN3",
  2007. .voter_idx = 0,
  2008. .num_nodes = 2,
  2009. .nodes = { &srvc_aggre1_noc, &qns_cnoc },
  2010. };
  2011. static struct qcom_icc_bcm bcm_sn4 = {
  2012. .name = "SN4",
  2013. .voter_idx = 0,
  2014. .num_nodes = 1,
  2015. .nodes = { &qxs_pimem },
  2016. };
  2017. static struct qcom_icc_bcm bcm_sn8 = {
  2018. .name = "SN8",
  2019. .voter_idx = 0,
  2020. .num_nodes = 4,
  2021. .nodes = { &xs_pcie_0, &xs_pcie_1,
  2022. &xs_pcie_2, &xs_pcie_3 },
  2023. };
  2024. static struct qcom_icc_bcm bcm_sn9 = {
  2025. .name = "SN9",
  2026. .voter_idx = 0,
  2027. .num_nodes = 1,
  2028. .nodes = { &qnm_aggre1_noc },
  2029. };
  2030. static struct qcom_icc_bcm bcm_sn11 = {
  2031. .name = "SN11",
  2032. .voter_idx = 0,
  2033. .num_nodes = 1,
  2034. .nodes = { &qnm_aggre2_noc },
  2035. };
  2036. static struct qcom_icc_bcm bcm_sn14 = {
  2037. .name = "SN14",
  2038. .voter_idx = 0,
  2039. .num_nodes = 1,
  2040. .nodes = { &qns_pcie_mem_noc },
  2041. };
  2042. static struct qcom_icc_bcm bcm_sn15 = {
  2043. .name = "SN15",
  2044. .voter_idx = 0,
  2045. .num_nodes = 1,
  2046. .nodes = { &qnm_gemnoc },
  2047. };
  2048. static struct qcom_icc_bcm bcm_acv_disp = {
  2049. .name = "ACV",
  2050. .voter_idx = 1,
  2051. .num_nodes = 1,
  2052. .nodes = { &ebi_disp },
  2053. };
  2054. static struct qcom_icc_bcm bcm_mc0_disp = {
  2055. .name = "MC0",
  2056. .voter_idx = 1,
  2057. .num_nodes = 1,
  2058. .nodes = { &ebi_disp },
  2059. };
  2060. static struct qcom_icc_bcm bcm_mm0_disp = {
  2061. .name = "MM0",
  2062. .voter_idx = 1,
  2063. .num_nodes = 1,
  2064. .nodes = { &qns_mem_noc_hf_disp },
  2065. };
  2066. static struct qcom_icc_bcm bcm_mm1_disp = {
  2067. .name = "MM1",
  2068. .voter_idx = 1,
  2069. .num_nodes = 2,
  2070. .nodes = { &qxm_mdp0_disp, &qxm_mdp1_disp },
  2071. };
  2072. static struct qcom_icc_bcm bcm_mm2_disp = {
  2073. .name = "MM2",
  2074. .voter_idx = 1,
  2075. .num_nodes = 2,
  2076. .nodes = { &qxm_rot_disp, &qns2_mem_noc_disp },
  2077. };
  2078. static struct qcom_icc_bcm bcm_sh0_disp = {
  2079. .name = "SH0",
  2080. .voter_idx = 1,
  2081. .num_nodes = 1,
  2082. .nodes = { &qns_llcc_disp },
  2083. };
  2084. static const struct regmap_config icc_regmap_config = {
  2085. .reg_bits = 32,
  2086. .reg_stride = 4,
  2087. .val_bits = 32,
  2088. };
  2089. static struct qcom_icc_bcm *aggre1_noc_bcms[] = {
  2090. &bcm_sn3,
  2091. &bcm_sn14,
  2092. };
  2093. static struct qcom_icc_node *aggre1_noc_nodes[] = {
  2094. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  2095. [MASTER_PCIE_0] = &xm_pcie3_0,
  2096. [MASTER_PCIE_1] = &xm_pcie3_1,
  2097. [MASTER_PCIE_2] = &xm_pcie3_2,
  2098. [MASTER_PCIE_3] = &xm_pcie3_3,
  2099. [MASTER_UFS_CARD] = &xm_ufs_card,
  2100. [MASTER_UFS_GEN4] = &xm_ufs_g4,
  2101. [MASTER_UFS_MEM] = &xm_ufs_mem,
  2102. [MASTER_USB3_0] = &xm_usb3_0,
  2103. [MASTER_USB3_1] = &xm_usb3_1,
  2104. [MASTER_USB3_2] = &xm_usb3_2,
  2105. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  2106. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  2107. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  2108. };
  2109. static char *aggre1_noc_voters[] = {
  2110. "hlos",
  2111. };
  2112. static struct qcom_icc_desc sc8180x_aggre1_noc = {
  2113. .config = &icc_regmap_config,
  2114. .nodes = aggre1_noc_nodes,
  2115. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  2116. .bcms = aggre1_noc_bcms,
  2117. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  2118. .voters = aggre1_noc_voters,
  2119. .num_voters = ARRAY_SIZE(aggre1_noc_voters),
  2120. };
  2121. static struct qcom_icc_bcm *aggre2_noc_bcms[] = {
  2122. &bcm_ce0,
  2123. &bcm_qup0,
  2124. &bcm_ip0,
  2125. };
  2126. static struct qcom_icc_node *aggre2_noc_nodes[] = {
  2127. [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg,
  2128. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  2129. [MASTER_QSPI_0] = &qhm_qspi,
  2130. [MASTER_QSPI_1] = &qhm_qspi1,
  2131. [MASTER_QUP_0] = &qhm_qup0,
  2132. [MASTER_QUP_1] = &qhm_qup1,
  2133. [MASTER_QUP_2] = &qhm_qup2,
  2134. [MASTER_CRYPTO] = &qxm_crypto,
  2135. [MASTER_IPA] = &qxm_ipa,
  2136. [MASTER_EMAC] = &xm_emac,
  2137. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  2138. [MASTER_SDCC_2] = &xm_sdc2,
  2139. [MASTER_SDCC_4] = &xm_sdc4,
  2140. [MASTER_SENSORS_AHB] = &qhm_sensorss_ahb,
  2141. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  2142. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  2143. };
  2144. static char *aggre2_noc_voters[] = {
  2145. "hlos",
  2146. };
  2147. static struct qcom_icc_desc sc8180x_aggre2_noc = {
  2148. .config = &icc_regmap_config,
  2149. .nodes = aggre2_noc_nodes,
  2150. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  2151. .bcms = aggre2_noc_bcms,
  2152. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  2153. .voters = aggre2_noc_voters,
  2154. .num_voters = ARRAY_SIZE(aggre2_noc_voters),
  2155. };
  2156. static struct qcom_icc_bcm *camnoc_virt_bcms[] = {
  2157. &bcm_mm1,
  2158. };
  2159. static struct qcom_icc_node *camnoc_virt_nodes[] = {
  2160. [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp,
  2161. [MASTER_CAMNOC_HF1_UNCOMP] = &qxm_camnoc_hf1_uncomp,
  2162. [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp,
  2163. [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
  2164. };
  2165. static char *camnoc_virt_voters[] = {
  2166. "hlos",
  2167. };
  2168. static struct qcom_icc_desc sc8180x_camnoc_virt = {
  2169. .config = &icc_regmap_config,
  2170. .nodes = camnoc_virt_nodes,
  2171. .num_nodes = ARRAY_SIZE(camnoc_virt_nodes),
  2172. .bcms = camnoc_virt_bcms,
  2173. .num_bcms = ARRAY_SIZE(camnoc_virt_bcms),
  2174. .voters = camnoc_virt_voters,
  2175. .num_voters = ARRAY_SIZE(camnoc_virt_voters),
  2176. };
  2177. static struct qcom_icc_bcm *compute_noc_bcms[] = {
  2178. &bcm_co0,
  2179. &bcm_co2,
  2180. };
  2181. static struct qcom_icc_node *compute_noc_nodes[] = {
  2182. [MASTER_NPU] = &qnm_npu,
  2183. [SLAVE_CDSP_MEM_NOC] = &qns_cdsp_mem_noc,
  2184. };
  2185. static char *compute_noc_voters[] = {
  2186. "hlos",
  2187. };
  2188. static struct qcom_icc_desc sc8180x_compute_noc = {
  2189. .config = &icc_regmap_config,
  2190. .nodes = compute_noc_nodes,
  2191. .num_nodes = ARRAY_SIZE(compute_noc_nodes),
  2192. .bcms = compute_noc_bcms,
  2193. .num_bcms = ARRAY_SIZE(compute_noc_bcms),
  2194. .voters = compute_noc_voters,
  2195. .num_voters = ARRAY_SIZE(compute_noc_voters),
  2196. };
  2197. static struct qcom_icc_bcm *config_noc_bcms[] = {
  2198. &bcm_cn0,
  2199. };
  2200. static struct qcom_icc_node *config_noc_nodes[] = {
  2201. [MASTER_SNOC_CNOC] = &qnm_snoc,
  2202. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  2203. [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg,
  2204. [SLAVE_AHB2PHY_CENTER] = &qhs_ahb2phy_refgen_center,
  2205. [SLAVE_AHB2PHY_EAST] = &qhs_ahb2phy_refgen_east,
  2206. [SLAVE_AHB2PHY_WEST] = &qhs_ahb2phy_refgen_west,
  2207. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy_south,
  2208. [SLAVE_AOP] = &qhs_aop,
  2209. [SLAVE_AOSS] = &qhs_aoss,
  2210. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  2211. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  2212. [SLAVE_CDSP_CFG] = &qhs_compute_dsp,
  2213. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  2214. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  2215. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  2216. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  2217. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  2218. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  2219. [SLAVE_EMAC_CFG] = &qhs_emac_cfg,
  2220. [SLAVE_GLM] = &qhs_glm,
  2221. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  2222. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  2223. [SLAVE_IPA_CFG] = &qhs_ipa,
  2224. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  2225. [SLAVE_NPU_CFG] = &qhs_npu_cfg,
  2226. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  2227. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  2228. [SLAVE_PCIE_2_CFG] = &qhs_pcie2_cfg,
  2229. [SLAVE_PCIE_3_CFG] = &qhs_pcie3_cfg,
  2230. [SLAVE_PDM] = &qhs_pdm,
  2231. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  2232. [SLAVE_PRNG] = &qhs_prng,
  2233. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  2234. [SLAVE_QSPI_0] = &qhs_qspi_0,
  2235. [SLAVE_QSPI_1] = &qhs_qspi_1,
  2236. [SLAVE_QUP_1] = &qhs_qupv3_east0,
  2237. [SLAVE_QUP_2] = &qhs_qupv3_east1,
  2238. [SLAVE_QUP_0] = &qhs_qupv3_west,
  2239. [SLAVE_SDCC_2] = &qhs_sdc2,
  2240. [SLAVE_SDCC_4] = &qhs_sdc4,
  2241. [SLAVE_SECURITY] = &qhs_security,
  2242. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  2243. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  2244. [SLAVE_TCSR] = &qhs_tcsr,
  2245. [SLAVE_TLMM_EAST] = &qhs_tlmm_east,
  2246. [SLAVE_TLMM_SOUTH] = &qhs_tlmm_south,
  2247. [SLAVE_TLMM_WEST] = &qhs_tlmm_west,
  2248. [SLAVE_TSIF] = &qhs_tsif,
  2249. [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg,
  2250. [SLAVE_UFS_MEM_0_CFG] = &qhs_ufs_mem0_cfg,
  2251. [SLAVE_UFS_MEM_1_CFG] = &qhs_ufs_mem1_cfg,
  2252. [SLAVE_USB3_0] = &qhs_usb3_0,
  2253. [SLAVE_USB3_1] = &qhs_usb3_1,
  2254. [SLAVE_USB3_2] = &qhs_usb3_2,
  2255. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  2256. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  2257. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  2258. };
  2259. static char *config_noc_voters[] = {
  2260. "hlos",
  2261. };
  2262. static struct qcom_icc_desc sc8180x_config_noc = {
  2263. .config = &icc_regmap_config,
  2264. .nodes = config_noc_nodes,
  2265. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  2266. .bcms = config_noc_bcms,
  2267. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  2268. .voters = config_noc_voters,
  2269. .num_voters = ARRAY_SIZE(config_noc_voters),
  2270. };
  2271. static struct qcom_icc_bcm *dc_noc_bcms[] = {
  2272. };
  2273. static struct qcom_icc_node *dc_noc_nodes[] = {
  2274. [MASTER_CNOC_DC_NOC] = &qhm_cnoc_dc_noc,
  2275. [SLAVE_GEM_NOC_CFG] = &qhs_gemnoc,
  2276. [SLAVE_LLCC_CFG] = &qhs_llcc,
  2277. };
  2278. static char *dc_noc_voters[] = {
  2279. "hlos",
  2280. };
  2281. static struct qcom_icc_desc sc8180x_dc_noc = {
  2282. .config = &icc_regmap_config,
  2283. .nodes = dc_noc_nodes,
  2284. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  2285. .bcms = dc_noc_bcms,
  2286. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  2287. .voters = dc_noc_voters,
  2288. .num_voters = ARRAY_SIZE(dc_noc_voters),
  2289. };
  2290. static struct qcom_icc_bcm *gem_noc_bcms[] = {
  2291. &bcm_sh0,
  2292. &bcm_sh2,
  2293. &bcm_sh3,
  2294. &bcm_sh0_disp,
  2295. &bcm_mm1,
  2296. };
  2297. static struct qcom_icc_node *gem_noc_nodes[] = {
  2298. [MASTER_APPSS_PROC] = &acm_apps,
  2299. [MASTER_GPU_TCU] = &acm_gpu_tcu,
  2300. [MASTER_SYS_TCU] = &acm_sys_tcu,
  2301. [MASTER_GEM_NOC_CFG] = &qhm_gemnoc_cfg,
  2302. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  2303. [MASTER_GFX3D] = &qnm_gpu,
  2304. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  2305. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  2306. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_pcie,
  2307. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  2308. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  2309. [MASTER_ECC] = &qxm_ecc,
  2310. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  2311. [SLAVE_ECC] = &qns_ecc,
  2312. [SLAVE_GEM_NOC_SNOC] = &qns_gem_noc_snoc,
  2313. [SLAVE_LLCC] = &qns_llcc,
  2314. [SLAVE_SERVICE_GEM_NOC] = &srvc_gemnoc,
  2315. [SLAVE_SERVICE_GEM_NOC_1] = &srvc_gemnoc1,
  2316. [MASTER_MNOC_HF_MEM_NOC_DISP] = &qnm_mnoc_hf_disp,
  2317. [MASTER_MNOC_SF_MEM_NOC_DISP] = &qnm_mnoc_sf_disp,
  2318. [SLAVE_LLCC_DISP] = &qns_llcc_disp,
  2319. };
  2320. static char *gem_noc_voters[] = {
  2321. "hlos",
  2322. "disp",
  2323. };
  2324. static struct qcom_icc_desc sc8180x_gem_noc = {
  2325. .config = &icc_regmap_config,
  2326. .nodes = gem_noc_nodes,
  2327. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  2328. .bcms = gem_noc_bcms,
  2329. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  2330. .voters = gem_noc_voters,
  2331. .num_voters = ARRAY_SIZE(gem_noc_voters),
  2332. };
  2333. static struct qcom_icc_bcm *ipa_virt_bcms[] = {
  2334. &bcm_ip0,
  2335. };
  2336. static struct qcom_icc_node *ipa_virt_nodes[] = {
  2337. [MASTER_IPA_CORE] = &ipa_core_master,
  2338. [SLAVE_IPA_CORE] = &ipa_core_slave,
  2339. };
  2340. static char *ipa_virt_voters[] = {
  2341. "hlos",
  2342. };
  2343. static struct qcom_icc_desc sc8180x_ipa_virt = {
  2344. .config = &icc_regmap_config,
  2345. .nodes = ipa_virt_nodes,
  2346. .num_nodes = ARRAY_SIZE(ipa_virt_nodes),
  2347. .bcms = ipa_virt_bcms,
  2348. .num_bcms = ARRAY_SIZE(ipa_virt_bcms),
  2349. .voters = ipa_virt_voters,
  2350. .num_voters = ARRAY_SIZE(ipa_virt_voters),
  2351. };
  2352. static struct qcom_icc_bcm *mc_virt_bcms[] = {
  2353. &bcm_acv,
  2354. &bcm_mc0,
  2355. &bcm_acv_disp,
  2356. &bcm_mc0_disp,
  2357. };
  2358. static struct qcom_icc_node *mc_virt_nodes[] = {
  2359. [MASTER_LLCC] = &llcc_mc,
  2360. [SLAVE_EBI1] = &ebi,
  2361. [MASTER_LLCC_DISP] = &llcc_mc_disp,
  2362. [SLAVE_EBI1_DISP] = &ebi_disp,
  2363. };
  2364. static char *mc_virt_voters[] = {
  2365. "hlos",
  2366. "disp",
  2367. };
  2368. static struct qcom_icc_desc sc8180x_mc_virt = {
  2369. .config = &icc_regmap_config,
  2370. .nodes = mc_virt_nodes,
  2371. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  2372. .bcms = mc_virt_bcms,
  2373. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  2374. .voters = mc_virt_voters,
  2375. .num_voters = ARRAY_SIZE(mc_virt_voters),
  2376. };
  2377. static struct qcom_icc_bcm *mmss_noc_bcms[] = {
  2378. &bcm_mm0,
  2379. &bcm_mm1,
  2380. &bcm_mm2,
  2381. &bcm_mm0_disp,
  2382. &bcm_mm1_disp,
  2383. &bcm_mm2_disp,
  2384. };
  2385. static struct qcom_icc_node *mmss_noc_nodes[] = {
  2386. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  2387. [MASTER_CAMNOC_HF0] = &qxm_camnoc_hf0,
  2388. [MASTER_CAMNOC_HF1] = &qxm_camnoc_hf1,
  2389. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  2390. [MASTER_MDP0] = &qxm_mdp0,
  2391. [MASTER_MDP1] = &qxm_mdp1,
  2392. [MASTER_ROTATOR] = &qxm_rot,
  2393. [MASTER_VIDEO_P0] = &qxm_venus0,
  2394. [MASTER_VIDEO_P1] = &qxm_venus1,
  2395. [MASTER_VIDEO_PROC] = &qxm_venus_arm9,
  2396. [SLAVE_MNOC_SF_MEM_NOC] = &qns2_mem_noc,
  2397. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  2398. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  2399. [MASTER_MDP0_DISP] = &qxm_mdp0_disp,
  2400. [MASTER_MDP1_DISP] = &qxm_mdp1_disp,
  2401. [MASTER_ROTATOR_DISP] = &qxm_rot_disp,
  2402. [SLAVE_MNOC_SF_MEM_NOC_DISP] = &qns2_mem_noc_disp,
  2403. [SLAVE_MNOC_HF_MEM_NOC_DISP] = &qns_mem_noc_hf_disp,
  2404. };
  2405. static char *mmss_noc_voters[] = {
  2406. "hlos",
  2407. "disp",
  2408. };
  2409. static struct qcom_icc_desc sc8180x_mmss_noc = {
  2410. .config = &icc_regmap_config,
  2411. .nodes = mmss_noc_nodes,
  2412. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  2413. .bcms = mmss_noc_bcms,
  2414. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  2415. .voters = mmss_noc_voters,
  2416. .num_voters = ARRAY_SIZE(mmss_noc_voters),
  2417. };
  2418. static struct qcom_icc_bcm *system_noc_bcms[] = {
  2419. &bcm_sn0,
  2420. &bcm_sn1,
  2421. &bcm_sn2,
  2422. &bcm_sn3,
  2423. &bcm_sn4,
  2424. &bcm_sn8,
  2425. &bcm_sn9,
  2426. &bcm_sn11,
  2427. &bcm_sn15,
  2428. };
  2429. static struct qcom_icc_node *system_noc_nodes[] = {
  2430. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  2431. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  2432. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  2433. [MASTER_GEM_NOC_SNOC] = &qnm_gemnoc,
  2434. [MASTER_PIMEM] = &qxm_pimem,
  2435. [MASTER_GIC] = &xm_gic,
  2436. [SLAVE_APPSS] = &qhs_apss,
  2437. [SLAVE_SNOC_CNOC] = &qns_cnoc,
  2438. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  2439. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  2440. [SLAVE_IMEM] = &qxs_imem,
  2441. [SLAVE_PIMEM] = &qxs_pimem,
  2442. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  2443. [SLAVE_PCIE_0] = &xs_pcie_0,
  2444. [SLAVE_PCIE_1] = &xs_pcie_1,
  2445. [SLAVE_PCIE_2] = &xs_pcie_2,
  2446. [SLAVE_PCIE_3] = &xs_pcie_3,
  2447. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  2448. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  2449. };
  2450. static char *system_noc_voters[] = {
  2451. "hlos",
  2452. };
  2453. static struct qcom_icc_desc sc8180x_system_noc = {
  2454. .config = &icc_regmap_config,
  2455. .nodes = system_noc_nodes,
  2456. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  2457. .bcms = system_noc_bcms,
  2458. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  2459. .voters = system_noc_voters,
  2460. .num_voters = ARRAY_SIZE(system_noc_voters),
  2461. };
  2462. static const struct of_device_id qnoc_of_match[] = {
  2463. { .compatible = "qcom,sc8180x-aggre1-noc", .data = &sc8180x_aggre1_noc },
  2464. { .compatible = "qcom,sc8180x-aggre2-noc", .data = &sc8180x_aggre2_noc },
  2465. { .compatible = "qcom,sc8180x-camnoc-virt", .data = &sc8180x_camnoc_virt },
  2466. { .compatible = "qcom,sc8180x-compute-noc", .data = &sc8180x_compute_noc, },
  2467. { .compatible = "qcom,sc8180x-config-noc", .data = &sc8180x_config_noc },
  2468. { .compatible = "qcom,sc8180x-dc-noc", .data = &sc8180x_dc_noc },
  2469. { .compatible = "qcom,sc8180x-gem-noc", .data = &sc8180x_gem_noc },
  2470. { .compatible = "qcom,sc8180x-ipa-virt", .data = &sc8180x_ipa_virt },
  2471. { .compatible = "qcom,sc8180x-mc-virt", .data = &sc8180x_mc_virt },
  2472. { .compatible = "qcom,sc8180x-mmss-noc", .data = &sc8180x_mmss_noc },
  2473. { .compatible = "qcom,sc8180x-system-noc", .data = &sc8180x_system_noc },
  2474. { }
  2475. };
  2476. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  2477. static struct platform_driver qnoc_driver = {
  2478. .probe = qcom_icc_rpmh_probe,
  2479. .remove = qcom_icc_rpmh_remove,
  2480. .driver = {
  2481. .name = "qnoc-sc8180x",
  2482. .of_match_table = qnoc_of_match,
  2483. .sync_state = qcom_icc_rpmh_sync_state,
  2484. },
  2485. };
  2486. module_platform_driver(qnoc_driver);
  2487. MODULE_DESCRIPTION("Qualcomm Technologies, Inc. sc8180x NoC driver");
  2488. MODULE_LICENSE("GPL");