monaco_auto.c 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. */
  6. #include <asm/div64.h>
  7. #include <dt-bindings/interconnect/qcom,monaco_auto.h>
  8. #include <linux/device.h>
  9. #include <linux/interconnect.h>
  10. #include <linux/interconnect-provider.h>
  11. #include <linux/io.h>
  12. #include <linux/module.h>
  13. #include <linux/of_device.h>
  14. #include <linux/of_platform.h>
  15. #include <linux/platform_device.h>
  16. #include <linux/sort.h>
  17. #include "icc-rpmh.h"
  18. #include "qnoc-qos.h"
  19. enum {
  20. VOTER_IDX_HLOS,
  21. };
  22. static const struct regmap_config icc_regmap_config = {
  23. .reg_bits = 32,
  24. .reg_stride = 4,
  25. .val_bits = 32,
  26. };
  27. static struct qcom_icc_qosbox qxm_qup3_qos = {
  28. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  29. .num_ports = 1,
  30. .offsets = { 0x11000 },
  31. .config = &(struct qos_config) {
  32. .prio = 2,
  33. .urg_fwd = 0,
  34. .prio_fwd_disable = 1,
  35. },
  36. };
  37. static struct qcom_icc_node qxm_qup3 = {
  38. .name = "qxm_qup3",
  39. .id = MASTER_QUP_3,
  40. .channels = 1,
  41. .buswidth = 8,
  42. .noc_ops = &qcom_qnoc4_ops,
  43. .qosbox = &qxm_qup3_qos,
  44. .num_links = 1,
  45. .links = { SLAVE_A1NOC_SNOC },
  46. };
  47. static struct qcom_icc_qosbox xm_emac_0_qos = {
  48. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  49. .num_ports = 1,
  50. .offsets = { 0x12000 },
  51. .config = &(struct qos_config) {
  52. .prio = 2,
  53. .urg_fwd = 0,
  54. .prio_fwd_disable = 1,
  55. },
  56. };
  57. static struct qcom_icc_node xm_emac_0 = {
  58. .name = "xm_emac_0",
  59. .id = MASTER_EMAC,
  60. .channels = 1,
  61. .buswidth = 8,
  62. .noc_ops = &qcom_qnoc4_ops,
  63. .qosbox = &xm_emac_0_qos,
  64. .num_links = 1,
  65. .links = { SLAVE_A1NOC_SNOC },
  66. };
  67. static struct qcom_icc_qosbox xm_sdc1_qos = {
  68. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  69. .num_ports = 1,
  70. .offsets = { 0x14000 },
  71. .config = &(struct qos_config) {
  72. .prio = 2,
  73. .urg_fwd = 0,
  74. .prio_fwd_disable = 1,
  75. },
  76. };
  77. static struct qcom_icc_node xm_sdc1 = {
  78. .name = "xm_sdc1",
  79. .id = MASTER_SDC,
  80. .channels = 1,
  81. .buswidth = 8,
  82. .noc_ops = &qcom_qnoc4_ops,
  83. .qosbox = &xm_sdc1_qos,
  84. .num_links = 1,
  85. .links = { SLAVE_A1NOC_SNOC },
  86. };
  87. static struct qcom_icc_qosbox xm_ufs_mem_qos = {
  88. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  89. .num_ports = 1,
  90. .offsets = { 0x15000 },
  91. .config = &(struct qos_config) {
  92. .prio = 2,
  93. .urg_fwd = 0,
  94. .prio_fwd_disable = 1,
  95. },
  96. };
  97. static struct qcom_icc_node xm_ufs_mem = {
  98. .name = "xm_ufs_mem",
  99. .id = MASTER_UFS_MEM,
  100. .channels = 1,
  101. .buswidth = 8,
  102. .noc_ops = &qcom_qnoc4_ops,
  103. .qosbox = &xm_ufs_mem_qos,
  104. .num_links = 1,
  105. .links = { SLAVE_A1NOC_SNOC },
  106. };
  107. static struct qcom_icc_qosbox xm_usb2_2_qos = {
  108. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  109. .num_ports = 1,
  110. .offsets = { 0x16000 },
  111. .config = &(struct qos_config) {
  112. .prio = 2,
  113. .urg_fwd = 0,
  114. .prio_fwd_disable = 1,
  115. },
  116. };
  117. static struct qcom_icc_node xm_usb2_2 = {
  118. .name = "xm_usb2_2",
  119. .id = MASTER_USB2,
  120. .channels = 1,
  121. .buswidth = 8,
  122. .noc_ops = &qcom_qnoc4_ops,
  123. .qosbox = &xm_usb2_2_qos,
  124. .num_links = 1,
  125. .links = { SLAVE_A1NOC_SNOC },
  126. };
  127. static struct qcom_icc_qosbox xm_usb3_0_qos = {
  128. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  129. .num_ports = 1,
  130. .offsets = { 0x17000 },
  131. .config = &(struct qos_config) {
  132. .prio = 2,
  133. .urg_fwd = 0,
  134. .prio_fwd_disable = 1,
  135. },
  136. };
  137. static struct qcom_icc_node xm_usb3_0 = {
  138. .name = "xm_usb3_0",
  139. .id = MASTER_USB3_0,
  140. .channels = 1,
  141. .buswidth = 8,
  142. .noc_ops = &qcom_qnoc4_ops,
  143. .qosbox = &xm_usb3_0_qos,
  144. .num_links = 1,
  145. .links = { SLAVE_A1NOC_SNOC },
  146. };
  147. static struct qcom_icc_qosbox qhm_qdss_bam_qos = {
  148. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  149. .num_ports = 1,
  150. .offsets = { 0x14000 },
  151. .config = &(struct qos_config) {
  152. .prio = 2,
  153. .urg_fwd = 0,
  154. .prio_fwd_disable = 1,
  155. },
  156. };
  157. static struct qcom_icc_node qhm_qdss_bam = {
  158. .name = "qhm_qdss_bam",
  159. .id = MASTER_QDSS_BAM,
  160. .channels = 1,
  161. .buswidth = 4,
  162. .noc_ops = &qcom_qnoc4_ops,
  163. .qosbox = &qhm_qdss_bam_qos,
  164. .num_links = 1,
  165. .links = { SLAVE_A2NOC_SNOC },
  166. };
  167. static struct qcom_icc_qosbox qhm_qup0_qos = {
  168. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  169. .num_ports = 1,
  170. .offsets = { 0x17000 },
  171. .config = &(struct qos_config) {
  172. .prio = 2,
  173. .urg_fwd = 0,
  174. .prio_fwd_disable = 1,
  175. },
  176. };
  177. static struct qcom_icc_node qhm_qup0 = {
  178. .name = "qhm_qup0",
  179. .id = MASTER_QUP_0,
  180. .channels = 1,
  181. .buswidth = 4,
  182. .noc_ops = &qcom_qnoc4_ops,
  183. .qosbox = &qhm_qup0_qos,
  184. .num_links = 1,
  185. .links = { SLAVE_A2NOC_SNOC },
  186. };
  187. static struct qcom_icc_qosbox qhm_qup1_qos = {
  188. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  189. .num_ports = 1,
  190. .offsets = { 0x12000 },
  191. .config = &(struct qos_config) {
  192. .prio = 2,
  193. .urg_fwd = 0,
  194. .prio_fwd_disable = 1,
  195. },
  196. };
  197. static struct qcom_icc_node qhm_qup1 = {
  198. .name = "qhm_qup1",
  199. .id = MASTER_QUP_1,
  200. .channels = 1,
  201. .buswidth = 4,
  202. .noc_ops = &qcom_qnoc4_ops,
  203. .qosbox = &qhm_qup1_qos,
  204. .num_links = 1,
  205. .links = { SLAVE_A2NOC_SNOC },
  206. };
  207. static struct qcom_icc_qosbox qnm_cnoc_datapath_qos = {
  208. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  209. .num_ports = 1,
  210. .offsets = { 0x16000 },
  211. .config = &(struct qos_config) {
  212. .prio = 2,
  213. .urg_fwd = 0,
  214. .prio_fwd_disable = 1,
  215. },
  216. };
  217. static struct qcom_icc_node qnm_cnoc_datapath = {
  218. .name = "qnm_cnoc_datapath",
  219. .id = MASTER_CNOC_A2NOC,
  220. .channels = 1,
  221. .buswidth = 8,
  222. .noc_ops = &qcom_qnoc4_ops,
  223. .qosbox = &qnm_cnoc_datapath_qos,
  224. .num_links = 1,
  225. .links = { SLAVE_A2NOC_SNOC },
  226. };
  227. static struct qcom_icc_qosbox qxm_crypto_0_qos = {
  228. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  229. .num_ports = 1,
  230. .offsets = { 0x18000 },
  231. .config = &(struct qos_config) {
  232. .prio = 2,
  233. .urg_fwd = 0,
  234. .prio_fwd_disable = 1,
  235. },
  236. };
  237. static struct qcom_icc_node qxm_crypto_0 = {
  238. .name = "qxm_crypto_0",
  239. .id = MASTER_CRYPTO_CORE0,
  240. .channels = 1,
  241. .buswidth = 8,
  242. .noc_ops = &qcom_qnoc4_ops,
  243. .qosbox = &qxm_crypto_0_qos,
  244. .num_links = 1,
  245. .links = { SLAVE_A2NOC_SNOC },
  246. };
  247. static struct qcom_icc_qosbox qxm_crypto_1_qos = {
  248. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  249. .num_ports = 1,
  250. .offsets = { 0x1a000 },
  251. .config = &(struct qos_config) {
  252. .prio = 2,
  253. .urg_fwd = 0,
  254. .prio_fwd_disable = 1,
  255. },
  256. };
  257. static struct qcom_icc_node qxm_crypto_1 = {
  258. .name = "qxm_crypto_1",
  259. .id = MASTER_CRYPTO_CORE1,
  260. .channels = 1,
  261. .buswidth = 8,
  262. .noc_ops = &qcom_qnoc4_ops,
  263. .qosbox = &qxm_crypto_1_qos,
  264. .num_links = 1,
  265. .links = { SLAVE_A2NOC_SNOC },
  266. };
  267. static struct qcom_icc_qosbox qxm_ipa_qos = {
  268. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  269. .num_ports = 1,
  270. .offsets = { 0x11000 },
  271. .config = &(struct qos_config) {
  272. .prio = 2,
  273. .urg_fwd = 0,
  274. .prio_fwd_disable = 1,
  275. },
  276. };
  277. static struct qcom_icc_node qxm_ipa = {
  278. .name = "qxm_ipa",
  279. .id = MASTER_IPA,
  280. .channels = 1,
  281. .buswidth = 8,
  282. .noc_ops = &qcom_qnoc4_ops,
  283. .qosbox = &qxm_ipa_qos,
  284. .num_links = 1,
  285. .links = { SLAVE_A2NOC_SNOC },
  286. };
  287. static struct qcom_icc_qosbox xm_qdss_etr_0_qos = {
  288. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  289. .num_ports = 1,
  290. .offsets = { 0x13000 },
  291. .config = &(struct qos_config) {
  292. .prio = 2,
  293. .urg_fwd = 0,
  294. .prio_fwd_disable = 1,
  295. },
  296. };
  297. static struct qcom_icc_node xm_qdss_etr_0 = {
  298. .name = "xm_qdss_etr_0",
  299. .id = MASTER_QDSS_ETR_0,
  300. .channels = 1,
  301. .buswidth = 8,
  302. .noc_ops = &qcom_qnoc4_ops,
  303. .qosbox = &xm_qdss_etr_0_qos,
  304. .num_links = 1,
  305. .links = { SLAVE_A2NOC_SNOC },
  306. };
  307. static struct qcom_icc_qosbox xm_qdss_etr_1_qos = {
  308. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  309. .num_ports = 1,
  310. .offsets = { 0x19000 },
  311. .config = &(struct qos_config) {
  312. .prio = 2,
  313. .urg_fwd = 0,
  314. .prio_fwd_disable = 1,
  315. },
  316. };
  317. static struct qcom_icc_node xm_qdss_etr_1 = {
  318. .name = "xm_qdss_etr_1",
  319. .id = MASTER_QDSS_ETR_1,
  320. .channels = 1,
  321. .buswidth = 8,
  322. .noc_ops = &qcom_qnoc4_ops,
  323. .qosbox = &xm_qdss_etr_1_qos,
  324. .num_links = 1,
  325. .links = { SLAVE_A2NOC_SNOC },
  326. };
  327. static struct qcom_icc_node qup0_core_master = {
  328. .name = "qup0_core_master",
  329. .id = MASTER_QUP_CORE_0,
  330. .channels = 1,
  331. .buswidth = 4,
  332. .noc_ops = &qcom_qnoc4_ops,
  333. .num_links = 1,
  334. .links = { SLAVE_QUP_CORE_0 },
  335. };
  336. static struct qcom_icc_node qup1_core_master = {
  337. .name = "qup1_core_master",
  338. .id = MASTER_QUP_CORE_1,
  339. .channels = 1,
  340. .buswidth = 4,
  341. .noc_ops = &qcom_qnoc4_ops,
  342. .num_links = 1,
  343. .links = { SLAVE_QUP_CORE_1 },
  344. };
  345. static struct qcom_icc_node qup3_core_master = {
  346. .name = "qup3_core_master",
  347. .id = MASTER_QUP_CORE_3,
  348. .channels = 1,
  349. .buswidth = 4,
  350. .noc_ops = &qcom_qnoc4_ops,
  351. .num_links = 1,
  352. .links = { SLAVE_QUP_CORE_3 },
  353. };
  354. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  355. .name = "qnm_gemnoc_cnoc",
  356. .id = MASTER_GEM_NOC_CNOC,
  357. .channels = 1,
  358. .buswidth = 16,
  359. .noc_ops = &qcom_qnoc4_ops,
  360. .num_links = 71,
  361. .links = { SLAVE_AHB2PHY_2, SLAVE_AHB2PHY_3,
  362. SLAVE_ANOC_THROTTLE_CFG, SLAVE_AOSS,
  363. SLAVE_APPSS, SLAVE_BOOT_ROM,
  364. SLAVE_CAMERA_CFG, SLAVE_CAMERA_NRT_THROTTLE_CFG,
  365. SLAVE_CAMERA_RT_THROTTLE_CFG, SLAVE_CLK_CTL,
  366. SLAVE_CDSP_CFG, SLAVE_RBCPR_CX_CFG,
  367. SLAVE_RBCPR_MMCX_CFG, SLAVE_RBCPR_MX_CFG,
  368. SLAVE_CPR_NSPCX, SLAVE_CPR_NSPHMX,
  369. SLAVE_CRYPTO_0_CFG, SLAVE_CX_RDPM,
  370. SLAVE_DISPLAY_CFG, SLAVE_DISPLAY_RT_THROTTLE_CFG,
  371. SLAVE_EMAC_CFG, SLAVE_GP_DSP0_CFG,
  372. SLAVE_GPDSP0_THROTTLE_CFG, SLAVE_GPU_TCU_THROTTLE_CFG,
  373. SLAVE_GFX3D_CFG, SLAVE_HWKM,
  374. SLAVE_IMEM_CFG, SLAVE_IPA_CFG,
  375. SLAVE_IPC_ROUTER_CFG, SLAVE_LPASS,
  376. SLAVE_LPASS_THROTTLE_CFG, SLAVE_MX_RDPM,
  377. SLAVE_MXC_RDPM, SLAVE_PCIE_0_CFG,
  378. SLAVE_PCIE_1_CFG, SLAVE_PCIE_TCU_THROTTLE_CFG,
  379. SLAVE_PCIE_THROTTLE_CFG, SLAVE_PDM,
  380. SLAVE_PIMEM_CFG, SLAVE_PKA_WRAPPER_CFG,
  381. SLAVE_QDSS_CFG, SLAVE_QM_CFG,
  382. SLAVE_QM_MPU_CFG, SLAVE_QUP_0,
  383. SLAVE_QUP_1, SLAVE_QUP_3,
  384. SLAVE_SAIL_THROTTLE_CFG, SLAVE_SDC1,
  385. SLAVE_SECURITY, SLAVE_SNOC_THROTTLE_CFG,
  386. SLAVE_TCSR, SLAVE_TLMM,
  387. SLAVE_TSC_CFG, SLAVE_UFS_MEM_CFG,
  388. SLAVE_USB2, SLAVE_USB3_0,
  389. SLAVE_VENUS_CFG, SLAVE_VENUS_CVP_THROTTLE_CFG,
  390. SLAVE_VENUS_V_CPU_THROTTLE_CFG, SLAVE_VENUS_VCODEC_THROTTLE_CFG,
  391. SLAVE_DDRSS_CFG, SLAVE_GPDSP_NOC_CFG,
  392. SLAVE_CNOC_MNOC_HF_CFG, SLAVE_CNOC_MNOC_SF_CFG,
  393. SLAVE_PCIE_ANOC_CFG, SLAVE_SNOC_CFG,
  394. SLAVE_BOOT_IMEM, SLAVE_IMEM,
  395. SLAVE_PIMEM, SLAVE_QDSS_STM,
  396. SLAVE_TCU },
  397. };
  398. static struct qcom_icc_node qnm_gemnoc_pcie = {
  399. .name = "qnm_gemnoc_pcie",
  400. .id = MASTER_GEM_NOC_PCIE_SNOC,
  401. .channels = 1,
  402. .buswidth = 16,
  403. .noc_ops = &qcom_qnoc4_ops,
  404. .num_links = 2,
  405. .links = { SLAVE_PCIE_0, SLAVE_PCIE_1 },
  406. };
  407. static struct qcom_icc_node qnm_cnoc_dc_noc = {
  408. .name = "qnm_cnoc_dc_noc",
  409. .id = MASTER_CNOC_DC_NOC,
  410. .channels = 1,
  411. .buswidth = 4,
  412. .noc_ops = &qcom_qnoc4_ops,
  413. .num_links = 2,
  414. .links = { SLAVE_LLCC_CFG, SLAVE_GEM_NOC_CFG },
  415. };
  416. static struct qcom_icc_qosbox alm_gpu_tcu_qos = {
  417. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  418. .num_ports = 1,
  419. .offsets = { 0xaf000 },
  420. .config = &(struct qos_config) {
  421. .prio = 1,
  422. .urg_fwd = 0,
  423. .prio_fwd_disable = 1,
  424. },
  425. };
  426. static struct qcom_icc_node alm_gpu_tcu = {
  427. .name = "alm_gpu_tcu",
  428. .id = MASTER_GPU_TCU,
  429. .channels = 1,
  430. .buswidth = 8,
  431. .noc_ops = &qcom_qnoc4_ops,
  432. .qosbox = &alm_gpu_tcu_qos,
  433. .num_links = 2,
  434. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  435. };
  436. static struct qcom_icc_qosbox alm_pcie_tcu_qos = {
  437. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  438. .num_ports = 1,
  439. .offsets = { 0xb0000 },
  440. .config = &(struct qos_config) {
  441. .prio = 3,
  442. .urg_fwd = 0,
  443. .prio_fwd_disable = 1,
  444. },
  445. };
  446. static struct qcom_icc_node alm_pcie_tcu = {
  447. .name = "alm_pcie_tcu",
  448. .id = MASTER_PCIE_TCU,
  449. .channels = 1,
  450. .buswidth = 8,
  451. .noc_ops = &qcom_qnoc4_ops,
  452. .qosbox = &alm_pcie_tcu_qos,
  453. .num_links = 2,
  454. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  455. };
  456. static struct qcom_icc_qosbox alm_sys_tcu_qos = {
  457. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  458. .num_ports = 1,
  459. .offsets = { 0xb1000 },
  460. .config = &(struct qos_config) {
  461. .prio = 6,
  462. .urg_fwd = 0,
  463. .prio_fwd_disable = 1,
  464. },
  465. };
  466. static struct qcom_icc_node alm_sys_tcu = {
  467. .name = "alm_sys_tcu",
  468. .id = MASTER_SYS_TCU,
  469. .channels = 1,
  470. .buswidth = 8,
  471. .noc_ops = &qcom_qnoc4_ops,
  472. .qosbox = &alm_sys_tcu_qos,
  473. .num_links = 2,
  474. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  475. };
  476. static struct qcom_icc_node chm_apps = {
  477. .name = "chm_apps",
  478. .id = MASTER_APPSS_PROC,
  479. .channels = 4,
  480. .buswidth = 32,
  481. .noc_ops = &qcom_qnoc4_ops,
  482. .num_links = 3,
  483. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  484. SLAVE_GEM_NOC_PCIE_CNOC },
  485. };
  486. static struct qcom_icc_qosbox qnm_cmpnoc0_qos = {
  487. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  488. .num_ports = 2,
  489. .offsets = { 0xf6000, 0xf7000 },
  490. .config = &(struct qos_config) {
  491. .prio = 0,
  492. .urg_fwd = 0,
  493. .prio_fwd_disable = 1,
  494. },
  495. };
  496. static struct qcom_icc_node qnm_cmpnoc0 = {
  497. .name = "qnm_cmpnoc0",
  498. .id = MASTER_COMPUTE_NOC,
  499. .channels = 2,
  500. .buswidth = 32,
  501. .noc_ops = &qcom_qnoc4_ops,
  502. .qosbox = &qnm_cmpnoc0_qos,
  503. .num_links = 2,
  504. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  505. };
  506. static struct qcom_icc_node qnm_gemnoc_cfg = {
  507. .name = "qnm_gemnoc_cfg",
  508. .id = MASTER_GEM_NOC_CFG,
  509. .channels = 1,
  510. .buswidth = 4,
  511. .noc_ops = &qcom_qnoc4_ops,
  512. .num_links = 4,
  513. .links = { SLAVE_SERVICE_GEM_NOC_1, SLAVE_SERVICE_GEM_NOC_2,
  514. SLAVE_SERVICE_GEM_NOC, SLAVE_SERVICE_GEM_NOC2 },
  515. };
  516. static struct qcom_icc_node qnm_gpdsp_sail = {
  517. .name = "qnm_gpdsp_sail",
  518. .id = MASTER_GPDSP_SAIL,
  519. .channels = 1,
  520. .buswidth = 16,
  521. .noc_ops = &qcom_qnoc4_ops,
  522. .num_links = 2,
  523. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  524. };
  525. static struct qcom_icc_qosbox qnm_gpu_qos = {
  526. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  527. .num_ports = 2,
  528. .offsets = { 0xf0000, 0xf1000 },
  529. .config = &(struct qos_config) {
  530. .prio = 0,
  531. .urg_fwd = 0,
  532. .prio_fwd_disable = 1,
  533. },
  534. };
  535. static struct qcom_icc_node qnm_gpu = {
  536. .name = "qnm_gpu",
  537. .id = MASTER_GFX3D,
  538. .channels = 2,
  539. .buswidth = 32,
  540. .noc_ops = &qcom_qnoc4_ops,
  541. .qosbox = &qnm_gpu_qos,
  542. .num_links = 2,
  543. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  544. };
  545. static struct qcom_icc_qosbox qnm_mnoc_hf_qos = {
  546. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  547. .num_ports = 2,
  548. .offsets = { 0xf2000, 0xf3000 },
  549. .config = &(struct qos_config) {
  550. .prio = 0,
  551. .urg_fwd = 1,
  552. .prio_fwd_disable = 0,
  553. },
  554. };
  555. static struct qcom_icc_node qnm_mnoc_hf = {
  556. .name = "qnm_mnoc_hf",
  557. .id = MASTER_MNOC_HF_MEM_NOC,
  558. .channels = 2,
  559. .buswidth = 32,
  560. .noc_ops = &qcom_qnoc4_ops,
  561. .qosbox = &qnm_mnoc_hf_qos,
  562. .num_links = 2,
  563. .links = { SLAVE_LLCC, SLAVE_GEM_NOC_PCIE_CNOC },
  564. };
  565. static struct qcom_icc_qosbox qnm_mnoc_sf_qos = {
  566. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  567. .num_ports = 2,
  568. .offsets = { 0xf4000, 0xf5000 },
  569. .config = &(struct qos_config) {
  570. .prio = 0,
  571. .urg_fwd = 1,
  572. .prio_fwd_disable = 0,
  573. },
  574. };
  575. static struct qcom_icc_node qnm_mnoc_sf = {
  576. .name = "qnm_mnoc_sf",
  577. .id = MASTER_MNOC_SF_MEM_NOC,
  578. .channels = 2,
  579. .buswidth = 32,
  580. .noc_ops = &qcom_qnoc4_ops,
  581. .qosbox = &qnm_mnoc_sf_qos,
  582. .num_links = 3,
  583. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  584. SLAVE_GEM_NOC_PCIE_CNOC },
  585. };
  586. static struct qcom_icc_qosbox qnm_pcie_qos = {
  587. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  588. .num_ports = 1,
  589. .offsets = { 0xb3000 },
  590. .config = &(struct qos_config) {
  591. .prio = 2,
  592. .urg_fwd = 0,
  593. .prio_fwd_disable = 1,
  594. },
  595. };
  596. static struct qcom_icc_node qnm_pcie = {
  597. .name = "qnm_pcie",
  598. .id = MASTER_ANOC_PCIE_GEM_NOC,
  599. .channels = 1,
  600. .buswidth = 32,
  601. .noc_ops = &qcom_qnoc4_ops,
  602. .qosbox = &qnm_pcie_qos,
  603. .num_links = 2,
  604. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  605. };
  606. static struct qcom_icc_qosbox qnm_snoc_gc_qos = {
  607. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  608. .num_ports = 1,
  609. .offsets = { 0xb4000 },
  610. .config = &(struct qos_config) {
  611. .prio = 0,
  612. .urg_fwd = 1,
  613. .prio_fwd_disable = 0,
  614. },
  615. };
  616. static struct qcom_icc_node qnm_snoc_gc = {
  617. .name = "qnm_snoc_gc",
  618. .id = MASTER_SNOC_GC_MEM_NOC,
  619. .channels = 1,
  620. .buswidth = 8,
  621. .noc_ops = &qcom_qnoc4_ops,
  622. .qosbox = &qnm_snoc_gc_qos,
  623. .num_links = 1,
  624. .links = { SLAVE_LLCC },
  625. };
  626. static struct qcom_icc_qosbox qnm_snoc_sf_qos = {
  627. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  628. .num_ports = 1,
  629. .offsets = { 0xb5000 },
  630. .config = &(struct qos_config) {
  631. .prio = 0,
  632. .urg_fwd = 1,
  633. .prio_fwd_disable = 0,
  634. },
  635. };
  636. static struct qcom_icc_node qnm_snoc_sf = {
  637. .name = "qnm_snoc_sf",
  638. .id = MASTER_SNOC_SF_MEM_NOC,
  639. .channels = 1,
  640. .buswidth = 16,
  641. .noc_ops = &qcom_qnoc4_ops,
  642. .qosbox = &qnm_snoc_sf_qos,
  643. .num_links = 3,
  644. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  645. SLAVE_GEM_NOC_PCIE_CNOC },
  646. };
  647. static struct qcom_icc_node qnm_sailss_md0 = {
  648. .name = "qnm_sailss_md0",
  649. .id = MASTER_SAILSS_MD0,
  650. .channels = 1,
  651. .buswidth = 16,
  652. .noc_ops = &qcom_qnoc4_ops,
  653. .num_links = 1,
  654. .links = { SLAVE_GP_DSP_SAIL_NOC },
  655. };
  656. static struct qcom_icc_node qxm_dsp0 = {
  657. .name = "qxm_dsp0",
  658. .id = MASTER_DSP0,
  659. .channels = 1,
  660. .buswidth = 16,
  661. .noc_ops = &qcom_qnoc4_ops,
  662. .num_links = 1,
  663. .links = { SLAVE_GP_DSP_SAIL_NOC },
  664. };
  665. static struct qcom_icc_node qhm_config_noc = {
  666. .name = "qhm_config_noc",
  667. .id = MASTER_CNOC_LPASS_AG_NOC,
  668. .channels = 1,
  669. .buswidth = 4,
  670. .noc_ops = &qcom_qnoc4_ops,
  671. .num_links = 6,
  672. .links = { SLAVE_LPASS_CORE_CFG, SLAVE_LPASS_LPI_CFG,
  673. SLAVE_LPASS_MPU_CFG, SLAVE_LPASS_TOP_CFG,
  674. SLAVE_SERVICES_LPASS_AML_NOC, SLAVE_SERVICE_LPASS_AG_NOC },
  675. };
  676. static struct qcom_icc_node qxm_lpass_dsp = {
  677. .name = "qxm_lpass_dsp",
  678. .id = MASTER_LPASS_PROC,
  679. .channels = 1,
  680. .buswidth = 8,
  681. .noc_ops = &qcom_qnoc4_ops,
  682. .num_links = 4,
  683. .links = { SLAVE_LPASS_TOP_CFG, SLAVE_LPASS_SNOC,
  684. SLAVE_SERVICES_LPASS_AML_NOC, SLAVE_SERVICE_LPASS_AG_NOC },
  685. };
  686. static struct qcom_icc_node llcc_mc = {
  687. .name = "llcc_mc",
  688. .id = MASTER_LLCC,
  689. .channels = 8,
  690. .buswidth = 4,
  691. .noc_ops = &qcom_qnoc4_ops,
  692. .num_links = 1,
  693. .links = { SLAVE_EBI1 },
  694. };
  695. static struct qcom_icc_qosbox qnm_camnoc_hf_qos = {
  696. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  697. .num_ports = 1,
  698. .offsets = { 0xa000 },
  699. .config = &(struct qos_config) {
  700. .prio = 0,
  701. .urg_fwd = 1,
  702. .prio_fwd_disable = 0,
  703. },
  704. };
  705. static struct qcom_icc_node qnm_camnoc_hf = {
  706. .name = "qnm_camnoc_hf",
  707. .id = MASTER_CAMNOC_HF,
  708. .channels = 1,
  709. .buswidth = 32,
  710. .noc_ops = &qcom_qnoc4_ops,
  711. .qosbox = &qnm_camnoc_hf_qos,
  712. .num_links = 1,
  713. .links = { SLAVE_MNOC_HF_MEM_NOC },
  714. };
  715. static struct qcom_icc_qosbox qnm_camnoc_icp_qos = {
  716. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  717. .num_ports = 1,
  718. .offsets = { 0x2a000 },
  719. .config = &(struct qos_config) {
  720. .prio = 0,
  721. .urg_fwd = 1,
  722. .prio_fwd_disable = 0,
  723. },
  724. };
  725. static struct qcom_icc_node qnm_camnoc_icp = {
  726. .name = "qnm_camnoc_icp",
  727. .id = MASTER_CAMNOC_ICP,
  728. .channels = 1,
  729. .buswidth = 8,
  730. .noc_ops = &qcom_qnoc4_ops,
  731. .qosbox = &qnm_camnoc_icp_qos,
  732. .num_links = 1,
  733. .links = { SLAVE_MNOC_SF_MEM_NOC },
  734. };
  735. static struct qcom_icc_qosbox qnm_camnoc_sf_qos = {
  736. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  737. .num_ports = 1,
  738. .offsets = { 0x2a080 },
  739. .config = &(struct qos_config) {
  740. .prio = 0,
  741. .urg_fwd = 1,
  742. .prio_fwd_disable = 0,
  743. },
  744. };
  745. static struct qcom_icc_node qnm_camnoc_sf = {
  746. .name = "qnm_camnoc_sf",
  747. .id = MASTER_CAMNOC_SF,
  748. .channels = 1,
  749. .buswidth = 32,
  750. .noc_ops = &qcom_qnoc4_ops,
  751. .qosbox = &qnm_camnoc_sf_qos,
  752. .num_links = 1,
  753. .links = { SLAVE_MNOC_SF_MEM_NOC },
  754. };
  755. static struct qcom_icc_qosbox qnm_mdp0_0_qos = {
  756. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  757. .num_ports = 1,
  758. .offsets = { 0xa080 },
  759. .config = &(struct qos_config) {
  760. .prio = 0,
  761. .urg_fwd = 1,
  762. .prio_fwd_disable = 0,
  763. },
  764. };
  765. static struct qcom_icc_node qnm_mdp0_0 = {
  766. .name = "qnm_mdp0_0",
  767. .id = MASTER_MDP0,
  768. .channels = 1,
  769. .buswidth = 32,
  770. .noc_ops = &qcom_qnoc4_ops,
  771. .qosbox = &qnm_mdp0_0_qos,
  772. .num_links = 1,
  773. .links = { SLAVE_MNOC_HF_MEM_NOC },
  774. };
  775. static struct qcom_icc_qosbox qnm_mdp0_1_qos = {
  776. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  777. .num_ports = 1,
  778. .offsets = { 0xa180 },
  779. .config = &(struct qos_config) {
  780. .prio = 0,
  781. .urg_fwd = 1,
  782. .prio_fwd_disable = 0,
  783. },
  784. };
  785. static struct qcom_icc_node qnm_mdp0_1 = {
  786. .name = "qnm_mdp0_1",
  787. .id = MASTER_MDP1,
  788. .channels = 1,
  789. .buswidth = 32,
  790. .noc_ops = &qcom_qnoc4_ops,
  791. .qosbox = &qnm_mdp0_1_qos,
  792. .num_links = 1,
  793. .links = { SLAVE_MNOC_HF_MEM_NOC },
  794. };
  795. static struct qcom_icc_node qnm_mnoc_hf_cfg = {
  796. .name = "qnm_mnoc_hf_cfg",
  797. .id = MASTER_CNOC_MNOC_HF_CFG,
  798. .channels = 1,
  799. .buswidth = 4,
  800. .noc_ops = &qcom_qnoc4_ops,
  801. .num_links = 1,
  802. .links = { SLAVE_SERVICE_MNOC_HF },
  803. };
  804. static struct qcom_icc_node qnm_mnoc_sf_cfg = {
  805. .name = "qnm_mnoc_sf_cfg",
  806. .id = MASTER_CNOC_MNOC_SF_CFG,
  807. .channels = 1,
  808. .buswidth = 4,
  809. .noc_ops = &qcom_qnoc4_ops,
  810. .num_links = 1,
  811. .links = { SLAVE_SERVICE_MNOC_SF },
  812. };
  813. static struct qcom_icc_qosbox qnm_video0_qos = {
  814. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  815. .num_ports = 1,
  816. .offsets = { 0x2a100 },
  817. .config = &(struct qos_config) {
  818. .prio = 0,
  819. .urg_fwd = 1,
  820. .prio_fwd_disable = 0,
  821. },
  822. };
  823. static struct qcom_icc_node qnm_video0 = {
  824. .name = "qnm_video0",
  825. .id = MASTER_VIDEO_P0,
  826. .channels = 1,
  827. .buswidth = 32,
  828. .noc_ops = &qcom_qnoc4_ops,
  829. .qosbox = &qnm_video0_qos,
  830. .num_links = 1,
  831. .links = { SLAVE_MNOC_SF_MEM_NOC },
  832. };
  833. static struct qcom_icc_qosbox qnm_video_cvp_qos = {
  834. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  835. .num_ports = 1,
  836. .offsets = { 0x2a200 },
  837. .config = &(struct qos_config) {
  838. .prio = 0,
  839. .urg_fwd = 1,
  840. .prio_fwd_disable = 0,
  841. },
  842. };
  843. static struct qcom_icc_node qnm_video_cvp = {
  844. .name = "qnm_video_cvp",
  845. .id = MASTER_VIDEO_PROC,
  846. .channels = 1,
  847. .buswidth = 32,
  848. .noc_ops = &qcom_qnoc4_ops,
  849. .qosbox = &qnm_video_cvp_qos,
  850. .num_links = 1,
  851. .links = { SLAVE_MNOC_SF_MEM_NOC },
  852. };
  853. static struct qcom_icc_qosbox qnm_video_v_cpu_qos = {
  854. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  855. .num_ports = 1,
  856. .offsets = { 0x2a280 },
  857. .config = &(struct qos_config) {
  858. .prio = 0,
  859. .urg_fwd = 1,
  860. .prio_fwd_disable = 0,
  861. },
  862. };
  863. static struct qcom_icc_node qnm_video_v_cpu = {
  864. .name = "qnm_video_v_cpu",
  865. .id = MASTER_VIDEO_V_PROC,
  866. .channels = 1,
  867. .buswidth = 8,
  868. .noc_ops = &qcom_qnoc4_ops,
  869. .qosbox = &qnm_video_v_cpu_qos,
  870. .num_links = 1,
  871. .links = { SLAVE_MNOC_SF_MEM_NOC },
  872. };
  873. static struct qcom_icc_node qhm_nsp_noc_config = {
  874. .name = "qhm_nsp_noc_config",
  875. .id = MASTER_CDSP_NOC_CFG,
  876. .channels = 1,
  877. .buswidth = 4,
  878. .noc_ops = &qcom_qnoc4_ops,
  879. .num_links = 1,
  880. .links = { SLAVE_SERVICE_NSP_NOC },
  881. };
  882. static struct qcom_icc_node qxm_nsp = {
  883. .name = "qxm_nsp",
  884. .id = MASTER_CDSP_PROC,
  885. .channels = 2,
  886. .buswidth = 32,
  887. .noc_ops = &qcom_qnoc4_ops,
  888. .num_links = 2,
  889. .links = { SLAVE_HCP_A, SLAVE_CDSP_MEM_NOC },
  890. };
  891. static struct qcom_icc_qosbox xm_pcie3_0_qos = {
  892. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  893. .num_ports = 1,
  894. .offsets = { 0xb000 },
  895. .config = &(struct qos_config) {
  896. .prio = 2,
  897. .urg_fwd = 0,
  898. .prio_fwd_disable = 1,
  899. },
  900. };
  901. static struct qcom_icc_node xm_pcie3_0 = {
  902. .name = "xm_pcie3_0",
  903. .id = MASTER_PCIE_0,
  904. .channels = 1,
  905. .buswidth = 16,
  906. .noc_ops = &qcom_qnoc4_ops,
  907. .qosbox = &xm_pcie3_0_qos,
  908. .num_links = 1,
  909. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  910. };
  911. static struct qcom_icc_qosbox xm_pcie3_1_qos = {
  912. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  913. .num_ports = 1,
  914. .offsets = { 0xc000 },
  915. .config = &(struct qos_config) {
  916. .prio = 2,
  917. .urg_fwd = 0,
  918. .prio_fwd_disable = 1,
  919. },
  920. };
  921. static struct qcom_icc_node xm_pcie3_1 = {
  922. .name = "xm_pcie3_1",
  923. .id = MASTER_PCIE_1,
  924. .channels = 1,
  925. .buswidth = 32,
  926. .noc_ops = &qcom_qnoc4_ops,
  927. .qosbox = &xm_pcie3_1_qos,
  928. .num_links = 1,
  929. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  930. };
  931. static struct qcom_icc_qosbox qhm_gic_qos = {
  932. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  933. .num_ports = 1,
  934. .offsets = { 0x14000 },
  935. .config = &(struct qos_config) {
  936. .prio = 2,
  937. .urg_fwd = 0,
  938. .prio_fwd_disable = 1,
  939. },
  940. };
  941. static struct qcom_icc_node qhm_gic = {
  942. .name = "qhm_gic",
  943. .id = MASTER_GIC_AHB,
  944. .channels = 1,
  945. .buswidth = 4,
  946. .noc_ops = &qcom_qnoc4_ops,
  947. .qosbox = &qhm_gic_qos,
  948. .num_links = 1,
  949. .links = { SLAVE_SNOC_GEM_NOC_SF },
  950. };
  951. static struct qcom_icc_node qnm_aggre1_noc = {
  952. .name = "qnm_aggre1_noc",
  953. .id = MASTER_A1NOC_SNOC,
  954. .channels = 1,
  955. .buswidth = 32,
  956. .noc_ops = &qcom_qnoc4_ops,
  957. .num_links = 1,
  958. .links = { SLAVE_SNOC_GEM_NOC_SF },
  959. };
  960. static struct qcom_icc_node qnm_aggre2_noc = {
  961. .name = "qnm_aggre2_noc",
  962. .id = MASTER_A2NOC_SNOC,
  963. .channels = 1,
  964. .buswidth = 16,
  965. .noc_ops = &qcom_qnoc4_ops,
  966. .num_links = 1,
  967. .links = { SLAVE_SNOC_GEM_NOC_SF },
  968. };
  969. static struct qcom_icc_qosbox qnm_lpass_noc_qos = {
  970. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  971. .num_ports = 1,
  972. .offsets = { 0x12000 },
  973. .config = &(struct qos_config) {
  974. .prio = 0,
  975. .urg_fwd = 1,
  976. .prio_fwd_disable = 0,
  977. },
  978. };
  979. static struct qcom_icc_node qnm_lpass_noc = {
  980. .name = "qnm_lpass_noc",
  981. .id = MASTER_LPASS_ANOC,
  982. .channels = 1,
  983. .buswidth = 16,
  984. .noc_ops = &qcom_qnoc4_ops,
  985. .qosbox = &qnm_lpass_noc_qos,
  986. .num_links = 1,
  987. .links = { SLAVE_SNOC_GEM_NOC_SF },
  988. };
  989. static struct qcom_icc_node qnm_snoc_cfg = {
  990. .name = "qnm_snoc_cfg",
  991. .id = MASTER_SNOC_CFG,
  992. .channels = 1,
  993. .buswidth = 4,
  994. .noc_ops = &qcom_qnoc4_ops,
  995. .num_links = 1,
  996. .links = { SLAVE_SERVICE_SNOC },
  997. };
  998. static struct qcom_icc_qosbox qxm_pimem_qos = {
  999. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  1000. .num_ports = 1,
  1001. .offsets = { 0x13000 },
  1002. .config = &(struct qos_config) {
  1003. .prio = 2,
  1004. .urg_fwd = 0,
  1005. .prio_fwd_disable = 1,
  1006. },
  1007. };
  1008. static struct qcom_icc_node qxm_pimem = {
  1009. .name = "qxm_pimem",
  1010. .id = MASTER_PIMEM,
  1011. .channels = 1,
  1012. .buswidth = 8,
  1013. .noc_ops = &qcom_qnoc4_ops,
  1014. .qosbox = &qxm_pimem_qos,
  1015. .num_links = 1,
  1016. .links = { SLAVE_SNOC_GEM_NOC_GC },
  1017. };
  1018. static struct qcom_icc_qosbox xm_gic_qos = {
  1019. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  1020. .num_ports = 1,
  1021. .offsets = { 0x15000 },
  1022. .config = &(struct qos_config) {
  1023. .prio = 2,
  1024. .urg_fwd = 0,
  1025. .prio_fwd_disable = 1,
  1026. },
  1027. };
  1028. static struct qcom_icc_node xm_gic = {
  1029. .name = "xm_gic",
  1030. .id = MASTER_GIC,
  1031. .channels = 1,
  1032. .buswidth = 8,
  1033. .noc_ops = &qcom_qnoc4_ops,
  1034. .qosbox = &xm_gic_qos,
  1035. .num_links = 1,
  1036. .links = { SLAVE_SNOC_GEM_NOC_GC },
  1037. };
  1038. static struct qcom_icc_node qns_a1noc_snoc = {
  1039. .name = "qns_a1noc_snoc",
  1040. .id = SLAVE_A1NOC_SNOC,
  1041. .channels = 1,
  1042. .buswidth = 32,
  1043. .noc_ops = &qcom_qnoc4_ops,
  1044. .num_links = 1,
  1045. .links = { MASTER_A1NOC_SNOC },
  1046. };
  1047. static struct qcom_icc_node qns_a2noc_snoc = {
  1048. .name = "qns_a2noc_snoc",
  1049. .id = SLAVE_A2NOC_SNOC,
  1050. .channels = 1,
  1051. .buswidth = 16,
  1052. .noc_ops = &qcom_qnoc4_ops,
  1053. .num_links = 1,
  1054. .links = { MASTER_A2NOC_SNOC },
  1055. };
  1056. static struct qcom_icc_node qup0_core_slave = {
  1057. .name = "qup0_core_slave",
  1058. .id = SLAVE_QUP_CORE_0,
  1059. .channels = 1,
  1060. .buswidth = 4,
  1061. .noc_ops = &qcom_qnoc4_ops,
  1062. .num_links = 0,
  1063. };
  1064. static struct qcom_icc_node qup1_core_slave = {
  1065. .name = "qup1_core_slave",
  1066. .id = SLAVE_QUP_CORE_1,
  1067. .channels = 1,
  1068. .buswidth = 4,
  1069. .noc_ops = &qcom_qnoc4_ops,
  1070. .num_links = 0,
  1071. };
  1072. static struct qcom_icc_node qup3_core_slave = {
  1073. .name = "qup3_core_slave",
  1074. .id = SLAVE_QUP_CORE_3,
  1075. .channels = 1,
  1076. .buswidth = 4,
  1077. .noc_ops = &qcom_qnoc4_ops,
  1078. .num_links = 0,
  1079. };
  1080. static struct qcom_icc_node qhs_ahb2phy2 = {
  1081. .name = "qhs_ahb2phy2",
  1082. .id = SLAVE_AHB2PHY_2,
  1083. .channels = 1,
  1084. .buswidth = 4,
  1085. .noc_ops = &qcom_qnoc4_ops,
  1086. .num_links = 0,
  1087. };
  1088. static struct qcom_icc_node qhs_ahb2phy3 = {
  1089. .name = "qhs_ahb2phy3",
  1090. .id = SLAVE_AHB2PHY_3,
  1091. .channels = 1,
  1092. .buswidth = 4,
  1093. .noc_ops = &qcom_qnoc4_ops,
  1094. .num_links = 0,
  1095. };
  1096. static struct qcom_icc_node qhs_anoc_throttle_cfg = {
  1097. .name = "qhs_anoc_throttle_cfg",
  1098. .id = SLAVE_ANOC_THROTTLE_CFG,
  1099. .channels = 1,
  1100. .buswidth = 4,
  1101. .noc_ops = &qcom_qnoc4_ops,
  1102. .num_links = 0,
  1103. };
  1104. static struct qcom_icc_node qhs_aoss = {
  1105. .name = "qhs_aoss",
  1106. .id = SLAVE_AOSS,
  1107. .channels = 1,
  1108. .buswidth = 4,
  1109. .noc_ops = &qcom_qnoc4_ops,
  1110. .num_links = 0,
  1111. };
  1112. static struct qcom_icc_node qhs_apss = {
  1113. .name = "qhs_apss",
  1114. .id = SLAVE_APPSS,
  1115. .channels = 1,
  1116. .buswidth = 8,
  1117. .noc_ops = &qcom_qnoc4_ops,
  1118. .num_links = 0,
  1119. };
  1120. static struct qcom_icc_node qhs_boot_rom = {
  1121. .name = "qhs_boot_rom",
  1122. .id = SLAVE_BOOT_ROM,
  1123. .channels = 1,
  1124. .buswidth = 4,
  1125. .noc_ops = &qcom_qnoc4_ops,
  1126. .num_links = 0,
  1127. };
  1128. static struct qcom_icc_node qhs_camera_cfg = {
  1129. .name = "qhs_camera_cfg",
  1130. .id = SLAVE_CAMERA_CFG,
  1131. .channels = 1,
  1132. .buswidth = 4,
  1133. .noc_ops = &qcom_qnoc4_ops,
  1134. .num_links = 0,
  1135. };
  1136. static struct qcom_icc_node qhs_camera_nrt_throttle_cfg = {
  1137. .name = "qhs_camera_nrt_throttle_cfg",
  1138. .id = SLAVE_CAMERA_NRT_THROTTLE_CFG,
  1139. .channels = 1,
  1140. .buswidth = 4,
  1141. .noc_ops = &qcom_qnoc4_ops,
  1142. .num_links = 0,
  1143. };
  1144. static struct qcom_icc_node qhs_camera_rt_throttle_cfg = {
  1145. .name = "qhs_camera_rt_throttle_cfg",
  1146. .id = SLAVE_CAMERA_RT_THROTTLE_CFG,
  1147. .channels = 1,
  1148. .buswidth = 4,
  1149. .noc_ops = &qcom_qnoc4_ops,
  1150. .num_links = 0,
  1151. };
  1152. static struct qcom_icc_node qhs_clk_ctl = {
  1153. .name = "qhs_clk_ctl",
  1154. .id = SLAVE_CLK_CTL,
  1155. .channels = 1,
  1156. .buswidth = 4,
  1157. .noc_ops = &qcom_qnoc4_ops,
  1158. .num_links = 0,
  1159. };
  1160. static struct qcom_icc_node qhs_compute0_cfg = {
  1161. .name = "qhs_compute0_cfg",
  1162. .id = SLAVE_CDSP_CFG,
  1163. .channels = 1,
  1164. .buswidth = 4,
  1165. .noc_ops = &qcom_qnoc4_ops,
  1166. .num_links = 1,
  1167. .links = { MASTER_CDSP_NOC_CFG },
  1168. };
  1169. static struct qcom_icc_node qhs_cpr_cx = {
  1170. .name = "qhs_cpr_cx",
  1171. .id = SLAVE_RBCPR_CX_CFG,
  1172. .channels = 1,
  1173. .buswidth = 4,
  1174. .noc_ops = &qcom_qnoc4_ops,
  1175. .num_links = 0,
  1176. };
  1177. static struct qcom_icc_node qhs_cpr_mmcx = {
  1178. .name = "qhs_cpr_mmcx",
  1179. .id = SLAVE_RBCPR_MMCX_CFG,
  1180. .channels = 1,
  1181. .buswidth = 4,
  1182. .noc_ops = &qcom_qnoc4_ops,
  1183. .num_links = 0,
  1184. };
  1185. static struct qcom_icc_node qhs_cpr_mx = {
  1186. .name = "qhs_cpr_mx",
  1187. .id = SLAVE_RBCPR_MX_CFG,
  1188. .channels = 1,
  1189. .buswidth = 4,
  1190. .noc_ops = &qcom_qnoc4_ops,
  1191. .num_links = 0,
  1192. };
  1193. static struct qcom_icc_node qhs_cpr_nspcx = {
  1194. .name = "qhs_cpr_nspcx",
  1195. .id = SLAVE_CPR_NSPCX,
  1196. .channels = 1,
  1197. .buswidth = 4,
  1198. .noc_ops = &qcom_qnoc4_ops,
  1199. .num_links = 0,
  1200. };
  1201. static struct qcom_icc_node qhs_cpr_nsphmx = {
  1202. .name = "qhs_cpr_nsphmx",
  1203. .id = SLAVE_CPR_NSPHMX,
  1204. .channels = 1,
  1205. .buswidth = 4,
  1206. .noc_ops = &qcom_qnoc4_ops,
  1207. .num_links = 0,
  1208. };
  1209. static struct qcom_icc_node qhs_crypto0_cfg = {
  1210. .name = "qhs_crypto0_cfg",
  1211. .id = SLAVE_CRYPTO_0_CFG,
  1212. .channels = 1,
  1213. .buswidth = 4,
  1214. .noc_ops = &qcom_qnoc4_ops,
  1215. .num_links = 0,
  1216. };
  1217. static struct qcom_icc_node qhs_cx_rdpm = {
  1218. .name = "qhs_cx_rdpm",
  1219. .id = SLAVE_CX_RDPM,
  1220. .channels = 1,
  1221. .buswidth = 4,
  1222. .noc_ops = &qcom_qnoc4_ops,
  1223. .num_links = 0,
  1224. };
  1225. static struct qcom_icc_node qhs_display0_cfg = {
  1226. .name = "qhs_display0_cfg",
  1227. .id = SLAVE_DISPLAY_CFG,
  1228. .channels = 1,
  1229. .buswidth = 4,
  1230. .noc_ops = &qcom_qnoc4_ops,
  1231. .num_links = 0,
  1232. };
  1233. static struct qcom_icc_node qhs_display0_rt_throttle_cfg = {
  1234. .name = "qhs_display0_rt_throttle_cfg",
  1235. .id = SLAVE_DISPLAY_RT_THROTTLE_CFG,
  1236. .channels = 1,
  1237. .buswidth = 4,
  1238. .noc_ops = &qcom_qnoc4_ops,
  1239. .num_links = 0,
  1240. };
  1241. static struct qcom_icc_node qhs_emac0_cfg = {
  1242. .name = "qhs_emac0_cfg",
  1243. .id = SLAVE_EMAC_CFG,
  1244. .channels = 1,
  1245. .buswidth = 4,
  1246. .noc_ops = &qcom_qnoc4_ops,
  1247. .num_links = 0,
  1248. };
  1249. static struct qcom_icc_node qhs_gp_dsp0_cfg = {
  1250. .name = "qhs_gp_dsp0_cfg",
  1251. .id = SLAVE_GP_DSP0_CFG,
  1252. .channels = 1,
  1253. .buswidth = 4,
  1254. .noc_ops = &qcom_qnoc4_ops,
  1255. .num_links = 0,
  1256. };
  1257. static struct qcom_icc_node qhs_gpdsp0_throttle_cfg = {
  1258. .name = "qhs_gpdsp0_throttle_cfg",
  1259. .id = SLAVE_GPDSP0_THROTTLE_CFG,
  1260. .channels = 1,
  1261. .buswidth = 4,
  1262. .noc_ops = &qcom_qnoc4_ops,
  1263. .num_links = 0,
  1264. };
  1265. static struct qcom_icc_node qhs_gpu_tcu_throttle_cfg = {
  1266. .name = "qhs_gpu_tcu_throttle_cfg",
  1267. .id = SLAVE_GPU_TCU_THROTTLE_CFG,
  1268. .channels = 1,
  1269. .buswidth = 4,
  1270. .noc_ops = &qcom_qnoc4_ops,
  1271. .num_links = 0,
  1272. };
  1273. static struct qcom_icc_node qhs_gpuss_cfg = {
  1274. .name = "qhs_gpuss_cfg",
  1275. .id = SLAVE_GFX3D_CFG,
  1276. .channels = 1,
  1277. .buswidth = 8,
  1278. .noc_ops = &qcom_qnoc4_ops,
  1279. .num_links = 0,
  1280. };
  1281. static struct qcom_icc_node qhs_hwkm = {
  1282. .name = "qhs_hwkm",
  1283. .id = SLAVE_HWKM,
  1284. .channels = 1,
  1285. .buswidth = 4,
  1286. .noc_ops = &qcom_qnoc4_ops,
  1287. .num_links = 0,
  1288. };
  1289. static struct qcom_icc_node qhs_imem_cfg = {
  1290. .name = "qhs_imem_cfg",
  1291. .id = SLAVE_IMEM_CFG,
  1292. .channels = 1,
  1293. .buswidth = 4,
  1294. .noc_ops = &qcom_qnoc4_ops,
  1295. .num_links = 0,
  1296. };
  1297. static struct qcom_icc_node qhs_ipa = {
  1298. .name = "qhs_ipa",
  1299. .id = SLAVE_IPA_CFG,
  1300. .channels = 1,
  1301. .buswidth = 4,
  1302. .noc_ops = &qcom_qnoc4_ops,
  1303. .num_links = 0,
  1304. };
  1305. static struct qcom_icc_node qhs_ipc_router = {
  1306. .name = "qhs_ipc_router",
  1307. .id = SLAVE_IPC_ROUTER_CFG,
  1308. .channels = 1,
  1309. .buswidth = 4,
  1310. .noc_ops = &qcom_qnoc4_ops,
  1311. .num_links = 0,
  1312. };
  1313. static struct qcom_icc_node qhs_lpass_cfg = {
  1314. .name = "qhs_lpass_cfg",
  1315. .id = SLAVE_LPASS,
  1316. .channels = 1,
  1317. .buswidth = 4,
  1318. .noc_ops = &qcom_qnoc4_ops,
  1319. .num_links = 1,
  1320. .links = { MASTER_CNOC_LPASS_AG_NOC },
  1321. };
  1322. static struct qcom_icc_node qhs_lpass_throttle_cfg = {
  1323. .name = "qhs_lpass_throttle_cfg",
  1324. .id = SLAVE_LPASS_THROTTLE_CFG,
  1325. .channels = 1,
  1326. .buswidth = 4,
  1327. .noc_ops = &qcom_qnoc4_ops,
  1328. .num_links = 0,
  1329. };
  1330. static struct qcom_icc_node qhs_mx_rdpm = {
  1331. .name = "qhs_mx_rdpm",
  1332. .id = SLAVE_MX_RDPM,
  1333. .channels = 1,
  1334. .buswidth = 4,
  1335. .noc_ops = &qcom_qnoc4_ops,
  1336. .num_links = 0,
  1337. };
  1338. static struct qcom_icc_node qhs_mxc_rdpm = {
  1339. .name = "qhs_mxc_rdpm",
  1340. .id = SLAVE_MXC_RDPM,
  1341. .channels = 1,
  1342. .buswidth = 4,
  1343. .noc_ops = &qcom_qnoc4_ops,
  1344. .num_links = 0,
  1345. };
  1346. static struct qcom_icc_node qhs_pcie0_cfg = {
  1347. .name = "qhs_pcie0_cfg",
  1348. .id = SLAVE_PCIE_0_CFG,
  1349. .channels = 1,
  1350. .buswidth = 4,
  1351. .noc_ops = &qcom_qnoc4_ops,
  1352. .num_links = 0,
  1353. };
  1354. static struct qcom_icc_node qhs_pcie1_cfg = {
  1355. .name = "qhs_pcie1_cfg",
  1356. .id = SLAVE_PCIE_1_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_pcie_tcu_throttle_cfg = {
  1363. .name = "qhs_pcie_tcu_throttle_cfg",
  1364. .id = SLAVE_PCIE_TCU_THROTTLE_CFG,
  1365. .channels = 1,
  1366. .buswidth = 4,
  1367. .noc_ops = &qcom_qnoc4_ops,
  1368. .num_links = 0,
  1369. };
  1370. static struct qcom_icc_node qhs_pcie_throttle_cfg = {
  1371. .name = "qhs_pcie_throttle_cfg",
  1372. .id = SLAVE_PCIE_THROTTLE_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_pdm = {
  1379. .name = "qhs_pdm",
  1380. .id = SLAVE_PDM,
  1381. .channels = 1,
  1382. .buswidth = 4,
  1383. .noc_ops = &qcom_qnoc4_ops,
  1384. .num_links = 0,
  1385. };
  1386. static struct qcom_icc_node qhs_pimem_cfg = {
  1387. .name = "qhs_pimem_cfg",
  1388. .id = SLAVE_PIMEM_CFG,
  1389. .channels = 1,
  1390. .buswidth = 4,
  1391. .noc_ops = &qcom_qnoc4_ops,
  1392. .num_links = 0,
  1393. };
  1394. static struct qcom_icc_node qhs_pke_wrapper_cfg = {
  1395. .name = "qhs_pke_wrapper_cfg",
  1396. .id = SLAVE_PKA_WRAPPER_CFG,
  1397. .channels = 1,
  1398. .buswidth = 4,
  1399. .noc_ops = &qcom_qnoc4_ops,
  1400. .num_links = 0,
  1401. };
  1402. static struct qcom_icc_node qhs_qdss_cfg = {
  1403. .name = "qhs_qdss_cfg",
  1404. .id = SLAVE_QDSS_CFG,
  1405. .channels = 1,
  1406. .buswidth = 4,
  1407. .noc_ops = &qcom_qnoc4_ops,
  1408. .num_links = 0,
  1409. };
  1410. static struct qcom_icc_node qhs_qm_cfg = {
  1411. .name = "qhs_qm_cfg",
  1412. .id = SLAVE_QM_CFG,
  1413. .channels = 1,
  1414. .buswidth = 4,
  1415. .noc_ops = &qcom_qnoc4_ops,
  1416. .num_links = 0,
  1417. };
  1418. static struct qcom_icc_node qhs_qm_mpu_cfg = {
  1419. .name = "qhs_qm_mpu_cfg",
  1420. .id = SLAVE_QM_MPU_CFG,
  1421. .channels = 1,
  1422. .buswidth = 4,
  1423. .noc_ops = &qcom_qnoc4_ops,
  1424. .num_links = 0,
  1425. };
  1426. static struct qcom_icc_node qhs_qup0 = {
  1427. .name = "qhs_qup0",
  1428. .id = SLAVE_QUP_0,
  1429. .channels = 1,
  1430. .buswidth = 4,
  1431. .noc_ops = &qcom_qnoc4_ops,
  1432. .num_links = 0,
  1433. };
  1434. static struct qcom_icc_node qhs_qup1 = {
  1435. .name = "qhs_qup1",
  1436. .id = SLAVE_QUP_1,
  1437. .channels = 1,
  1438. .buswidth = 4,
  1439. .noc_ops = &qcom_qnoc4_ops,
  1440. .num_links = 0,
  1441. };
  1442. static struct qcom_icc_node qhs_qup3 = {
  1443. .name = "qhs_qup3",
  1444. .id = SLAVE_QUP_3,
  1445. .channels = 1,
  1446. .buswidth = 4,
  1447. .noc_ops = &qcom_qnoc4_ops,
  1448. .num_links = 0,
  1449. };
  1450. static struct qcom_icc_node qhs_sail_throttle_cfg = {
  1451. .name = "qhs_sail_throttle_cfg",
  1452. .id = SLAVE_SAIL_THROTTLE_CFG,
  1453. .channels = 1,
  1454. .buswidth = 4,
  1455. .noc_ops = &qcom_qnoc4_ops,
  1456. .num_links = 0,
  1457. };
  1458. static struct qcom_icc_node qhs_sdc1 = {
  1459. .name = "qhs_sdc1",
  1460. .id = SLAVE_SDC1,
  1461. .channels = 1,
  1462. .buswidth = 4,
  1463. .noc_ops = &qcom_qnoc4_ops,
  1464. .num_links = 0,
  1465. };
  1466. static struct qcom_icc_node qhs_security = {
  1467. .name = "qhs_security",
  1468. .id = SLAVE_SECURITY,
  1469. .channels = 1,
  1470. .buswidth = 4,
  1471. .noc_ops = &qcom_qnoc4_ops,
  1472. .num_links = 0,
  1473. };
  1474. static struct qcom_icc_node qhs_snoc_throttle_cfg = {
  1475. .name = "qhs_snoc_throttle_cfg",
  1476. .id = SLAVE_SNOC_THROTTLE_CFG,
  1477. .channels = 1,
  1478. .buswidth = 4,
  1479. .noc_ops = &qcom_qnoc4_ops,
  1480. .num_links = 0,
  1481. };
  1482. static struct qcom_icc_node qhs_tcsr = {
  1483. .name = "qhs_tcsr",
  1484. .id = SLAVE_TCSR,
  1485. .channels = 1,
  1486. .buswidth = 4,
  1487. .noc_ops = &qcom_qnoc4_ops,
  1488. .num_links = 0,
  1489. };
  1490. static struct qcom_icc_node qhs_tlmm = {
  1491. .name = "qhs_tlmm",
  1492. .id = SLAVE_TLMM,
  1493. .channels = 1,
  1494. .buswidth = 4,
  1495. .noc_ops = &qcom_qnoc4_ops,
  1496. .num_links = 0,
  1497. };
  1498. static struct qcom_icc_node qhs_tsc_cfg = {
  1499. .name = "qhs_tsc_cfg",
  1500. .id = SLAVE_TSC_CFG,
  1501. .channels = 1,
  1502. .buswidth = 4,
  1503. .noc_ops = &qcom_qnoc4_ops,
  1504. .num_links = 0,
  1505. };
  1506. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  1507. .name = "qhs_ufs_mem_cfg",
  1508. .id = SLAVE_UFS_MEM_CFG,
  1509. .channels = 1,
  1510. .buswidth = 4,
  1511. .noc_ops = &qcom_qnoc4_ops,
  1512. .num_links = 0,
  1513. };
  1514. static struct qcom_icc_node qhs_usb2_0 = {
  1515. .name = "qhs_usb2_0",
  1516. .id = SLAVE_USB2,
  1517. .channels = 1,
  1518. .buswidth = 4,
  1519. .noc_ops = &qcom_qnoc4_ops,
  1520. .num_links = 0,
  1521. };
  1522. static struct qcom_icc_node qhs_usb3_0 = {
  1523. .name = "qhs_usb3_0",
  1524. .id = SLAVE_USB3_0,
  1525. .channels = 1,
  1526. .buswidth = 4,
  1527. .noc_ops = &qcom_qnoc4_ops,
  1528. .num_links = 0,
  1529. };
  1530. static struct qcom_icc_node qhs_venus_cfg = {
  1531. .name = "qhs_venus_cfg",
  1532. .id = SLAVE_VENUS_CFG,
  1533. .channels = 1,
  1534. .buswidth = 4,
  1535. .noc_ops = &qcom_qnoc4_ops,
  1536. .num_links = 0,
  1537. };
  1538. static struct qcom_icc_node qhs_venus_cvp_throttle_cfg = {
  1539. .name = "qhs_venus_cvp_throttle_cfg",
  1540. .id = SLAVE_VENUS_CVP_THROTTLE_CFG,
  1541. .channels = 1,
  1542. .buswidth = 4,
  1543. .noc_ops = &qcom_qnoc4_ops,
  1544. .num_links = 0,
  1545. };
  1546. static struct qcom_icc_node qhs_venus_v_cpu_throttle_cfg = {
  1547. .name = "qhs_venus_v_cpu_throttle_cfg",
  1548. .id = SLAVE_VENUS_V_CPU_THROTTLE_CFG,
  1549. .channels = 1,
  1550. .buswidth = 4,
  1551. .noc_ops = &qcom_qnoc4_ops,
  1552. .num_links = 0,
  1553. };
  1554. static struct qcom_icc_node qhs_venus_vcodec_throttle_cfg = {
  1555. .name = "qhs_venus_vcodec_throttle_cfg",
  1556. .id = SLAVE_VENUS_VCODEC_THROTTLE_CFG,
  1557. .channels = 1,
  1558. .buswidth = 4,
  1559. .noc_ops = &qcom_qnoc4_ops,
  1560. .num_links = 0,
  1561. };
  1562. static struct qcom_icc_node qns_ddrss_cfg = {
  1563. .name = "qns_ddrss_cfg",
  1564. .id = SLAVE_DDRSS_CFG,
  1565. .channels = 1,
  1566. .buswidth = 4,
  1567. .noc_ops = &qcom_qnoc4_ops,
  1568. .num_links = 1,
  1569. .links = { MASTER_CNOC_DC_NOC },
  1570. };
  1571. static struct qcom_icc_node qns_gpdsp_noc_cfg = {
  1572. .name = "qns_gpdsp_noc_cfg",
  1573. .id = SLAVE_GPDSP_NOC_CFG,
  1574. .channels = 1,
  1575. .buswidth = 4,
  1576. .noc_ops = &qcom_qnoc4_ops,
  1577. .num_links = 0,
  1578. };
  1579. static struct qcom_icc_node qns_mnoc_hf_cfg = {
  1580. .name = "qns_mnoc_hf_cfg",
  1581. .id = SLAVE_CNOC_MNOC_HF_CFG,
  1582. .channels = 1,
  1583. .buswidth = 4,
  1584. .noc_ops = &qcom_qnoc4_ops,
  1585. .num_links = 1,
  1586. .links = { MASTER_CNOC_MNOC_HF_CFG },
  1587. };
  1588. static struct qcom_icc_node qns_mnoc_sf_cfg = {
  1589. .name = "qns_mnoc_sf_cfg",
  1590. .id = SLAVE_CNOC_MNOC_SF_CFG,
  1591. .channels = 1,
  1592. .buswidth = 4,
  1593. .noc_ops = &qcom_qnoc4_ops,
  1594. .num_links = 1,
  1595. .links = { MASTER_CNOC_MNOC_SF_CFG },
  1596. };
  1597. static struct qcom_icc_node qns_pcie_anoc_cfg = {
  1598. .name = "qns_pcie_anoc_cfg",
  1599. .id = SLAVE_PCIE_ANOC_CFG,
  1600. .channels = 1,
  1601. .buswidth = 4,
  1602. .noc_ops = &qcom_qnoc4_ops,
  1603. .num_links = 0,
  1604. };
  1605. static struct qcom_icc_node qns_snoc_cfg = {
  1606. .name = "qns_snoc_cfg",
  1607. .id = SLAVE_SNOC_CFG,
  1608. .channels = 1,
  1609. .buswidth = 4,
  1610. .noc_ops = &qcom_qnoc4_ops,
  1611. .num_links = 1,
  1612. .links = { MASTER_SNOC_CFG },
  1613. };
  1614. static struct qcom_icc_node qxs_boot_imem = {
  1615. .name = "qxs_boot_imem",
  1616. .id = SLAVE_BOOT_IMEM,
  1617. .channels = 1,
  1618. .buswidth = 16,
  1619. .noc_ops = &qcom_qnoc4_ops,
  1620. .num_links = 0,
  1621. };
  1622. static struct qcom_icc_node qxs_imem = {
  1623. .name = "qxs_imem",
  1624. .id = SLAVE_IMEM,
  1625. .channels = 1,
  1626. .buswidth = 8,
  1627. .noc_ops = &qcom_qnoc4_ops,
  1628. .num_links = 0,
  1629. };
  1630. static struct qcom_icc_node qxs_pimem = {
  1631. .name = "qxs_pimem",
  1632. .id = SLAVE_PIMEM,
  1633. .channels = 1,
  1634. .buswidth = 8,
  1635. .noc_ops = &qcom_qnoc4_ops,
  1636. .num_links = 0,
  1637. };
  1638. static struct qcom_icc_node xs_pcie_0 = {
  1639. .name = "xs_pcie_0",
  1640. .id = SLAVE_PCIE_0,
  1641. .channels = 1,
  1642. .buswidth = 16,
  1643. .noc_ops = &qcom_qnoc4_ops,
  1644. .num_links = 0,
  1645. };
  1646. static struct qcom_icc_node xs_pcie_1 = {
  1647. .name = "xs_pcie_1",
  1648. .id = SLAVE_PCIE_1,
  1649. .channels = 1,
  1650. .buswidth = 32,
  1651. .noc_ops = &qcom_qnoc4_ops,
  1652. .num_links = 0,
  1653. };
  1654. static struct qcom_icc_node xs_qdss_stm = {
  1655. .name = "xs_qdss_stm",
  1656. .id = SLAVE_QDSS_STM,
  1657. .channels = 1,
  1658. .buswidth = 4,
  1659. .noc_ops = &qcom_qnoc4_ops,
  1660. .num_links = 0,
  1661. };
  1662. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1663. .name = "xs_sys_tcu_cfg",
  1664. .id = SLAVE_TCU,
  1665. .channels = 1,
  1666. .buswidth = 8,
  1667. .noc_ops = &qcom_qnoc4_ops,
  1668. .num_links = 0,
  1669. };
  1670. static struct qcom_icc_node qhs_llcc = {
  1671. .name = "qhs_llcc",
  1672. .id = SLAVE_LLCC_CFG,
  1673. .channels = 1,
  1674. .buswidth = 4,
  1675. .noc_ops = &qcom_qnoc4_ops,
  1676. .num_links = 0,
  1677. };
  1678. static struct qcom_icc_node qns_gemnoc = {
  1679. .name = "qns_gemnoc",
  1680. .id = SLAVE_GEM_NOC_CFG,
  1681. .channels = 1,
  1682. .buswidth = 4,
  1683. .noc_ops = &qcom_qnoc4_ops,
  1684. .num_links = 1,
  1685. .links = { MASTER_GEM_NOC_CFG },
  1686. };
  1687. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1688. .name = "qns_gem_noc_cnoc",
  1689. .id = SLAVE_GEM_NOC_CNOC,
  1690. .channels = 1,
  1691. .buswidth = 16,
  1692. .noc_ops = &qcom_qnoc4_ops,
  1693. .num_links = 1,
  1694. .links = { MASTER_GEM_NOC_CNOC },
  1695. };
  1696. static struct qcom_icc_node qns_llcc = {
  1697. .name = "qns_llcc",
  1698. .id = SLAVE_LLCC,
  1699. .channels = 4,
  1700. .buswidth = 16,
  1701. .noc_ops = &qcom_qnoc4_ops,
  1702. .num_links = 1,
  1703. .links = { MASTER_LLCC },
  1704. };
  1705. static struct qcom_icc_node qns_pcie = {
  1706. .name = "qns_pcie",
  1707. .id = SLAVE_GEM_NOC_PCIE_CNOC,
  1708. .channels = 1,
  1709. .buswidth = 16,
  1710. .noc_ops = &qcom_qnoc4_ops,
  1711. .num_links = 1,
  1712. .links = { MASTER_GEM_NOC_PCIE_SNOC },
  1713. };
  1714. static struct qcom_icc_node srvc_even_gemnoc = {
  1715. .name = "srvc_even_gemnoc",
  1716. .id = SLAVE_SERVICE_GEM_NOC_1,
  1717. .channels = 1,
  1718. .buswidth = 4,
  1719. .noc_ops = &qcom_qnoc4_ops,
  1720. .num_links = 0,
  1721. };
  1722. static struct qcom_icc_node srvc_odd_gemnoc = {
  1723. .name = "srvc_odd_gemnoc",
  1724. .id = SLAVE_SERVICE_GEM_NOC_2,
  1725. .channels = 1,
  1726. .buswidth = 4,
  1727. .noc_ops = &qcom_qnoc4_ops,
  1728. .num_links = 0,
  1729. };
  1730. static struct qcom_icc_node srvc_sys_gemnoc = {
  1731. .name = "srvc_sys_gemnoc",
  1732. .id = SLAVE_SERVICE_GEM_NOC,
  1733. .channels = 1,
  1734. .buswidth = 4,
  1735. .noc_ops = &qcom_qnoc4_ops,
  1736. .num_links = 0,
  1737. };
  1738. static struct qcom_icc_node srvc_sys_gemnoc_2 = {
  1739. .name = "srvc_sys_gemnoc_2",
  1740. .id = SLAVE_SERVICE_GEM_NOC2,
  1741. .channels = 1,
  1742. .buswidth = 4,
  1743. .noc_ops = &qcom_qnoc4_ops,
  1744. .num_links = 0,
  1745. };
  1746. static struct qcom_icc_node qns_gp_dsp_sail_noc = {
  1747. .name = "qns_gp_dsp_sail_noc",
  1748. .id = SLAVE_GP_DSP_SAIL_NOC,
  1749. .channels = 1,
  1750. .buswidth = 16,
  1751. .noc_ops = &qcom_qnoc4_ops,
  1752. .num_links = 1,
  1753. .links = { MASTER_GPDSP_SAIL },
  1754. };
  1755. static struct qcom_icc_node qhs_lpass_core = {
  1756. .name = "qhs_lpass_core",
  1757. .id = SLAVE_LPASS_CORE_CFG,
  1758. .channels = 1,
  1759. .buswidth = 4,
  1760. .noc_ops = &qcom_qnoc4_ops,
  1761. .num_links = 0,
  1762. };
  1763. static struct qcom_icc_node qhs_lpass_lpi = {
  1764. .name = "qhs_lpass_lpi",
  1765. .id = SLAVE_LPASS_LPI_CFG,
  1766. .channels = 1,
  1767. .buswidth = 4,
  1768. .noc_ops = &qcom_qnoc4_ops,
  1769. .num_links = 0,
  1770. };
  1771. static struct qcom_icc_node qhs_lpass_mpu = {
  1772. .name = "qhs_lpass_mpu",
  1773. .id = SLAVE_LPASS_MPU_CFG,
  1774. .channels = 1,
  1775. .buswidth = 4,
  1776. .noc_ops = &qcom_qnoc4_ops,
  1777. .num_links = 0,
  1778. };
  1779. static struct qcom_icc_node qhs_lpass_top = {
  1780. .name = "qhs_lpass_top",
  1781. .id = SLAVE_LPASS_TOP_CFG,
  1782. .channels = 1,
  1783. .buswidth = 4,
  1784. .noc_ops = &qcom_qnoc4_ops,
  1785. .num_links = 0,
  1786. };
  1787. static struct qcom_icc_node qns_sysnoc = {
  1788. .name = "qns_sysnoc",
  1789. .id = SLAVE_LPASS_SNOC,
  1790. .channels = 1,
  1791. .buswidth = 16,
  1792. .noc_ops = &qcom_qnoc4_ops,
  1793. .num_links = 1,
  1794. .links = { MASTER_LPASS_ANOC },
  1795. };
  1796. static struct qcom_icc_node srvc_niu_aml_noc = {
  1797. .name = "srvc_niu_aml_noc",
  1798. .id = SLAVE_SERVICES_LPASS_AML_NOC,
  1799. .channels = 1,
  1800. .buswidth = 4,
  1801. .noc_ops = &qcom_qnoc4_ops,
  1802. .num_links = 0,
  1803. };
  1804. static struct qcom_icc_node srvc_niu_lpass_agnoc = {
  1805. .name = "srvc_niu_lpass_agnoc",
  1806. .id = SLAVE_SERVICE_LPASS_AG_NOC,
  1807. .channels = 1,
  1808. .buswidth = 4,
  1809. .noc_ops = &qcom_qnoc4_ops,
  1810. .num_links = 0,
  1811. };
  1812. static struct qcom_icc_node ebi = {
  1813. .name = "ebi",
  1814. .id = SLAVE_EBI1,
  1815. .channels = 8,
  1816. .buswidth = 4,
  1817. .noc_ops = &qcom_qnoc4_ops,
  1818. .num_links = 0,
  1819. };
  1820. static struct qcom_icc_node qns_mem_noc_hf = {
  1821. .name = "qns_mem_noc_hf",
  1822. .id = SLAVE_MNOC_HF_MEM_NOC,
  1823. .channels = 2,
  1824. .buswidth = 32,
  1825. .noc_ops = &qcom_qnoc4_ops,
  1826. .num_links = 1,
  1827. .links = { MASTER_MNOC_HF_MEM_NOC },
  1828. };
  1829. static struct qcom_icc_node qns_mem_noc_sf = {
  1830. .name = "qns_mem_noc_sf",
  1831. .id = SLAVE_MNOC_SF_MEM_NOC,
  1832. .channels = 2,
  1833. .buswidth = 32,
  1834. .noc_ops = &qcom_qnoc4_ops,
  1835. .num_links = 1,
  1836. .links = { MASTER_MNOC_SF_MEM_NOC },
  1837. };
  1838. static struct qcom_icc_node srvc_mnoc_hf = {
  1839. .name = "srvc_mnoc_hf",
  1840. .id = SLAVE_SERVICE_MNOC_HF,
  1841. .channels = 1,
  1842. .buswidth = 4,
  1843. .noc_ops = &qcom_qnoc4_ops,
  1844. .num_links = 0,
  1845. };
  1846. static struct qcom_icc_node srvc_mnoc_sf = {
  1847. .name = "srvc_mnoc_sf",
  1848. .id = SLAVE_SERVICE_MNOC_SF,
  1849. .channels = 1,
  1850. .buswidth = 4,
  1851. .noc_ops = &qcom_qnoc4_ops,
  1852. .num_links = 0,
  1853. };
  1854. static struct qcom_icc_node qns_hcp = {
  1855. .name = "qns_hcp",
  1856. .id = SLAVE_HCP_A,
  1857. .channels = 2,
  1858. .buswidth = 32,
  1859. .noc_ops = &qcom_qnoc4_ops,
  1860. .num_links = 0,
  1861. };
  1862. static struct qcom_icc_node qns_nsp_gemnoc = {
  1863. .name = "qns_nsp_gemnoc",
  1864. .id = SLAVE_CDSP_MEM_NOC,
  1865. .channels = 2,
  1866. .buswidth = 32,
  1867. .noc_ops = &qcom_qnoc4_ops,
  1868. .num_links = 1,
  1869. .links = { MASTER_COMPUTE_NOC },
  1870. };
  1871. static struct qcom_icc_node service_nsp_noc = {
  1872. .name = "service_nsp_noc",
  1873. .id = SLAVE_SERVICE_NSP_NOC,
  1874. .channels = 1,
  1875. .buswidth = 4,
  1876. .noc_ops = &qcom_qnoc4_ops,
  1877. .num_links = 0,
  1878. };
  1879. static struct qcom_icc_node qns_pcie_mem_noc = {
  1880. .name = "qns_pcie_mem_noc",
  1881. .id = SLAVE_ANOC_PCIE_GEM_NOC,
  1882. .channels = 1,
  1883. .buswidth = 32,
  1884. .noc_ops = &qcom_qnoc4_ops,
  1885. .num_links = 1,
  1886. .links = { MASTER_ANOC_PCIE_GEM_NOC },
  1887. };
  1888. static struct qcom_icc_node qns_gemnoc_gc = {
  1889. .name = "qns_gemnoc_gc",
  1890. .id = SLAVE_SNOC_GEM_NOC_GC,
  1891. .channels = 1,
  1892. .buswidth = 8,
  1893. .noc_ops = &qcom_qnoc4_ops,
  1894. .num_links = 1,
  1895. .links = { MASTER_SNOC_GC_MEM_NOC },
  1896. };
  1897. static struct qcom_icc_node qns_gemnoc_sf = {
  1898. .name = "qns_gemnoc_sf",
  1899. .id = SLAVE_SNOC_GEM_NOC_SF,
  1900. .channels = 1,
  1901. .buswidth = 16,
  1902. .noc_ops = &qcom_qnoc4_ops,
  1903. .num_links = 1,
  1904. .links = { MASTER_SNOC_SF_MEM_NOC },
  1905. };
  1906. static struct qcom_icc_node srvc_snoc = {
  1907. .name = "srvc_snoc",
  1908. .id = SLAVE_SERVICE_SNOC,
  1909. .channels = 1,
  1910. .buswidth = 4,
  1911. .noc_ops = &qcom_qnoc4_ops,
  1912. .num_links = 0,
  1913. };
  1914. static struct qcom_icc_bcm bcm_acv = {
  1915. .name = "ACV",
  1916. .voter_idx = VOTER_IDX_HLOS,
  1917. .enable_mask = 0x8,
  1918. .num_nodes = 1,
  1919. .nodes = { &ebi },
  1920. };
  1921. static struct qcom_icc_bcm bcm_ce0 = {
  1922. .name = "CE0",
  1923. .voter_idx = VOTER_IDX_HLOS,
  1924. .num_nodes = 2,
  1925. .nodes = { &qxm_crypto_0, &qxm_crypto_1 },
  1926. };
  1927. static struct qcom_icc_bcm bcm_cn0 = {
  1928. .name = "CN0",
  1929. .voter_idx = VOTER_IDX_HLOS,
  1930. .keepalive = true,
  1931. .num_nodes = 2,
  1932. .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie },
  1933. };
  1934. static struct qcom_icc_bcm bcm_cn1 = {
  1935. .name = "CN1",
  1936. .voter_idx = VOTER_IDX_HLOS,
  1937. .num_nodes = 66,
  1938. .nodes = { &qhs_ahb2phy2, &qhs_ahb2phy3,
  1939. &qhs_anoc_throttle_cfg, &qhs_aoss,
  1940. &qhs_apss, &qhs_boot_rom,
  1941. &qhs_camera_cfg, &qhs_camera_nrt_throttle_cfg,
  1942. &qhs_camera_rt_throttle_cfg, &qhs_clk_ctl,
  1943. &qhs_compute0_cfg, &qhs_cpr_cx,
  1944. &qhs_cpr_mmcx, &qhs_cpr_mx,
  1945. &qhs_cpr_nspcx, &qhs_cpr_nsphmx,
  1946. &qhs_crypto0_cfg, &qhs_cx_rdpm,
  1947. &qhs_display0_cfg, &qhs_display0_rt_throttle_cfg,
  1948. &qhs_emac0_cfg, &qhs_gp_dsp0_cfg,
  1949. &qhs_gpdsp0_throttle_cfg, &qhs_gpu_tcu_throttle_cfg,
  1950. &qhs_gpuss_cfg, &qhs_hwkm,
  1951. &qhs_imem_cfg, &qhs_ipa,
  1952. &qhs_ipc_router, &qhs_lpass_cfg,
  1953. &qhs_lpass_throttle_cfg, &qhs_mx_rdpm,
  1954. &qhs_mxc_rdpm, &qhs_pcie0_cfg,
  1955. &qhs_pcie1_cfg, &qhs_pcie_tcu_throttle_cfg,
  1956. &qhs_pcie_throttle_cfg, &qhs_pdm,
  1957. &qhs_pimem_cfg, &qhs_pke_wrapper_cfg,
  1958. &qhs_qdss_cfg, &qhs_qm_cfg,
  1959. &qhs_qm_mpu_cfg, &qhs_sail_throttle_cfg,
  1960. &qhs_sdc1, &qhs_security,
  1961. &qhs_snoc_throttle_cfg, &qhs_tcsr,
  1962. &qhs_tlmm, &qhs_tsc_cfg,
  1963. &qhs_ufs_mem_cfg, &qhs_usb2_0,
  1964. &qhs_usb3_0, &qhs_venus_cfg,
  1965. &qhs_venus_cvp_throttle_cfg, &qhs_venus_v_cpu_throttle_cfg,
  1966. &qhs_venus_vcodec_throttle_cfg, &qns_ddrss_cfg,
  1967. &qns_gpdsp_noc_cfg, &qns_mnoc_hf_cfg,
  1968. &qns_mnoc_sf_cfg, &qns_pcie_anoc_cfg,
  1969. &qns_snoc_cfg, &qxs_boot_imem,
  1970. &qxs_imem, &xs_sys_tcu_cfg },
  1971. };
  1972. static struct qcom_icc_bcm bcm_cn2 = {
  1973. .name = "CN2",
  1974. .voter_idx = VOTER_IDX_HLOS,
  1975. .num_nodes = 3,
  1976. .nodes = { &qhs_qup0, &qhs_qup1,
  1977. &qhs_qup3 },
  1978. };
  1979. static struct qcom_icc_bcm bcm_cn3 = {
  1980. .name = "CN3",
  1981. .voter_idx = VOTER_IDX_HLOS,
  1982. .num_nodes = 2,
  1983. .nodes = { &xs_pcie_0, &xs_pcie_1 },
  1984. };
  1985. static struct qcom_icc_bcm bcm_gna0 = {
  1986. .name = "GNA0",
  1987. .voter_idx = VOTER_IDX_HLOS,
  1988. .num_nodes = 1,
  1989. .nodes = { &qxm_dsp0 },
  1990. };
  1991. static struct qcom_icc_bcm bcm_mc0 = {
  1992. .name = "MC0",
  1993. .voter_idx = VOTER_IDX_HLOS,
  1994. .keepalive = true,
  1995. .num_nodes = 1,
  1996. .nodes = { &ebi },
  1997. };
  1998. static struct qcom_icc_bcm bcm_mm0 = {
  1999. .name = "MM0",
  2000. .voter_idx = VOTER_IDX_HLOS,
  2001. .keepalive = true,
  2002. .num_nodes = 4,
  2003. .nodes = { &qnm_camnoc_hf, &qnm_mdp0_0,
  2004. &qnm_mdp0_1, &qns_mem_noc_hf },
  2005. };
  2006. static struct qcom_icc_bcm bcm_mm1 = {
  2007. .name = "MM1",
  2008. .voter_idx = VOTER_IDX_HLOS,
  2009. .num_nodes = 6,
  2010. .nodes = { &qnm_camnoc_icp, &qnm_camnoc_sf,
  2011. &qnm_video0, &qnm_video_cvp,
  2012. &qnm_video_v_cpu, &qns_mem_noc_sf },
  2013. };
  2014. static struct qcom_icc_bcm bcm_nsa0 = {
  2015. .name = "NSA0",
  2016. .voter_idx = VOTER_IDX_HLOS,
  2017. .num_nodes = 2,
  2018. .nodes = { &qns_hcp, &qns_nsp_gemnoc },
  2019. };
  2020. static struct qcom_icc_bcm bcm_nsa1 = {
  2021. .name = "NSA1",
  2022. .voter_idx = VOTER_IDX_HLOS,
  2023. .num_nodes = 1,
  2024. .nodes = { &qxm_nsp },
  2025. };
  2026. static struct qcom_icc_bcm bcm_pci0 = {
  2027. .name = "PCI0",
  2028. .voter_idx = VOTER_IDX_HLOS,
  2029. .num_nodes = 1,
  2030. .nodes = { &qns_pcie_mem_noc },
  2031. };
  2032. static struct qcom_icc_bcm bcm_qup0 = {
  2033. .name = "QUP0",
  2034. .voter_idx = VOTER_IDX_HLOS,
  2035. .vote_scale = 1,
  2036. .keepalive = true,
  2037. .num_nodes = 1,
  2038. .nodes = { &qup0_core_slave },
  2039. };
  2040. static struct qcom_icc_bcm bcm_qup1 = {
  2041. .name = "QUP1",
  2042. .voter_idx = VOTER_IDX_HLOS,
  2043. .vote_scale = 1,
  2044. .keepalive = true,
  2045. .num_nodes = 1,
  2046. .nodes = { &qup1_core_slave },
  2047. };
  2048. static struct qcom_icc_bcm bcm_qup2 = {
  2049. .name = "QUP2",
  2050. .voter_idx = VOTER_IDX_HLOS,
  2051. .vote_scale = 1,
  2052. .keepalive = true,
  2053. .num_nodes = 1,
  2054. .nodes = { &qup3_core_slave },
  2055. };
  2056. static struct qcom_icc_bcm bcm_sh0 = {
  2057. .name = "SH0",
  2058. .voter_idx = VOTER_IDX_HLOS,
  2059. .keepalive = true,
  2060. .num_nodes = 1,
  2061. .nodes = { &qns_llcc },
  2062. };
  2063. static struct qcom_icc_bcm bcm_sh2 = {
  2064. .name = "SH2",
  2065. .voter_idx = VOTER_IDX_HLOS,
  2066. .num_nodes = 1,
  2067. .nodes = { &chm_apps },
  2068. };
  2069. static struct qcom_icc_bcm bcm_sn0 = {
  2070. .name = "SN0",
  2071. .voter_idx = VOTER_IDX_HLOS,
  2072. .keepalive = true,
  2073. .num_nodes = 1,
  2074. .nodes = { &qns_gemnoc_sf },
  2075. };
  2076. static struct qcom_icc_bcm bcm_sn1 = {
  2077. .name = "SN1",
  2078. .voter_idx = VOTER_IDX_HLOS,
  2079. .num_nodes = 1,
  2080. .nodes = { &qns_gemnoc_gc },
  2081. };
  2082. static struct qcom_icc_bcm bcm_sn2 = {
  2083. .name = "SN2",
  2084. .voter_idx = VOTER_IDX_HLOS,
  2085. .num_nodes = 1,
  2086. .nodes = { &qxs_pimem },
  2087. };
  2088. static struct qcom_icc_bcm bcm_sn3 = {
  2089. .name = "SN3",
  2090. .voter_idx = VOTER_IDX_HLOS,
  2091. .num_nodes = 2,
  2092. .nodes = { &qns_a1noc_snoc, &qnm_aggre1_noc },
  2093. };
  2094. static struct qcom_icc_bcm bcm_sn4 = {
  2095. .name = "SN4",
  2096. .voter_idx = VOTER_IDX_HLOS,
  2097. .num_nodes = 2,
  2098. .nodes = { &qns_a2noc_snoc, &qnm_aggre2_noc },
  2099. };
  2100. static struct qcom_icc_bcm bcm_sn9 = {
  2101. .name = "SN9",
  2102. .voter_idx = VOTER_IDX_HLOS,
  2103. .num_nodes = 2,
  2104. .nodes = { &qns_sysnoc, &qnm_lpass_noc },
  2105. };
  2106. static struct qcom_icc_bcm bcm_sn10 = {
  2107. .name = "SN10",
  2108. .voter_idx = VOTER_IDX_HLOS,
  2109. .num_nodes = 1,
  2110. .nodes = { &xs_qdss_stm },
  2111. };
  2112. static struct qcom_icc_bcm *aggre1_noc_bcms[] = {
  2113. &bcm_sn3,
  2114. };
  2115. static struct qcom_icc_node *aggre1_noc_nodes[] = {
  2116. [MASTER_QUP_3] = &qxm_qup3,
  2117. [MASTER_EMAC] = &xm_emac_0,
  2118. [MASTER_SDC] = &xm_sdc1,
  2119. [MASTER_UFS_MEM] = &xm_ufs_mem,
  2120. [MASTER_USB2] = &xm_usb2_2,
  2121. [MASTER_USB3_0] = &xm_usb3_0,
  2122. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  2123. };
  2124. static char *aggre1_noc_voters[] = {
  2125. [VOTER_IDX_HLOS] = "hlos",
  2126. };
  2127. static struct qcom_icc_desc monaco_auto_aggre1_noc = {
  2128. .config = &icc_regmap_config,
  2129. .nodes = aggre1_noc_nodes,
  2130. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  2131. .bcms = aggre1_noc_bcms,
  2132. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  2133. .voters = aggre1_noc_voters,
  2134. .num_voters = ARRAY_SIZE(aggre1_noc_voters),
  2135. };
  2136. static struct qcom_icc_bcm *aggre2_noc_bcms[] = {
  2137. &bcm_ce0,
  2138. &bcm_sn4,
  2139. };
  2140. static struct qcom_icc_node *aggre2_noc_nodes[] = {
  2141. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  2142. [MASTER_QUP_0] = &qhm_qup0,
  2143. [MASTER_QUP_1] = &qhm_qup1,
  2144. [MASTER_CNOC_A2NOC] = &qnm_cnoc_datapath,
  2145. [MASTER_CRYPTO_CORE0] = &qxm_crypto_0,
  2146. [MASTER_CRYPTO_CORE1] = &qxm_crypto_1,
  2147. [MASTER_IPA] = &qxm_ipa,
  2148. [MASTER_QDSS_ETR_0] = &xm_qdss_etr_0,
  2149. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  2150. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  2151. };
  2152. static char *aggre2_noc_voters[] = {
  2153. [VOTER_IDX_HLOS] = "hlos",
  2154. };
  2155. static struct qcom_icc_desc monaco_auto_aggre2_noc = {
  2156. .config = &icc_regmap_config,
  2157. .nodes = aggre2_noc_nodes,
  2158. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  2159. .bcms = aggre2_noc_bcms,
  2160. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  2161. .voters = aggre2_noc_voters,
  2162. .num_voters = ARRAY_SIZE(aggre2_noc_voters),
  2163. };
  2164. static struct qcom_icc_bcm *clk_virt_bcms[] = {
  2165. &bcm_qup0,
  2166. &bcm_qup1,
  2167. &bcm_qup2,
  2168. };
  2169. static struct qcom_icc_node *clk_virt_nodes[] = {
  2170. [MASTER_QUP_CORE_0] = &qup0_core_master,
  2171. [MASTER_QUP_CORE_1] = &qup1_core_master,
  2172. [MASTER_QUP_CORE_3] = &qup3_core_master,
  2173. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  2174. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  2175. [SLAVE_QUP_CORE_3] = &qup3_core_slave,
  2176. };
  2177. static char *clk_virt_voters[] = {
  2178. [VOTER_IDX_HLOS] = "hlos",
  2179. };
  2180. static struct qcom_icc_desc monaco_auto_clk_virt = {
  2181. .config = &icc_regmap_config,
  2182. .nodes = clk_virt_nodes,
  2183. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  2184. .bcms = clk_virt_bcms,
  2185. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  2186. .voters = clk_virt_voters,
  2187. .num_voters = ARRAY_SIZE(clk_virt_voters),
  2188. };
  2189. static struct qcom_icc_bcm *config_noc_bcms[] = {
  2190. &bcm_cn0,
  2191. &bcm_cn1,
  2192. &bcm_cn2,
  2193. &bcm_cn3,
  2194. &bcm_sn2,
  2195. &bcm_sn10,
  2196. };
  2197. static struct qcom_icc_node *config_noc_nodes[] = {
  2198. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  2199. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  2200. [SLAVE_AHB2PHY_2] = &qhs_ahb2phy2,
  2201. [SLAVE_AHB2PHY_3] = &qhs_ahb2phy3,
  2202. [SLAVE_ANOC_THROTTLE_CFG] = &qhs_anoc_throttle_cfg,
  2203. [SLAVE_AOSS] = &qhs_aoss,
  2204. [SLAVE_APPSS] = &qhs_apss,
  2205. [SLAVE_BOOT_ROM] = &qhs_boot_rom,
  2206. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  2207. [SLAVE_CAMERA_NRT_THROTTLE_CFG] = &qhs_camera_nrt_throttle_cfg,
  2208. [SLAVE_CAMERA_RT_THROTTLE_CFG] = &qhs_camera_rt_throttle_cfg,
  2209. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  2210. [SLAVE_CDSP_CFG] = &qhs_compute0_cfg,
  2211. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  2212. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  2213. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  2214. [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
  2215. [SLAVE_CPR_NSPHMX] = &qhs_cpr_nsphmx,
  2216. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  2217. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  2218. [SLAVE_DISPLAY_CFG] = &qhs_display0_cfg,
  2219. [SLAVE_DISPLAY_RT_THROTTLE_CFG] = &qhs_display0_rt_throttle_cfg,
  2220. [SLAVE_EMAC_CFG] = &qhs_emac0_cfg,
  2221. [SLAVE_GP_DSP0_CFG] = &qhs_gp_dsp0_cfg,
  2222. [SLAVE_GPDSP0_THROTTLE_CFG] = &qhs_gpdsp0_throttle_cfg,
  2223. [SLAVE_GPU_TCU_THROTTLE_CFG] = &qhs_gpu_tcu_throttle_cfg,
  2224. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  2225. [SLAVE_HWKM] = &qhs_hwkm,
  2226. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  2227. [SLAVE_IPA_CFG] = &qhs_ipa,
  2228. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  2229. [SLAVE_LPASS] = &qhs_lpass_cfg,
  2230. [SLAVE_LPASS_THROTTLE_CFG] = &qhs_lpass_throttle_cfg,
  2231. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  2232. [SLAVE_MXC_RDPM] = &qhs_mxc_rdpm,
  2233. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  2234. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  2235. [SLAVE_PCIE_TCU_THROTTLE_CFG] = &qhs_pcie_tcu_throttle_cfg,
  2236. [SLAVE_PCIE_THROTTLE_CFG] = &qhs_pcie_throttle_cfg,
  2237. [SLAVE_PDM] = &qhs_pdm,
  2238. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  2239. [SLAVE_PKA_WRAPPER_CFG] = &qhs_pke_wrapper_cfg,
  2240. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  2241. [SLAVE_QM_CFG] = &qhs_qm_cfg,
  2242. [SLAVE_QM_MPU_CFG] = &qhs_qm_mpu_cfg,
  2243. [SLAVE_QUP_0] = &qhs_qup0,
  2244. [SLAVE_QUP_1] = &qhs_qup1,
  2245. [SLAVE_QUP_3] = &qhs_qup3,
  2246. [SLAVE_SAIL_THROTTLE_CFG] = &qhs_sail_throttle_cfg,
  2247. [SLAVE_SDC1] = &qhs_sdc1,
  2248. [SLAVE_SECURITY] = &qhs_security,
  2249. [SLAVE_SNOC_THROTTLE_CFG] = &qhs_snoc_throttle_cfg,
  2250. [SLAVE_TCSR] = &qhs_tcsr,
  2251. [SLAVE_TLMM] = &qhs_tlmm,
  2252. [SLAVE_TSC_CFG] = &qhs_tsc_cfg,
  2253. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  2254. [SLAVE_USB2] = &qhs_usb2_0,
  2255. [SLAVE_USB3_0] = &qhs_usb3_0,
  2256. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  2257. [SLAVE_VENUS_CVP_THROTTLE_CFG] = &qhs_venus_cvp_throttle_cfg,
  2258. [SLAVE_VENUS_V_CPU_THROTTLE_CFG] = &qhs_venus_v_cpu_throttle_cfg,
  2259. [SLAVE_VENUS_VCODEC_THROTTLE_CFG] = &qhs_venus_vcodec_throttle_cfg,
  2260. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  2261. [SLAVE_GPDSP_NOC_CFG] = &qns_gpdsp_noc_cfg,
  2262. [SLAVE_CNOC_MNOC_HF_CFG] = &qns_mnoc_hf_cfg,
  2263. [SLAVE_CNOC_MNOC_SF_CFG] = &qns_mnoc_sf_cfg,
  2264. [SLAVE_PCIE_ANOC_CFG] = &qns_pcie_anoc_cfg,
  2265. [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
  2266. [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
  2267. [SLAVE_IMEM] = &qxs_imem,
  2268. [SLAVE_PIMEM] = &qxs_pimem,
  2269. [SLAVE_PCIE_0] = &xs_pcie_0,
  2270. [SLAVE_PCIE_1] = &xs_pcie_1,
  2271. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  2272. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  2273. };
  2274. static char *config_noc_voters[] = {
  2275. [VOTER_IDX_HLOS] = "hlos",
  2276. };
  2277. static struct qcom_icc_desc monaco_auto_config_noc = {
  2278. .config = &icc_regmap_config,
  2279. .nodes = config_noc_nodes,
  2280. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  2281. .bcms = config_noc_bcms,
  2282. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  2283. .voters = config_noc_voters,
  2284. .num_voters = ARRAY_SIZE(config_noc_voters),
  2285. };
  2286. static struct qcom_icc_bcm *dc_noc_bcms[] = {
  2287. };
  2288. static struct qcom_icc_node *dc_noc_nodes[] = {
  2289. [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
  2290. [SLAVE_LLCC_CFG] = &qhs_llcc,
  2291. [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
  2292. };
  2293. static char *dc_noc_voters[] = {
  2294. [VOTER_IDX_HLOS] = "hlos",
  2295. };
  2296. static struct qcom_icc_desc monaco_auto_dc_noc = {
  2297. .config = &icc_regmap_config,
  2298. .nodes = dc_noc_nodes,
  2299. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  2300. .bcms = dc_noc_bcms,
  2301. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  2302. .voters = dc_noc_voters,
  2303. .num_voters = ARRAY_SIZE(dc_noc_voters),
  2304. };
  2305. static struct qcom_icc_bcm *gem_noc_bcms[] = {
  2306. &bcm_sh0,
  2307. &bcm_sh2,
  2308. };
  2309. static struct qcom_icc_node *gem_noc_nodes[] = {
  2310. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  2311. [MASTER_PCIE_TCU] = &alm_pcie_tcu,
  2312. [MASTER_SYS_TCU] = &alm_sys_tcu,
  2313. [MASTER_APPSS_PROC] = &chm_apps,
  2314. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc0,
  2315. [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
  2316. [MASTER_GPDSP_SAIL] = &qnm_gpdsp_sail,
  2317. [MASTER_GFX3D] = &qnm_gpu,
  2318. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  2319. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  2320. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  2321. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  2322. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  2323. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  2324. [SLAVE_LLCC] = &qns_llcc,
  2325. [SLAVE_GEM_NOC_PCIE_CNOC] = &qns_pcie,
  2326. [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
  2327. [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
  2328. [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
  2329. [SLAVE_SERVICE_GEM_NOC2] = &srvc_sys_gemnoc_2,
  2330. };
  2331. static char *gem_noc_voters[] = {
  2332. [VOTER_IDX_HLOS] = "hlos",
  2333. };
  2334. static struct qcom_icc_desc monaco_auto_gem_noc = {
  2335. .config = &icc_regmap_config,
  2336. .nodes = gem_noc_nodes,
  2337. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  2338. .bcms = gem_noc_bcms,
  2339. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  2340. .voters = gem_noc_voters,
  2341. .num_voters = ARRAY_SIZE(gem_noc_voters),
  2342. };
  2343. static struct qcom_icc_bcm *gpdsp_anoc_bcms[] = {
  2344. &bcm_gna0,
  2345. };
  2346. static struct qcom_icc_node *gpdsp_anoc_nodes[] = {
  2347. [MASTER_SAILSS_MD0] = &qnm_sailss_md0,
  2348. [MASTER_DSP0] = &qxm_dsp0,
  2349. [SLAVE_GP_DSP_SAIL_NOC] = &qns_gp_dsp_sail_noc,
  2350. };
  2351. static char *gpdsp_anoc_voters[] = {
  2352. [VOTER_IDX_HLOS] = "hlos",
  2353. };
  2354. static struct qcom_icc_desc monaco_auto_gpdsp_anoc = {
  2355. .config = &icc_regmap_config,
  2356. .nodes = gpdsp_anoc_nodes,
  2357. .num_nodes = ARRAY_SIZE(gpdsp_anoc_nodes),
  2358. .bcms = gpdsp_anoc_bcms,
  2359. .num_bcms = ARRAY_SIZE(gpdsp_anoc_bcms),
  2360. .voters = gpdsp_anoc_voters,
  2361. .num_voters = ARRAY_SIZE(gpdsp_anoc_voters),
  2362. };
  2363. static struct qcom_icc_bcm *lpass_ag_noc_bcms[] = {
  2364. &bcm_sn9,
  2365. };
  2366. static struct qcom_icc_node *lpass_ag_noc_nodes[] = {
  2367. [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
  2368. [MASTER_LPASS_PROC] = &qxm_lpass_dsp,
  2369. [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
  2370. [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
  2371. [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
  2372. [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
  2373. [SLAVE_LPASS_SNOC] = &qns_sysnoc,
  2374. [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
  2375. [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
  2376. };
  2377. static char *lpass_ag_noc_voters[] = {
  2378. [VOTER_IDX_HLOS] = "hlos",
  2379. };
  2380. static struct qcom_icc_desc monaco_auto_lpass_ag_noc = {
  2381. .config = &icc_regmap_config,
  2382. .nodes = lpass_ag_noc_nodes,
  2383. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  2384. .bcms = lpass_ag_noc_bcms,
  2385. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  2386. .voters = lpass_ag_noc_voters,
  2387. .num_voters = ARRAY_SIZE(lpass_ag_noc_voters),
  2388. };
  2389. static struct qcom_icc_bcm *mc_virt_bcms[] = {
  2390. &bcm_acv,
  2391. &bcm_mc0,
  2392. };
  2393. static struct qcom_icc_node *mc_virt_nodes[] = {
  2394. [MASTER_LLCC] = &llcc_mc,
  2395. [SLAVE_EBI1] = &ebi,
  2396. };
  2397. static char *mc_virt_voters[] = {
  2398. [VOTER_IDX_HLOS] = "hlos",
  2399. };
  2400. static struct qcom_icc_desc monaco_auto_mc_virt = {
  2401. .config = &icc_regmap_config,
  2402. .nodes = mc_virt_nodes,
  2403. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  2404. .bcms = mc_virt_bcms,
  2405. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  2406. .voters = mc_virt_voters,
  2407. .num_voters = ARRAY_SIZE(mc_virt_voters),
  2408. };
  2409. static struct qcom_icc_bcm *mmss_noc_bcms[] = {
  2410. &bcm_mm0,
  2411. &bcm_mm1,
  2412. };
  2413. static struct qcom_icc_node *mmss_noc_nodes[] = {
  2414. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  2415. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  2416. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  2417. [MASTER_MDP0] = &qnm_mdp0_0,
  2418. [MASTER_MDP1] = &qnm_mdp0_1,
  2419. [MASTER_CNOC_MNOC_HF_CFG] = &qnm_mnoc_hf_cfg,
  2420. [MASTER_CNOC_MNOC_SF_CFG] = &qnm_mnoc_sf_cfg,
  2421. [MASTER_VIDEO_P0] = &qnm_video0,
  2422. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  2423. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  2424. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  2425. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  2426. [SLAVE_SERVICE_MNOC_HF] = &srvc_mnoc_hf,
  2427. [SLAVE_SERVICE_MNOC_SF] = &srvc_mnoc_sf,
  2428. };
  2429. static char *mmss_noc_voters[] = {
  2430. [VOTER_IDX_HLOS] = "hlos",
  2431. };
  2432. static struct qcom_icc_desc monaco_auto_mmss_noc = {
  2433. .config = &icc_regmap_config,
  2434. .nodes = mmss_noc_nodes,
  2435. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  2436. .bcms = mmss_noc_bcms,
  2437. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  2438. .voters = mmss_noc_voters,
  2439. .num_voters = ARRAY_SIZE(mmss_noc_voters),
  2440. };
  2441. static struct qcom_icc_bcm *nspa_noc_bcms[] = {
  2442. &bcm_nsa0,
  2443. &bcm_nsa1,
  2444. };
  2445. static struct qcom_icc_node *nspa_noc_nodes[] = {
  2446. [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
  2447. [MASTER_CDSP_PROC] = &qxm_nsp,
  2448. [SLAVE_HCP_A] = &qns_hcp,
  2449. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  2450. [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
  2451. };
  2452. static char *nspa_noc_voters[] = {
  2453. [VOTER_IDX_HLOS] = "hlos",
  2454. };
  2455. static struct qcom_icc_desc monaco_auto_nspa_noc = {
  2456. .config = &icc_regmap_config,
  2457. .nodes = nspa_noc_nodes,
  2458. .num_nodes = ARRAY_SIZE(nspa_noc_nodes),
  2459. .bcms = nspa_noc_bcms,
  2460. .num_bcms = ARRAY_SIZE(nspa_noc_bcms),
  2461. .voters = nspa_noc_voters,
  2462. .num_voters = ARRAY_SIZE(nspa_noc_voters),
  2463. };
  2464. static struct qcom_icc_bcm *pcie_anoc_bcms[] = {
  2465. &bcm_pci0,
  2466. };
  2467. static struct qcom_icc_node *pcie_anoc_nodes[] = {
  2468. [MASTER_PCIE_0] = &xm_pcie3_0,
  2469. [MASTER_PCIE_1] = &xm_pcie3_1,
  2470. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  2471. };
  2472. static char *pcie_anoc_voters[] = {
  2473. [VOTER_IDX_HLOS] = "hlos",
  2474. };
  2475. static struct qcom_icc_desc monaco_auto_pcie_anoc = {
  2476. .config = &icc_regmap_config,
  2477. .nodes = pcie_anoc_nodes,
  2478. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  2479. .bcms = pcie_anoc_bcms,
  2480. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  2481. .voters = pcie_anoc_voters,
  2482. .num_voters = ARRAY_SIZE(pcie_anoc_voters),
  2483. };
  2484. static struct qcom_icc_bcm *system_noc_bcms[] = {
  2485. &bcm_sn0,
  2486. &bcm_sn1,
  2487. &bcm_sn3,
  2488. &bcm_sn4,
  2489. &bcm_sn9,
  2490. };
  2491. static struct qcom_icc_node *system_noc_nodes[] = {
  2492. [MASTER_GIC_AHB] = &qhm_gic,
  2493. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  2494. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  2495. [MASTER_LPASS_ANOC] = &qnm_lpass_noc,
  2496. [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
  2497. [MASTER_PIMEM] = &qxm_pimem,
  2498. [MASTER_GIC] = &xm_gic,
  2499. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  2500. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  2501. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  2502. };
  2503. static char *system_noc_voters[] = {
  2504. [VOTER_IDX_HLOS] = "hlos",
  2505. };
  2506. static struct qcom_icc_desc monaco_auto_system_noc = {
  2507. .config = &icc_regmap_config,
  2508. .nodes = system_noc_nodes,
  2509. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  2510. .bcms = system_noc_bcms,
  2511. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  2512. .voters = system_noc_voters,
  2513. .num_voters = ARRAY_SIZE(system_noc_voters),
  2514. };
  2515. static int qnoc_probe(struct platform_device *pdev)
  2516. {
  2517. int ret;
  2518. ret = qcom_icc_rpmh_probe(pdev);
  2519. if (ret)
  2520. dev_err(&pdev->dev, "failed to register ICC provider: %d\n", ret);
  2521. else
  2522. dev_info(&pdev->dev, "Registered Monaco Auto ICC\n");
  2523. return ret;
  2524. }
  2525. static const struct of_device_id qnoc_of_match[] = {
  2526. { .compatible = "qcom,monaco_auto-aggre1_noc",
  2527. .data = &monaco_auto_aggre1_noc},
  2528. { .compatible = "qcom,monaco_auto-aggre2_noc",
  2529. .data = &monaco_auto_aggre2_noc},
  2530. { .compatible = "qcom,monaco_auto-clk_virt",
  2531. .data = &monaco_auto_clk_virt},
  2532. { .compatible = "qcom,monaco_auto-config_noc",
  2533. .data = &monaco_auto_config_noc},
  2534. { .compatible = "qcom,monaco_auto-dc_noc",
  2535. .data = &monaco_auto_dc_noc},
  2536. { .compatible = "qcom,monaco_auto-gem_noc",
  2537. .data = &monaco_auto_gem_noc},
  2538. { .compatible = "qcom,monaco_auto-gpdsp_anoc",
  2539. .data = &monaco_auto_gpdsp_anoc},
  2540. { .compatible = "qcom,monaco_auto-lpass_ag_noc",
  2541. .data = &monaco_auto_lpass_ag_noc},
  2542. { .compatible = "qcom,monaco_auto-mc_virt",
  2543. .data = &monaco_auto_mc_virt},
  2544. { .compatible = "qcom,monaco_auto-mmss_noc",
  2545. .data = &monaco_auto_mmss_noc},
  2546. { .compatible = "qcom,monaco_auto-nspa_noc",
  2547. .data = &monaco_auto_nspa_noc},
  2548. { .compatible = "qcom,monaco_auto-pcie_anoc",
  2549. .data = &monaco_auto_pcie_anoc},
  2550. { .compatible = "qcom,monaco_auto-system_noc",
  2551. .data = &monaco_auto_system_noc},
  2552. { }
  2553. };
  2554. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  2555. static struct platform_driver qnoc_driver = {
  2556. .probe = qnoc_probe,
  2557. .remove = qcom_icc_rpmh_remove,
  2558. .driver = {
  2559. .name = "qnoc-monaco_auto",
  2560. .of_match_table = qnoc_of_match,
  2561. .sync_state = qcom_icc_rpmh_sync_state,
  2562. },
  2563. };
  2564. static int __init qnoc_driver_init(void)
  2565. {
  2566. return platform_driver_register(&qnoc_driver);
  2567. }
  2568. core_initcall(qnoc_driver_init);
  2569. MODULE_DESCRIPTION("Monaco Auto NoC driver");
  2570. MODULE_LICENSE("GPL");