sm7150.c 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com>
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/mod_devicetable.h>
  10. #include <linux/module.h>
  11. #include <linux/platform_device.h>
  12. #include <dt-bindings/interconnect/qcom,sm7150-rpmh.h>
  13. #include "bcm-voter.h"
  14. #include "icc-rpmh.h"
  15. static struct qcom_icc_node qhm_a1noc_cfg;
  16. static struct qcom_icc_node qhm_qup_center;
  17. static struct qcom_icc_node qhm_tsif;
  18. static struct qcom_icc_node xm_emmc;
  19. static struct qcom_icc_node xm_sdc2;
  20. static struct qcom_icc_node xm_sdc4;
  21. static struct qcom_icc_node xm_ufs_mem;
  22. static struct qcom_icc_node qhm_a2noc_cfg;
  23. static struct qcom_icc_node qhm_qdss_bam;
  24. static struct qcom_icc_node qhm_qup_north;
  25. static struct qcom_icc_node qnm_cnoc;
  26. static struct qcom_icc_node qxm_crypto;
  27. static struct qcom_icc_node qxm_ipa;
  28. static struct qcom_icc_node xm_pcie3_0;
  29. static struct qcom_icc_node xm_qdss_etr;
  30. static struct qcom_icc_node xm_usb3_0;
  31. static struct qcom_icc_node qxm_camnoc_hf0_uncomp;
  32. static struct qcom_icc_node qxm_camnoc_rt_uncomp;
  33. static struct qcom_icc_node qxm_camnoc_sf_uncomp;
  34. static struct qcom_icc_node qxm_camnoc_nrt_uncomp;
  35. static struct qcom_icc_node qnm_npu;
  36. static struct qcom_icc_node qhm_spdm;
  37. static struct qcom_icc_node qnm_snoc;
  38. static struct qcom_icc_node xm_qdss_dap;
  39. static struct qcom_icc_node qhm_cnoc_dc_noc;
  40. static struct qcom_icc_node acm_apps;
  41. static struct qcom_icc_node acm_sys_tcu;
  42. static struct qcom_icc_node qhm_gemnoc_cfg;
  43. static struct qcom_icc_node qnm_cmpnoc;
  44. static struct qcom_icc_node qnm_mnoc_hf;
  45. static struct qcom_icc_node qnm_mnoc_sf;
  46. static struct qcom_icc_node qnm_pcie;
  47. static struct qcom_icc_node qnm_snoc_gc;
  48. static struct qcom_icc_node qnm_snoc_sf;
  49. static struct qcom_icc_node qxm_gpu;
  50. static struct qcom_icc_node llcc_mc;
  51. static struct qcom_icc_node qhm_mnoc_cfg;
  52. static struct qcom_icc_node qxm_camnoc_hf;
  53. static struct qcom_icc_node qxm_camnoc_nrt;
  54. static struct qcom_icc_node qxm_camnoc_rt;
  55. static struct qcom_icc_node qxm_camnoc_sf;
  56. static struct qcom_icc_node qxm_mdp0;
  57. static struct qcom_icc_node qxm_mdp1;
  58. static struct qcom_icc_node qxm_rot;
  59. static struct qcom_icc_node qxm_venus0;
  60. static struct qcom_icc_node qxm_venus1;
  61. static struct qcom_icc_node qxm_venus_arm9;
  62. static struct qcom_icc_node qhm_snoc_cfg;
  63. static struct qcom_icc_node qnm_aggre1_noc;
  64. static struct qcom_icc_node qnm_aggre2_noc;
  65. static struct qcom_icc_node qnm_gemnoc;
  66. static struct qcom_icc_node qxm_pimem;
  67. static struct qcom_icc_node xm_gic;
  68. static struct qcom_icc_node qns_a1noc_snoc;
  69. static struct qcom_icc_node srvc_aggre1_noc;
  70. static struct qcom_icc_node qns_a2noc_snoc;
  71. static struct qcom_icc_node qns_pcie_gemnoc;
  72. static struct qcom_icc_node srvc_aggre2_noc;
  73. static struct qcom_icc_node qns_camnoc_uncomp;
  74. static struct qcom_icc_node qns_cdsp_gemnoc;
  75. static struct qcom_icc_node qhs_a1_noc_cfg;
  76. static struct qcom_icc_node qhs_a2_noc_cfg;
  77. static struct qcom_icc_node qhs_ahb2phy_north;
  78. static struct qcom_icc_node qhs_ahb2phy_south;
  79. static struct qcom_icc_node qhs_ahb2phy_west;
  80. static struct qcom_icc_node qhs_aop;
  81. static struct qcom_icc_node qhs_aoss;
  82. static struct qcom_icc_node qhs_camera_cfg;
  83. static struct qcom_icc_node qhs_camera_nrt_thrott_cfg;
  84. static struct qcom_icc_node qhs_camera_rt_throttle_cfg;
  85. static struct qcom_icc_node qhs_clk_ctl;
  86. static struct qcom_icc_node qhs_compute_dsp_cfg;
  87. static struct qcom_icc_node qhs_cpr_cx;
  88. static struct qcom_icc_node qhs_cpr_mx;
  89. static struct qcom_icc_node qhs_crypto0_cfg;
  90. static struct qcom_icc_node qhs_ddrss_cfg;
  91. static struct qcom_icc_node qhs_display_cfg;
  92. static struct qcom_icc_node qhs_display_throttle_cfg;
  93. static struct qcom_icc_node qhs_emmc_cfg;
  94. static struct qcom_icc_node qhs_glm;
  95. static struct qcom_icc_node qhs_gpuss_cfg;
  96. static struct qcom_icc_node qhs_imem_cfg;
  97. static struct qcom_icc_node qhs_ipa;
  98. static struct qcom_icc_node qhs_mnoc_cfg;
  99. static struct qcom_icc_node qhs_pcie_cfg;
  100. static struct qcom_icc_node qhs_pdm;
  101. static struct qcom_icc_node qhs_pimem_cfg;
  102. static struct qcom_icc_node qhs_prng;
  103. static struct qcom_icc_node qhs_qdss_cfg;
  104. static struct qcom_icc_node qhs_qupv3_center;
  105. static struct qcom_icc_node qhs_qupv3_north;
  106. static struct qcom_icc_node qhs_sdc2;
  107. static struct qcom_icc_node qhs_sdc4;
  108. static struct qcom_icc_node qhs_snoc_cfg;
  109. static struct qcom_icc_node qhs_spdm;
  110. static struct qcom_icc_node qhs_tcsr;
  111. static struct qcom_icc_node qhs_tlmm_north;
  112. static struct qcom_icc_node qhs_tlmm_south;
  113. static struct qcom_icc_node qhs_tlmm_west;
  114. static struct qcom_icc_node qhs_tsif;
  115. static struct qcom_icc_node qhs_ufs_mem_cfg;
  116. static struct qcom_icc_node qhs_usb3_0;
  117. static struct qcom_icc_node qhs_venus_cfg;
  118. static struct qcom_icc_node qhs_venus_cvp_throttle_cfg;
  119. static struct qcom_icc_node qhs_venus_throttle_cfg;
  120. static struct qcom_icc_node qhs_vsense_ctrl_cfg;
  121. static struct qcom_icc_node qns_cnoc_a2noc;
  122. static struct qcom_icc_node srvc_cnoc;
  123. static struct qcom_icc_node qhs_gemnoc;
  124. static struct qcom_icc_node qhs_llcc;
  125. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg;
  126. static struct qcom_icc_node qns_gem_noc_snoc;
  127. static struct qcom_icc_node qns_llcc;
  128. static struct qcom_icc_node srvc_gemnoc;
  129. static struct qcom_icc_node ebi;
  130. static struct qcom_icc_node qns2_mem_noc;
  131. static struct qcom_icc_node qns_mem_noc_hf;
  132. static struct qcom_icc_node srvc_mnoc;
  133. static struct qcom_icc_node qhs_apss;
  134. static struct qcom_icc_node qns_cnoc;
  135. static struct qcom_icc_node qns_gemnoc_gc;
  136. static struct qcom_icc_node qns_gemnoc_sf;
  137. static struct qcom_icc_node qxs_imem;
  138. static struct qcom_icc_node qxs_pimem;
  139. static struct qcom_icc_node srvc_snoc;
  140. static struct qcom_icc_node xs_qdss_stm;
  141. static struct qcom_icc_node xs_sys_tcu_cfg;
  142. static struct qcom_icc_node qhm_a1noc_cfg = {
  143. .name = "qhm_a1noc_cfg",
  144. .channels = 1,
  145. .buswidth = 4,
  146. .num_links = 1,
  147. .link_nodes = { &srvc_aggre1_noc },
  148. };
  149. static struct qcom_icc_node qhm_qup_center = {
  150. .name = "qhm_qup_center",
  151. .channels = 1,
  152. .buswidth = 4,
  153. .num_links = 1,
  154. .link_nodes = { &qns_a1noc_snoc },
  155. };
  156. static struct qcom_icc_node qhm_tsif = {
  157. .name = "qhm_tsif",
  158. .channels = 1,
  159. .buswidth = 4,
  160. .num_links = 1,
  161. .link_nodes = { &qns_a1noc_snoc },
  162. };
  163. static struct qcom_icc_node xm_emmc = {
  164. .name = "xm_emmc",
  165. .channels = 1,
  166. .buswidth = 8,
  167. .num_links = 1,
  168. .link_nodes = { &qns_a1noc_snoc },
  169. };
  170. static struct qcom_icc_node xm_sdc2 = {
  171. .name = "xm_sdc2",
  172. .channels = 1,
  173. .buswidth = 8,
  174. .num_links = 1,
  175. .link_nodes = { &qns_a1noc_snoc },
  176. };
  177. static struct qcom_icc_node xm_sdc4 = {
  178. .name = "xm_sdc4",
  179. .channels = 1,
  180. .buswidth = 8,
  181. .num_links = 1,
  182. .link_nodes = { &qns_a1noc_snoc },
  183. };
  184. static struct qcom_icc_node xm_ufs_mem = {
  185. .name = "xm_ufs_mem",
  186. .channels = 1,
  187. .buswidth = 8,
  188. .num_links = 1,
  189. .link_nodes = { &qns_a1noc_snoc },
  190. };
  191. static struct qcom_icc_node qhm_a2noc_cfg = {
  192. .name = "qhm_a2noc_cfg",
  193. .channels = 1,
  194. .buswidth = 4,
  195. .num_links = 1,
  196. .link_nodes = { &srvc_aggre2_noc },
  197. };
  198. static struct qcom_icc_node qhm_qdss_bam = {
  199. .name = "qhm_qdss_bam",
  200. .channels = 1,
  201. .buswidth = 4,
  202. .num_links = 1,
  203. .link_nodes = { &qns_a2noc_snoc },
  204. };
  205. static struct qcom_icc_node qhm_qup_north = {
  206. .name = "qhm_qup_north",
  207. .channels = 1,
  208. .buswidth = 4,
  209. .num_links = 1,
  210. .link_nodes = { &qns_a2noc_snoc },
  211. };
  212. static struct qcom_icc_node qnm_cnoc = {
  213. .name = "qnm_cnoc",
  214. .channels = 1,
  215. .buswidth = 8,
  216. .num_links = 1,
  217. .link_nodes = { &qns_a2noc_snoc },
  218. };
  219. static struct qcom_icc_node qxm_crypto = {
  220. .name = "qxm_crypto",
  221. .channels = 1,
  222. .buswidth = 8,
  223. .num_links = 1,
  224. .link_nodes = { &qns_a2noc_snoc },
  225. };
  226. static struct qcom_icc_node qxm_ipa = {
  227. .name = "qxm_ipa",
  228. .channels = 1,
  229. .buswidth = 8,
  230. .num_links = 1,
  231. .link_nodes = { &qns_a2noc_snoc },
  232. };
  233. static struct qcom_icc_node xm_pcie3_0 = {
  234. .name = "xm_pcie3_0",
  235. .channels = 1,
  236. .buswidth = 8,
  237. .num_links = 1,
  238. .link_nodes = { &qns_pcie_gemnoc },
  239. };
  240. static struct qcom_icc_node xm_qdss_etr = {
  241. .name = "xm_qdss_etr",
  242. .channels = 1,
  243. .buswidth = 8,
  244. .num_links = 1,
  245. .link_nodes = { &qns_a2noc_snoc },
  246. };
  247. static struct qcom_icc_node xm_usb3_0 = {
  248. .name = "xm_usb3_0",
  249. .channels = 1,
  250. .buswidth = 8,
  251. .num_links = 1,
  252. .link_nodes = { &qns_a2noc_snoc },
  253. };
  254. static struct qcom_icc_node qxm_camnoc_hf0_uncomp = {
  255. .name = "qxm_camnoc_hf0_uncomp",
  256. .channels = 2,
  257. .buswidth = 32,
  258. .num_links = 1,
  259. .link_nodes = { &qns_camnoc_uncomp },
  260. };
  261. static struct qcom_icc_node qxm_camnoc_rt_uncomp = {
  262. .name = "qxm_camnoc_rt_uncomp",
  263. .channels = 1,
  264. .buswidth = 32,
  265. .num_links = 1,
  266. .link_nodes = { &qns_camnoc_uncomp },
  267. };
  268. static struct qcom_icc_node qxm_camnoc_sf_uncomp = {
  269. .name = "qxm_camnoc_sf_uncomp",
  270. .channels = 1,
  271. .buswidth = 32,
  272. .num_links = 1,
  273. .link_nodes = { &qns_camnoc_uncomp },
  274. };
  275. static struct qcom_icc_node qxm_camnoc_nrt_uncomp = {
  276. .name = "qxm_camnoc_nrt_uncomp",
  277. .channels = 1,
  278. .buswidth = 32,
  279. .num_links = 1,
  280. .link_nodes = { &qns_camnoc_uncomp },
  281. };
  282. static struct qcom_icc_node qnm_npu = {
  283. .name = "qnm_npu",
  284. .channels = 1,
  285. .buswidth = 32,
  286. .num_links = 1,
  287. .link_nodes = { &qns_cdsp_gemnoc },
  288. };
  289. static struct qcom_icc_node qhm_spdm = {
  290. .name = "qhm_spdm",
  291. .channels = 1,
  292. .buswidth = 4,
  293. .num_links = 1,
  294. .link_nodes = { &qns_cnoc_a2noc },
  295. };
  296. static struct qcom_icc_node qnm_snoc = {
  297. .name = "qnm_snoc",
  298. .channels = 1,
  299. .buswidth = 8,
  300. .num_links = 47,
  301. .link_nodes = { &qhs_tlmm_south,
  302. &qhs_camera_cfg,
  303. &qhs_sdc4,
  304. &qhs_sdc2,
  305. &qhs_mnoc_cfg,
  306. &qhs_ufs_mem_cfg,
  307. &qhs_qupv3_center,
  308. &qhs_glm,
  309. &qhs_pdm,
  310. &qhs_camera_nrt_thrott_cfg,
  311. &qhs_a2_noc_cfg,
  312. &qhs_qdss_cfg,
  313. &qhs_camera_rt_throttle_cfg,
  314. &qhs_display_cfg,
  315. &qhs_pcie_cfg,
  316. &qhs_display_throttle_cfg,
  317. &qhs_tcsr,
  318. &qhs_venus_cvp_throttle_cfg,
  319. &qhs_ddrss_cfg,
  320. &qhs_ahb2phy_north,
  321. &qhs_snoc_cfg,
  322. &qhs_gpuss_cfg,
  323. &qhs_venus_cfg,
  324. &qhs_tsif,
  325. &qhs_compute_dsp_cfg,
  326. &qhs_clk_ctl,
  327. &qhs_aop,
  328. &qhs_qupv3_north,
  329. &qhs_ahb2phy_south,
  330. &srvc_cnoc,
  331. &qhs_ahb2phy_west,
  332. &qhs_usb3_0,
  333. &qhs_venus_throttle_cfg,
  334. &qhs_ipa,
  335. &qhs_cpr_cx,
  336. &qhs_tlmm_west,
  337. &qhs_a1_noc_cfg,
  338. &qhs_aoss,
  339. &qhs_prng,
  340. &qhs_vsense_ctrl_cfg,
  341. &qhs_emmc_cfg,
  342. &qhs_spdm,
  343. &qhs_crypto0_cfg,
  344. &qhs_pimem_cfg,
  345. &qhs_tlmm_north,
  346. &qhs_cpr_mx,
  347. &qhs_imem_cfg },
  348. };
  349. static struct qcom_icc_node xm_qdss_dap = {
  350. .name = "xm_qdss_dap",
  351. .channels = 1,
  352. .buswidth = 8,
  353. .num_links = 48,
  354. .link_nodes = { &qhs_tlmm_south,
  355. &qhs_camera_cfg,
  356. &qhs_sdc4,
  357. &qhs_sdc2,
  358. &qhs_mnoc_cfg,
  359. &qhs_ufs_mem_cfg,
  360. &qhs_qupv3_center,
  361. &qhs_glm,
  362. &qhs_pdm,
  363. &qhs_camera_nrt_thrott_cfg,
  364. &qhs_a2_noc_cfg,
  365. &qhs_qdss_cfg,
  366. &qhs_camera_rt_throttle_cfg,
  367. &qhs_display_cfg,
  368. &qhs_pcie_cfg,
  369. &qhs_display_throttle_cfg,
  370. &qhs_tcsr,
  371. &qhs_venus_cvp_throttle_cfg,
  372. &qhs_ddrss_cfg,
  373. &qns_cnoc_a2noc,
  374. &qhs_ahb2phy_north,
  375. &qhs_snoc_cfg,
  376. &qhs_gpuss_cfg,
  377. &qhs_venus_cfg,
  378. &qhs_tsif,
  379. &qhs_compute_dsp_cfg,
  380. &qhs_clk_ctl,
  381. &qhs_aop,
  382. &qhs_qupv3_north,
  383. &qhs_ahb2phy_south,
  384. &srvc_cnoc,
  385. &qhs_ahb2phy_west,
  386. &qhs_usb3_0,
  387. &qhs_venus_throttle_cfg,
  388. &qhs_ipa,
  389. &qhs_cpr_cx,
  390. &qhs_tlmm_west,
  391. &qhs_a1_noc_cfg,
  392. &qhs_aoss,
  393. &qhs_prng,
  394. &qhs_vsense_ctrl_cfg,
  395. &qhs_emmc_cfg,
  396. &qhs_spdm,
  397. &qhs_crypto0_cfg,
  398. &qhs_pimem_cfg,
  399. &qhs_tlmm_north,
  400. &qhs_cpr_mx,
  401. &qhs_imem_cfg },
  402. };
  403. static struct qcom_icc_node qhm_cnoc_dc_noc = {
  404. .name = "qhm_cnoc_dc_noc",
  405. .channels = 1,
  406. .buswidth = 4,
  407. .num_links = 2,
  408. .link_nodes = { &qhs_llcc,
  409. &qhs_gemnoc },
  410. };
  411. static struct qcom_icc_node acm_apps = {
  412. .name = "acm_apps",
  413. .channels = 1,
  414. .buswidth = 16,
  415. .num_links = 2,
  416. .link_nodes = { &qns_llcc,
  417. &qns_gem_noc_snoc },
  418. };
  419. static struct qcom_icc_node acm_sys_tcu = {
  420. .name = "acm_sys_tcu",
  421. .channels = 1,
  422. .buswidth = 8,
  423. .num_links = 2,
  424. .link_nodes = { &qns_llcc,
  425. &qns_gem_noc_snoc },
  426. };
  427. static struct qcom_icc_node qhm_gemnoc_cfg = {
  428. .name = "qhm_gemnoc_cfg",
  429. .channels = 1,
  430. .buswidth = 4,
  431. .num_links = 2,
  432. .link_nodes = { &srvc_gemnoc,
  433. &qhs_mdsp_ms_mpu_cfg },
  434. };
  435. static struct qcom_icc_node qnm_cmpnoc = {
  436. .name = "qnm_cmpnoc",
  437. .channels = 1,
  438. .buswidth = 32,
  439. .num_links = 2,
  440. .link_nodes = { &qns_llcc,
  441. &qns_gem_noc_snoc },
  442. };
  443. static struct qcom_icc_node qnm_mnoc_hf = {
  444. .name = "qnm_mnoc_hf",
  445. .channels = 2,
  446. .buswidth = 32,
  447. .num_links = 1,
  448. .link_nodes = { &qns_llcc },
  449. };
  450. static struct qcom_icc_node qnm_mnoc_sf = {
  451. .name = "qnm_mnoc_sf",
  452. .channels = 1,
  453. .buswidth = 32,
  454. .num_links = 2,
  455. .link_nodes = { &qns_llcc,
  456. &qns_gem_noc_snoc },
  457. };
  458. static struct qcom_icc_node qnm_pcie = {
  459. .name = "qnm_pcie",
  460. .channels = 1,
  461. .buswidth = 8,
  462. .num_links = 2,
  463. .link_nodes = { &qns_llcc,
  464. &qns_gem_noc_snoc },
  465. };
  466. static struct qcom_icc_node qnm_snoc_gc = {
  467. .name = "qnm_snoc_gc",
  468. .channels = 1,
  469. .buswidth = 8,
  470. .num_links = 1,
  471. .link_nodes = { &qns_llcc },
  472. };
  473. static struct qcom_icc_node qnm_snoc_sf = {
  474. .name = "qnm_snoc_sf",
  475. .channels = 1,
  476. .buswidth = 16,
  477. .num_links = 1,
  478. .link_nodes = { &qns_llcc },
  479. };
  480. static struct qcom_icc_node qxm_gpu = {
  481. .name = "qxm_gpu",
  482. .channels = 2,
  483. .buswidth = 32,
  484. .num_links = 2,
  485. .link_nodes = { &qns_llcc,
  486. &qns_gem_noc_snoc },
  487. };
  488. static struct qcom_icc_node llcc_mc = {
  489. .name = "llcc_mc",
  490. .channels = 2,
  491. .buswidth = 4,
  492. .num_links = 1,
  493. .link_nodes = { &ebi },
  494. };
  495. static struct qcom_icc_node qhm_mnoc_cfg = {
  496. .name = "qhm_mnoc_cfg",
  497. .channels = 1,
  498. .buswidth = 4,
  499. .num_links = 1,
  500. .link_nodes = { &srvc_mnoc },
  501. };
  502. static struct qcom_icc_node qxm_camnoc_hf = {
  503. .name = "qxm_camnoc_hf",
  504. .channels = 2,
  505. .buswidth = 32,
  506. .num_links = 1,
  507. .link_nodes = { &qns_mem_noc_hf },
  508. };
  509. static struct qcom_icc_node qxm_camnoc_nrt = {
  510. .name = "qxm_camnoc_nrt",
  511. .channels = 1,
  512. .buswidth = 8,
  513. .num_links = 1,
  514. .link_nodes = { &qns2_mem_noc },
  515. };
  516. static struct qcom_icc_node qxm_camnoc_rt = {
  517. .name = "qxm_camnoc_rt",
  518. .channels = 1,
  519. .buswidth = 32,
  520. .num_links = 1,
  521. .link_nodes = { &qns_mem_noc_hf },
  522. };
  523. static struct qcom_icc_node qxm_camnoc_sf = {
  524. .name = "qxm_camnoc_sf",
  525. .channels = 1,
  526. .buswidth = 32,
  527. .num_links = 1,
  528. .link_nodes = { &qns2_mem_noc },
  529. };
  530. static struct qcom_icc_node qxm_mdp0 = {
  531. .name = "qxm_mdp0",
  532. .channels = 1,
  533. .buswidth = 32,
  534. .num_links = 1,
  535. .link_nodes = { &qns_mem_noc_hf },
  536. };
  537. static struct qcom_icc_node qxm_mdp1 = {
  538. .name = "qxm_mdp1",
  539. .channels = 1,
  540. .buswidth = 32,
  541. .num_links = 1,
  542. .link_nodes = { &qns_mem_noc_hf },
  543. };
  544. static struct qcom_icc_node qxm_rot = {
  545. .name = "qxm_rot",
  546. .channels = 1,
  547. .buswidth = 32,
  548. .num_links = 1,
  549. .link_nodes = { &qns2_mem_noc },
  550. };
  551. static struct qcom_icc_node qxm_venus0 = {
  552. .name = "qxm_venus0",
  553. .channels = 1,
  554. .buswidth = 32,
  555. .num_links = 1,
  556. .link_nodes = { &qns2_mem_noc },
  557. };
  558. static struct qcom_icc_node qxm_venus1 = {
  559. .name = "qxm_venus1",
  560. .channels = 1,
  561. .buswidth = 32,
  562. .num_links = 1,
  563. .link_nodes = { &qns2_mem_noc },
  564. };
  565. static struct qcom_icc_node qxm_venus_arm9 = {
  566. .name = "qxm_venus_arm9",
  567. .channels = 1,
  568. .buswidth = 8,
  569. .num_links = 1,
  570. .link_nodes = { &qns2_mem_noc },
  571. };
  572. static struct qcom_icc_node qhm_snoc_cfg = {
  573. .name = "qhm_snoc_cfg",
  574. .channels = 1,
  575. .buswidth = 4,
  576. .num_links = 1,
  577. .link_nodes = { &srvc_snoc },
  578. };
  579. static struct qcom_icc_node qnm_aggre1_noc = {
  580. .name = "qnm_aggre1_noc",
  581. .channels = 1,
  582. .buswidth = 16,
  583. .num_links = 6,
  584. .link_nodes = { &qns_gemnoc_sf,
  585. &qxs_pimem,
  586. &qxs_imem,
  587. &qhs_apss,
  588. &qns_cnoc,
  589. &xs_qdss_stm },
  590. };
  591. static struct qcom_icc_node qnm_aggre2_noc = {
  592. .name = "qnm_aggre2_noc",
  593. .channels = 1,
  594. .buswidth = 16,
  595. .num_links = 7,
  596. .link_nodes = { &qns_gemnoc_sf,
  597. &qxs_pimem,
  598. &qxs_imem,
  599. &qhs_apss,
  600. &qns_cnoc,
  601. &xs_sys_tcu_cfg,
  602. &xs_qdss_stm },
  603. };
  604. static struct qcom_icc_node qnm_gemnoc = {
  605. .name = "qnm_gemnoc",
  606. .channels = 1,
  607. .buswidth = 8,
  608. .num_links = 6,
  609. .link_nodes = { &qxs_pimem,
  610. &qxs_imem,
  611. &qhs_apss,
  612. &qns_cnoc,
  613. &xs_sys_tcu_cfg,
  614. &xs_qdss_stm },
  615. };
  616. static struct qcom_icc_node qxm_pimem = {
  617. .name = "qxm_pimem",
  618. .channels = 1,
  619. .buswidth = 8,
  620. .num_links = 2,
  621. .link_nodes = { &qns_gemnoc_gc,
  622. &qxs_imem },
  623. };
  624. static struct qcom_icc_node xm_gic = {
  625. .name = "xm_gic",
  626. .channels = 1,
  627. .buswidth = 8,
  628. .num_links = 2,
  629. .link_nodes = { &qns_gemnoc_gc,
  630. &qxs_imem },
  631. };
  632. static struct qcom_icc_node qns_a1noc_snoc = {
  633. .name = "qns_a1noc_snoc",
  634. .channels = 1,
  635. .buswidth = 16,
  636. .num_links = 1,
  637. .link_nodes = { &qnm_aggre1_noc },
  638. };
  639. static struct qcom_icc_node srvc_aggre1_noc = {
  640. .name = "srvc_aggre1_noc",
  641. .channels = 1,
  642. .buswidth = 4,
  643. };
  644. static struct qcom_icc_node qns_a2noc_snoc = {
  645. .name = "qns_a2noc_snoc",
  646. .channels = 1,
  647. .buswidth = 16,
  648. .num_links = 1,
  649. .link_nodes = { &qnm_aggre2_noc },
  650. };
  651. static struct qcom_icc_node qns_pcie_gemnoc = {
  652. .name = "qns_pcie_gemnoc",
  653. .channels = 1,
  654. .buswidth = 8,
  655. .num_links = 1,
  656. .link_nodes = { &qnm_pcie },
  657. };
  658. static struct qcom_icc_node srvc_aggre2_noc = {
  659. .name = "srvc_aggre2_noc",
  660. .channels = 1,
  661. .buswidth = 4,
  662. };
  663. static struct qcom_icc_node qns_camnoc_uncomp = {
  664. .name = "qns_camnoc_uncomp",
  665. .channels = 1,
  666. .buswidth = 32,
  667. };
  668. static struct qcom_icc_node qns_cdsp_gemnoc = {
  669. .name = "qns_cdsp_gemnoc",
  670. .channels = 1,
  671. .buswidth = 32,
  672. .num_links = 1,
  673. .link_nodes = { &qnm_cmpnoc },
  674. };
  675. static struct qcom_icc_node qhs_a1_noc_cfg = {
  676. .name = "qhs_a1_noc_cfg",
  677. .channels = 1,
  678. .buswidth = 4,
  679. .num_links = 1,
  680. .link_nodes = { &qhm_a1noc_cfg },
  681. };
  682. static struct qcom_icc_node qhs_a2_noc_cfg = {
  683. .name = "qhs_a2_noc_cfg",
  684. .channels = 1,
  685. .buswidth = 4,
  686. .num_links = 1,
  687. .link_nodes = { &qhm_a2noc_cfg },
  688. };
  689. static struct qcom_icc_node qhs_ahb2phy_north = {
  690. .name = "qhs_ahb2phy_north",
  691. .channels = 1,
  692. .buswidth = 4,
  693. };
  694. static struct qcom_icc_node qhs_ahb2phy_south = {
  695. .name = "qhs_ahb2phy_south",
  696. .channels = 1,
  697. .buswidth = 4,
  698. };
  699. static struct qcom_icc_node qhs_ahb2phy_west = {
  700. .name = "qhs_ahb2phy_west",
  701. .channels = 1,
  702. .buswidth = 4,
  703. };
  704. static struct qcom_icc_node qhs_aop = {
  705. .name = "qhs_aop",
  706. .channels = 1,
  707. .buswidth = 4,
  708. };
  709. static struct qcom_icc_node qhs_aoss = {
  710. .name = "qhs_aoss",
  711. .channels = 1,
  712. .buswidth = 4,
  713. };
  714. static struct qcom_icc_node qhs_camera_cfg = {
  715. .name = "qhs_camera_cfg",
  716. .channels = 1,
  717. .buswidth = 4,
  718. };
  719. static struct qcom_icc_node qhs_camera_nrt_thrott_cfg = {
  720. .name = "qhs_camera_nrt_thrott_cfg",
  721. .channels = 1,
  722. .buswidth = 4,
  723. };
  724. static struct qcom_icc_node qhs_camera_rt_throttle_cfg = {
  725. .name = "qhs_camera_rt_throttle_cfg",
  726. .channels = 1,
  727. .buswidth = 4,
  728. };
  729. static struct qcom_icc_node qhs_clk_ctl = {
  730. .name = "qhs_clk_ctl",
  731. .channels = 1,
  732. .buswidth = 4,
  733. };
  734. static struct qcom_icc_node qhs_compute_dsp_cfg = {
  735. .name = "qhs_compute_dsp_cfg",
  736. .channels = 1,
  737. .buswidth = 4,
  738. };
  739. static struct qcom_icc_node qhs_cpr_cx = {
  740. .name = "qhs_cpr_cx",
  741. .channels = 1,
  742. .buswidth = 4,
  743. };
  744. static struct qcom_icc_node qhs_cpr_mx = {
  745. .name = "qhs_cpr_mx",
  746. .channels = 1,
  747. .buswidth = 4,
  748. };
  749. static struct qcom_icc_node qhs_crypto0_cfg = {
  750. .name = "qhs_crypto0_cfg",
  751. .channels = 1,
  752. .buswidth = 4,
  753. };
  754. static struct qcom_icc_node qhs_ddrss_cfg = {
  755. .name = "qhs_ddrss_cfg",
  756. .channels = 1,
  757. .buswidth = 4,
  758. .num_links = 1,
  759. .link_nodes = { &qhm_cnoc_dc_noc },
  760. };
  761. static struct qcom_icc_node qhs_display_cfg = {
  762. .name = "qhs_display_cfg",
  763. .channels = 1,
  764. .buswidth = 4,
  765. };
  766. static struct qcom_icc_node qhs_display_throttle_cfg = {
  767. .name = "qhs_display_throttle_cfg",
  768. .channels = 1,
  769. .buswidth = 4,
  770. };
  771. static struct qcom_icc_node qhs_emmc_cfg = {
  772. .name = "qhs_emmc_cfg",
  773. .channels = 1,
  774. .buswidth = 4,
  775. };
  776. static struct qcom_icc_node qhs_glm = {
  777. .name = "qhs_glm",
  778. .channels = 1,
  779. .buswidth = 4,
  780. };
  781. static struct qcom_icc_node qhs_gpuss_cfg = {
  782. .name = "qhs_gpuss_cfg",
  783. .channels = 1,
  784. .buswidth = 8,
  785. };
  786. static struct qcom_icc_node qhs_imem_cfg = {
  787. .name = "qhs_imem_cfg",
  788. .channels = 1,
  789. .buswidth = 4,
  790. };
  791. static struct qcom_icc_node qhs_ipa = {
  792. .name = "qhs_ipa",
  793. .channels = 1,
  794. .buswidth = 4,
  795. };
  796. static struct qcom_icc_node qhs_mnoc_cfg = {
  797. .name = "qhs_mnoc_cfg",
  798. .channels = 1,
  799. .buswidth = 4,
  800. .num_links = 1,
  801. .link_nodes = { &qhm_mnoc_cfg },
  802. };
  803. static struct qcom_icc_node qhs_pcie_cfg = {
  804. .name = "qhs_pcie_cfg",
  805. .channels = 1,
  806. .buswidth = 4,
  807. };
  808. static struct qcom_icc_node qhs_pdm = {
  809. .name = "qhs_pdm",
  810. .channels = 1,
  811. .buswidth = 4,
  812. };
  813. static struct qcom_icc_node qhs_pimem_cfg = {
  814. .name = "qhs_pimem_cfg",
  815. .channels = 1,
  816. .buswidth = 4,
  817. };
  818. static struct qcom_icc_node qhs_prng = {
  819. .name = "qhs_prng",
  820. .channels = 1,
  821. .buswidth = 4,
  822. };
  823. static struct qcom_icc_node qhs_qdss_cfg = {
  824. .name = "qhs_qdss_cfg",
  825. .channels = 1,
  826. .buswidth = 4,
  827. };
  828. static struct qcom_icc_node qhs_qupv3_center = {
  829. .name = "qhs_qupv3_center",
  830. .channels = 1,
  831. .buswidth = 4,
  832. };
  833. static struct qcom_icc_node qhs_qupv3_north = {
  834. .name = "qhs_qupv3_north",
  835. .channels = 1,
  836. .buswidth = 4,
  837. };
  838. static struct qcom_icc_node qhs_sdc2 = {
  839. .name = "qhs_sdc2",
  840. .channels = 1,
  841. .buswidth = 4,
  842. };
  843. static struct qcom_icc_node qhs_sdc4 = {
  844. .name = "qhs_sdc4",
  845. .channels = 1,
  846. .buswidth = 4,
  847. };
  848. static struct qcom_icc_node qhs_snoc_cfg = {
  849. .name = "qhs_snoc_cfg",
  850. .channels = 1,
  851. .buswidth = 4,
  852. .num_links = 1,
  853. .link_nodes = { &qhm_snoc_cfg },
  854. };
  855. static struct qcom_icc_node qhs_spdm = {
  856. .name = "qhs_spdm",
  857. .channels = 1,
  858. .buswidth = 4,
  859. };
  860. static struct qcom_icc_node qhs_tcsr = {
  861. .name = "qhs_tcsr",
  862. .channels = 1,
  863. .buswidth = 4,
  864. };
  865. static struct qcom_icc_node qhs_tlmm_north = {
  866. .name = "qhs_tlmm_north",
  867. .channels = 1,
  868. .buswidth = 4,
  869. };
  870. static struct qcom_icc_node qhs_tlmm_south = {
  871. .name = "qhs_tlmm_south",
  872. .channels = 1,
  873. .buswidth = 4,
  874. };
  875. static struct qcom_icc_node qhs_tlmm_west = {
  876. .name = "qhs_tlmm_west",
  877. .channels = 1,
  878. .buswidth = 4,
  879. };
  880. static struct qcom_icc_node qhs_tsif = {
  881. .name = "qhs_tsif",
  882. .channels = 1,
  883. .buswidth = 4,
  884. };
  885. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  886. .name = "qhs_ufs_mem_cfg",
  887. .channels = 1,
  888. .buswidth = 4,
  889. };
  890. static struct qcom_icc_node qhs_usb3_0 = {
  891. .name = "qhs_usb3_0",
  892. .channels = 1,
  893. .buswidth = 4,
  894. };
  895. static struct qcom_icc_node qhs_venus_cfg = {
  896. .name = "qhs_venus_cfg",
  897. .channels = 1,
  898. .buswidth = 4,
  899. };
  900. static struct qcom_icc_node qhs_venus_cvp_throttle_cfg = {
  901. .name = "qhs_venus_cvp_throttle_cfg",
  902. .channels = 1,
  903. .buswidth = 4,
  904. };
  905. static struct qcom_icc_node qhs_venus_throttle_cfg = {
  906. .name = "qhs_venus_throttle_cfg",
  907. .channels = 1,
  908. .buswidth = 4,
  909. };
  910. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  911. .name = "qhs_vsense_ctrl_cfg",
  912. .channels = 1,
  913. .buswidth = 4,
  914. };
  915. static struct qcom_icc_node qns_cnoc_a2noc = {
  916. .name = "qns_cnoc_a2noc",
  917. .channels = 1,
  918. .buswidth = 8,
  919. .num_links = 1,
  920. .link_nodes = { &qnm_cnoc },
  921. };
  922. static struct qcom_icc_node srvc_cnoc = {
  923. .name = "srvc_cnoc",
  924. .channels = 1,
  925. .buswidth = 4,
  926. };
  927. static struct qcom_icc_node qhs_gemnoc = {
  928. .name = "qhs_gemnoc",
  929. .channels = 1,
  930. .buswidth = 4,
  931. .num_links = 1,
  932. .link_nodes = { &qhm_gemnoc_cfg },
  933. };
  934. static struct qcom_icc_node qhs_llcc = {
  935. .name = "qhs_llcc",
  936. .channels = 1,
  937. .buswidth = 4,
  938. };
  939. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  940. .name = "qhs_mdsp_ms_mpu_cfg",
  941. .channels = 1,
  942. .buswidth = 4,
  943. };
  944. static struct qcom_icc_node qns_gem_noc_snoc = {
  945. .name = "qns_gem_noc_snoc",
  946. .channels = 1,
  947. .buswidth = 8,
  948. .num_links = 1,
  949. .link_nodes = { &qnm_gemnoc },
  950. };
  951. static struct qcom_icc_node qns_llcc = {
  952. .name = "qns_llcc",
  953. .channels = 2,
  954. .buswidth = 16,
  955. .num_links = 1,
  956. .link_nodes = { &llcc_mc },
  957. };
  958. static struct qcom_icc_node srvc_gemnoc = {
  959. .name = "srvc_gemnoc",
  960. .channels = 1,
  961. .buswidth = 4,
  962. };
  963. static struct qcom_icc_node ebi = {
  964. .name = "ebi",
  965. .channels = 2,
  966. .buswidth = 4,
  967. };
  968. static struct qcom_icc_node qns2_mem_noc = {
  969. .name = "qns2_mem_noc",
  970. .channels = 1,
  971. .buswidth = 32,
  972. .num_links = 1,
  973. .link_nodes = { &qnm_mnoc_sf },
  974. };
  975. static struct qcom_icc_node qns_mem_noc_hf = {
  976. .name = "qns_mem_noc_hf",
  977. .channels = 2,
  978. .buswidth = 32,
  979. .num_links = 1,
  980. .link_nodes = { &qnm_mnoc_hf },
  981. };
  982. static struct qcom_icc_node srvc_mnoc = {
  983. .name = "srvc_mnoc",
  984. .channels = 1,
  985. .buswidth = 4,
  986. };
  987. static struct qcom_icc_node qhs_apss = {
  988. .name = "qhs_apss",
  989. .channels = 1,
  990. .buswidth = 8,
  991. };
  992. static struct qcom_icc_node qns_cnoc = {
  993. .name = "qns_cnoc",
  994. .channels = 1,
  995. .buswidth = 8,
  996. .num_links = 1,
  997. .link_nodes = { &qnm_snoc },
  998. };
  999. static struct qcom_icc_node qns_gemnoc_gc = {
  1000. .name = "qns_gemnoc_gc",
  1001. .channels = 1,
  1002. .buswidth = 8,
  1003. .num_links = 1,
  1004. .link_nodes = { &qnm_snoc_gc },
  1005. };
  1006. static struct qcom_icc_node qns_gemnoc_sf = {
  1007. .name = "qns_gemnoc_sf",
  1008. .channels = 1,
  1009. .buswidth = 16,
  1010. .num_links = 1,
  1011. .link_nodes = { &qnm_snoc_sf },
  1012. };
  1013. static struct qcom_icc_node qxs_imem = {
  1014. .name = "qxs_imem",
  1015. .channels = 1,
  1016. .buswidth = 8,
  1017. };
  1018. static struct qcom_icc_node qxs_pimem = {
  1019. .name = "qxs_pimem",
  1020. .channels = 1,
  1021. .buswidth = 8,
  1022. };
  1023. static struct qcom_icc_node srvc_snoc = {
  1024. .name = "srvc_snoc",
  1025. .channels = 1,
  1026. .buswidth = 4,
  1027. };
  1028. static struct qcom_icc_node xs_qdss_stm = {
  1029. .name = "xs_qdss_stm",
  1030. .channels = 1,
  1031. .buswidth = 4,
  1032. };
  1033. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1034. .name = "xs_sys_tcu_cfg",
  1035. .channels = 1,
  1036. .buswidth = 8,
  1037. };
  1038. static struct qcom_icc_bcm bcm_acv = {
  1039. .name = "ACV",
  1040. .enable_mask = BIT(3),
  1041. .keepalive = false,
  1042. .num_nodes = 1,
  1043. .nodes = { &ebi },
  1044. };
  1045. static struct qcom_icc_bcm bcm_mc0 = {
  1046. .name = "MC0",
  1047. .keepalive = true,
  1048. .num_nodes = 1,
  1049. .nodes = { &ebi },
  1050. };
  1051. static struct qcom_icc_bcm bcm_sh0 = {
  1052. .name = "SH0",
  1053. .keepalive = true,
  1054. .num_nodes = 1,
  1055. .nodes = { &qns_llcc },
  1056. };
  1057. static struct qcom_icc_bcm bcm_mm0 = {
  1058. .name = "MM0",
  1059. .keepalive = true,
  1060. .num_nodes = 1,
  1061. .nodes = { &qns_mem_noc_hf },
  1062. };
  1063. static struct qcom_icc_bcm bcm_mm1 = {
  1064. .name = "MM1",
  1065. .keepalive = true,
  1066. .num_nodes = 8,
  1067. .nodes = { &qxm_camnoc_hf0_uncomp,
  1068. &qxm_camnoc_rt_uncomp,
  1069. &qxm_camnoc_sf_uncomp,
  1070. &qxm_camnoc_nrt_uncomp,
  1071. &qxm_camnoc_hf,
  1072. &qxm_camnoc_rt,
  1073. &qxm_mdp0,
  1074. &qxm_mdp1
  1075. },
  1076. };
  1077. static struct qcom_icc_bcm bcm_sh2 = {
  1078. .name = "SH2",
  1079. .keepalive = false,
  1080. .num_nodes = 1,
  1081. .nodes = { &qns_gem_noc_snoc },
  1082. };
  1083. static struct qcom_icc_bcm bcm_sh3 = {
  1084. .name = "SH3",
  1085. .keepalive = false,
  1086. .num_nodes = 1,
  1087. .nodes = { &acm_sys_tcu },
  1088. };
  1089. static struct qcom_icc_bcm bcm_mm2 = {
  1090. .name = "MM2",
  1091. .keepalive = false,
  1092. .num_nodes = 2,
  1093. .nodes = { &qxm_camnoc_nrt,
  1094. &qns2_mem_noc
  1095. },
  1096. };
  1097. static struct qcom_icc_bcm bcm_mm3 = {
  1098. .name = "MM3",
  1099. .keepalive = false,
  1100. .num_nodes = 5,
  1101. .nodes = { &qxm_camnoc_sf,
  1102. &qxm_rot,
  1103. &qxm_venus0,
  1104. &qxm_venus1,
  1105. &qxm_venus_arm9
  1106. },
  1107. };
  1108. static struct qcom_icc_bcm bcm_sh5 = {
  1109. .name = "SH5",
  1110. .keepalive = false,
  1111. .num_nodes = 1,
  1112. .nodes = { &acm_apps },
  1113. };
  1114. static struct qcom_icc_bcm bcm_sn0 = {
  1115. .name = "SN0",
  1116. .keepalive = true,
  1117. .num_nodes = 1,
  1118. .nodes = { &qns_gemnoc_sf },
  1119. };
  1120. static struct qcom_icc_bcm bcm_sh8 = {
  1121. .name = "SH8",
  1122. .keepalive = false,
  1123. .num_nodes = 1,
  1124. .nodes = { &qns_cdsp_gemnoc },
  1125. };
  1126. static struct qcom_icc_bcm bcm_sh10 = {
  1127. .name = "SH10",
  1128. .keepalive = false,
  1129. .num_nodes = 1,
  1130. .nodes = { &qnm_npu },
  1131. };
  1132. static struct qcom_icc_bcm bcm_ce0 = {
  1133. .name = "CE0",
  1134. .keepalive = false,
  1135. .num_nodes = 1,
  1136. .nodes = { &qxm_crypto },
  1137. };
  1138. static struct qcom_icc_bcm bcm_cn0 = {
  1139. .name = "CN0",
  1140. .keepalive = true,
  1141. .num_nodes = 54,
  1142. .nodes = { &qhm_tsif,
  1143. &xm_emmc,
  1144. &xm_sdc2,
  1145. &xm_sdc4,
  1146. &qhm_spdm,
  1147. &qnm_snoc,
  1148. &qhs_a1_noc_cfg,
  1149. &qhs_a2_noc_cfg,
  1150. &qhs_ahb2phy_north,
  1151. &qhs_ahb2phy_south,
  1152. &qhs_ahb2phy_west,
  1153. &qhs_aop,
  1154. &qhs_aoss,
  1155. &qhs_camera_cfg,
  1156. &qhs_camera_nrt_thrott_cfg,
  1157. &qhs_camera_rt_throttle_cfg,
  1158. &qhs_clk_ctl,
  1159. &qhs_compute_dsp_cfg,
  1160. &qhs_cpr_cx,
  1161. &qhs_cpr_mx,
  1162. &qhs_crypto0_cfg,
  1163. &qhs_ddrss_cfg,
  1164. &qhs_display_cfg,
  1165. &qhs_display_throttle_cfg,
  1166. &qhs_emmc_cfg,
  1167. &qhs_glm,
  1168. &qhs_gpuss_cfg,
  1169. &qhs_imem_cfg,
  1170. &qhs_ipa,
  1171. &qhs_mnoc_cfg,
  1172. &qhs_pcie_cfg,
  1173. &qhs_pdm,
  1174. &qhs_pimem_cfg,
  1175. &qhs_prng,
  1176. &qhs_qdss_cfg,
  1177. &qhs_qupv3_center,
  1178. &qhs_qupv3_north,
  1179. &qhs_sdc2,
  1180. &qhs_sdc4,
  1181. &qhs_snoc_cfg,
  1182. &qhs_spdm,
  1183. &qhs_tcsr,
  1184. &qhs_tlmm_north,
  1185. &qhs_tlmm_south,
  1186. &qhs_tlmm_west,
  1187. &qhs_tsif,
  1188. &qhs_ufs_mem_cfg,
  1189. &qhs_usb3_0,
  1190. &qhs_venus_cfg,
  1191. &qhs_venus_cvp_throttle_cfg,
  1192. &qhs_venus_throttle_cfg,
  1193. &qhs_vsense_ctrl_cfg,
  1194. &qns_cnoc_a2noc,
  1195. &srvc_cnoc
  1196. },
  1197. };
  1198. static struct qcom_icc_bcm bcm_qup0 = {
  1199. .name = "QUP0",
  1200. .keepalive = false,
  1201. .num_nodes = 2,
  1202. .nodes = { &qhm_qup_center,
  1203. &qhm_qup_north
  1204. },
  1205. };
  1206. static struct qcom_icc_bcm bcm_sn1 = {
  1207. .name = "SN1",
  1208. .keepalive = false,
  1209. .num_nodes = 1,
  1210. .nodes = { &qxs_imem },
  1211. };
  1212. static struct qcom_icc_bcm bcm_sn2 = {
  1213. .name = "SN2",
  1214. .keepalive = false,
  1215. .num_nodes = 1,
  1216. .nodes = { &qns_gemnoc_gc },
  1217. };
  1218. static struct qcom_icc_bcm bcm_sn4 = {
  1219. .name = "SN4",
  1220. .keepalive = false,
  1221. .num_nodes = 1,
  1222. .nodes = { &qxs_pimem },
  1223. };
  1224. static struct qcom_icc_bcm bcm_sn9 = {
  1225. .name = "SN9",
  1226. .keepalive = false,
  1227. .num_nodes = 2,
  1228. .nodes = { &qnm_aggre1_noc,
  1229. &qns_a1noc_snoc
  1230. },
  1231. };
  1232. static struct qcom_icc_bcm bcm_sn11 = {
  1233. .name = "SN11",
  1234. .keepalive = false,
  1235. .num_nodes = 2,
  1236. .nodes = { &qnm_aggre2_noc,
  1237. &qns_a2noc_snoc
  1238. },
  1239. };
  1240. static struct qcom_icc_bcm bcm_sn12 = {
  1241. .name = "SN12",
  1242. .keepalive = false,
  1243. .num_nodes = 2,
  1244. .nodes = { &qxm_pimem,
  1245. &xm_gic
  1246. },
  1247. };
  1248. static struct qcom_icc_bcm bcm_sn14 = {
  1249. .name = "SN14",
  1250. .keepalive = false,
  1251. .num_nodes = 1,
  1252. .nodes = { &qns_pcie_gemnoc },
  1253. };
  1254. static struct qcom_icc_bcm bcm_sn15 = {
  1255. .name = "SN15",
  1256. .keepalive = false,
  1257. .num_nodes = 1,
  1258. .nodes = { &qnm_gemnoc },
  1259. };
  1260. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1261. &bcm_cn0,
  1262. &bcm_qup0,
  1263. &bcm_sn9,
  1264. };
  1265. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1266. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  1267. [MASTER_QUP_0] = &qhm_qup_center,
  1268. [MASTER_TSIF] = &qhm_tsif,
  1269. [MASTER_EMMC] = &xm_emmc,
  1270. [MASTER_SDCC_2] = &xm_sdc2,
  1271. [MASTER_SDCC_4] = &xm_sdc4,
  1272. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1273. [A1NOC_SNOC_SLV] = &qns_a1noc_snoc,
  1274. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1275. };
  1276. static const struct qcom_icc_desc sm7150_aggre1_noc = {
  1277. .nodes = aggre1_noc_nodes,
  1278. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1279. .bcms = aggre1_noc_bcms,
  1280. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1281. };
  1282. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1283. &bcm_ce0,
  1284. &bcm_qup0,
  1285. &bcm_sn11,
  1286. &bcm_sn14,
  1287. };
  1288. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1289. [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg,
  1290. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1291. [MASTER_QUP_1] = &qhm_qup_north,
  1292. [MASTER_CNOC_A2NOC] = &qnm_cnoc,
  1293. [MASTER_CRYPTO_CORE_0] = &qxm_crypto,
  1294. [MASTER_IPA] = &qxm_ipa,
  1295. [MASTER_PCIE] = &xm_pcie3_0,
  1296. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1297. [MASTER_USB3] = &xm_usb3_0,
  1298. [A2NOC_SNOC_SLV] = &qns_a2noc_snoc,
  1299. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_gemnoc,
  1300. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1301. };
  1302. static const struct qcom_icc_desc sm7150_aggre2_noc = {
  1303. .nodes = aggre2_noc_nodes,
  1304. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1305. .bcms = aggre2_noc_bcms,
  1306. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1307. };
  1308. static struct qcom_icc_bcm * const camnoc_virt_bcms[] = {
  1309. &bcm_mm1,
  1310. };
  1311. static struct qcom_icc_node * const camnoc_virt_nodes[] = {
  1312. [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp,
  1313. [MASTER_CAMNOC_RT_UNCOMP] = &qxm_camnoc_rt_uncomp,
  1314. [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp,
  1315. [MASTER_CAMNOC_NRT_UNCOMP] = &qxm_camnoc_nrt_uncomp,
  1316. [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
  1317. };
  1318. static const struct qcom_icc_desc sm7150_camnoc_virt = {
  1319. .nodes = camnoc_virt_nodes,
  1320. .num_nodes = ARRAY_SIZE(camnoc_virt_nodes),
  1321. .bcms = camnoc_virt_bcms,
  1322. .num_bcms = ARRAY_SIZE(camnoc_virt_bcms),
  1323. };
  1324. static struct qcom_icc_bcm * const compute_noc_bcms[] = {
  1325. &bcm_sh10,
  1326. &bcm_sh8,
  1327. };
  1328. static struct qcom_icc_node * const compute_noc_nodes[] = {
  1329. [MASTER_NPU] = &qnm_npu,
  1330. [SLAVE_CDSP_GEM_NOC] = &qns_cdsp_gemnoc,
  1331. };
  1332. static const struct qcom_icc_desc sm7150_compute_noc = {
  1333. .nodes = compute_noc_nodes,
  1334. .num_nodes = ARRAY_SIZE(compute_noc_nodes),
  1335. .bcms = compute_noc_bcms,
  1336. .num_bcms = ARRAY_SIZE(compute_noc_bcms),
  1337. };
  1338. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1339. &bcm_cn0,
  1340. };
  1341. static struct qcom_icc_node * const config_noc_nodes[] = {
  1342. [MASTER_SPDM] = &qhm_spdm,
  1343. [SNOC_CNOC_MAS] = &qnm_snoc,
  1344. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1345. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  1346. [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg,
  1347. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy_north,
  1348. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy_south,
  1349. [SLAVE_AHB2PHY_WEST] = &qhs_ahb2phy_west,
  1350. [SLAVE_AOP] = &qhs_aop,
  1351. [SLAVE_AOSS] = &qhs_aoss,
  1352. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1353. [SLAVE_CAMERA_NRT_THROTTLE_CFG] = &qhs_camera_nrt_thrott_cfg,
  1354. [SLAVE_CAMERA_RT_THROTTLE_CFG] = &qhs_camera_rt_throttle_cfg,
  1355. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1356. [SLAVE_CDSP_CFG] = &qhs_compute_dsp_cfg,
  1357. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1358. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1359. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1360. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  1361. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1362. [SLAVE_DISPLAY_THROTTLE_CFG] = &qhs_display_throttle_cfg,
  1363. [SLAVE_EMMC_CFG] = &qhs_emmc_cfg,
  1364. [SLAVE_GLM] = &qhs_glm,
  1365. [SLAVE_GRAPHICS_3D_CFG] = &qhs_gpuss_cfg,
  1366. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1367. [SLAVE_IPA_CFG] = &qhs_ipa,
  1368. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  1369. [SLAVE_PCIE_CFG] = &qhs_pcie_cfg,
  1370. [SLAVE_PDM] = &qhs_pdm,
  1371. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1372. [SLAVE_PRNG] = &qhs_prng,
  1373. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1374. [SLAVE_QUP_0] = &qhs_qupv3_center,
  1375. [SLAVE_QUP_1] = &qhs_qupv3_north,
  1376. [SLAVE_SDCC_2] = &qhs_sdc2,
  1377. [SLAVE_SDCC_4] = &qhs_sdc4,
  1378. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  1379. [SLAVE_SPDM_WRAPPER] = &qhs_spdm,
  1380. [SLAVE_TCSR] = &qhs_tcsr,
  1381. [SLAVE_TLMM_NORTH] = &qhs_tlmm_north,
  1382. [SLAVE_TLMM_SOUTH] = &qhs_tlmm_south,
  1383. [SLAVE_TLMM_WEST] = &qhs_tlmm_west,
  1384. [SLAVE_TSIF] = &qhs_tsif,
  1385. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1386. [SLAVE_USB3] = &qhs_usb3_0,
  1387. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1388. [SLAVE_VENUS_CVP_THROTTLE_CFG] = &qhs_venus_cvp_throttle_cfg,
  1389. [SLAVE_VENUS_THROTTLE_CFG] = &qhs_venus_throttle_cfg,
  1390. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1391. [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
  1392. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1393. };
  1394. static const struct qcom_icc_desc sm7150_config_noc = {
  1395. .nodes = config_noc_nodes,
  1396. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1397. .bcms = config_noc_bcms,
  1398. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1399. };
  1400. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1401. };
  1402. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1403. [MASTER_CNOC_DC_NOC] = &qhm_cnoc_dc_noc,
  1404. [SLAVE_GEM_NOC_CFG] = &qhs_gemnoc,
  1405. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1406. };
  1407. static const struct qcom_icc_desc sm7150_dc_noc = {
  1408. .nodes = dc_noc_nodes,
  1409. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1410. .bcms = dc_noc_bcms,
  1411. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1412. };
  1413. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1414. &bcm_sh0,
  1415. &bcm_sh2,
  1416. &bcm_sh3,
  1417. &bcm_sh5,
  1418. };
  1419. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1420. [MASTER_AMPSS_M0] = &acm_apps,
  1421. [MASTER_SYS_TCU] = &acm_sys_tcu,
  1422. [MASTER_GEM_NOC_CFG] = &qhm_gemnoc_cfg,
  1423. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  1424. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1425. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1426. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_pcie,
  1427. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1428. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1429. [MASTER_GRAPHICS_3D] = &qxm_gpu,
  1430. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1431. [SLAVE_GEM_NOC_SNOC] = &qns_gem_noc_snoc,
  1432. [SLAVE_LLCC] = &qns_llcc,
  1433. [SLAVE_SERVICE_GEM_NOC] = &srvc_gemnoc,
  1434. };
  1435. static const struct qcom_icc_desc sm7150_gem_noc = {
  1436. .nodes = gem_noc_nodes,
  1437. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1438. .bcms = gem_noc_bcms,
  1439. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1440. };
  1441. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1442. &bcm_acv,
  1443. &bcm_mc0,
  1444. };
  1445. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1446. [MASTER_LLCC] = &llcc_mc,
  1447. [SLAVE_EBI_CH0] = &ebi,
  1448. };
  1449. static const struct qcom_icc_desc sm7150_mc_virt = {
  1450. .nodes = mc_virt_nodes,
  1451. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1452. .bcms = mc_virt_bcms,
  1453. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1454. };
  1455. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1456. &bcm_mm0,
  1457. &bcm_mm1,
  1458. &bcm_mm2,
  1459. &bcm_mm3,
  1460. };
  1461. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1462. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  1463. [MASTER_CAMNOC_HF0] = &qxm_camnoc_hf,
  1464. [MASTER_CAMNOC_NRT] = &qxm_camnoc_nrt,
  1465. [MASTER_CAMNOC_RT] = &qxm_camnoc_rt,
  1466. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1467. [MASTER_MDP_PORT0] = &qxm_mdp0,
  1468. [MASTER_MDP_PORT1] = &qxm_mdp1,
  1469. [MASTER_ROTATOR] = &qxm_rot,
  1470. [MASTER_VIDEO_P0] = &qxm_venus0,
  1471. [MASTER_VIDEO_P1] = &qxm_venus1,
  1472. [MASTER_VIDEO_PROC] = &qxm_venus_arm9,
  1473. [SLAVE_MNOC_SF_MEM_NOC] = &qns2_mem_noc,
  1474. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1475. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1476. };
  1477. static const struct qcom_icc_desc sm7150_mmss_noc = {
  1478. .nodes = mmss_noc_nodes,
  1479. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1480. .bcms = mmss_noc_bcms,
  1481. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1482. };
  1483. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1484. &bcm_sn0,
  1485. &bcm_sn1,
  1486. &bcm_sn11,
  1487. &bcm_sn12,
  1488. &bcm_sn15,
  1489. &bcm_sn2,
  1490. &bcm_sn4,
  1491. &bcm_sn9,
  1492. };
  1493. static struct qcom_icc_node * const system_noc_nodes[] = {
  1494. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  1495. [A1NOC_SNOC_MAS] = &qnm_aggre1_noc,
  1496. [A2NOC_SNOC_MAS] = &qnm_aggre2_noc,
  1497. [MASTER_GEM_NOC_SNOC] = &qnm_gemnoc,
  1498. [MASTER_PIMEM] = &qxm_pimem,
  1499. [MASTER_GIC] = &xm_gic,
  1500. [SLAVE_APPSS] = &qhs_apss,
  1501. [SNOC_CNOC_SLV] = &qns_cnoc,
  1502. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1503. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1504. [SLAVE_OCIMEM] = &qxs_imem,
  1505. [SLAVE_PIMEM] = &qxs_pimem,
  1506. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1507. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1508. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1509. };
  1510. static const struct qcom_icc_desc sm7150_system_noc = {
  1511. .nodes = system_noc_nodes,
  1512. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1513. .bcms = system_noc_bcms,
  1514. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1515. };
  1516. static const struct of_device_id qnoc_of_match[] = {
  1517. { .compatible = "qcom,sm7150-aggre1-noc", .data = &sm7150_aggre1_noc },
  1518. { .compatible = "qcom,sm7150-aggre2-noc", .data = &sm7150_aggre2_noc },
  1519. { .compatible = "qcom,sm7150-camnoc-virt", .data = &sm7150_camnoc_virt },
  1520. { .compatible = "qcom,sm7150-compute-noc", .data = &sm7150_compute_noc },
  1521. { .compatible = "qcom,sm7150-config-noc", .data = &sm7150_config_noc },
  1522. { .compatible = "qcom,sm7150-dc-noc", .data = &sm7150_dc_noc },
  1523. { .compatible = "qcom,sm7150-gem-noc", .data = &sm7150_gem_noc },
  1524. { .compatible = "qcom,sm7150-mc-virt", .data = &sm7150_mc_virt },
  1525. { .compatible = "qcom,sm7150-mmss-noc", .data = &sm7150_mmss_noc },
  1526. { .compatible = "qcom,sm7150-system-noc", .data = &sm7150_system_noc },
  1527. { }
  1528. };
  1529. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1530. static struct platform_driver qnoc_driver = {
  1531. .probe = qcom_icc_rpmh_probe,
  1532. .remove = qcom_icc_rpmh_remove,
  1533. .driver = {
  1534. .name = "qnoc-sm7150",
  1535. .of_match_table = qnoc_of_match,
  1536. .sync_state = icc_sync_state,
  1537. },
  1538. };
  1539. static int __init qnoc_driver_init(void)
  1540. {
  1541. return platform_driver_register(&qnoc_driver);
  1542. }
  1543. core_initcall(qnoc_driver_init);
  1544. static void __exit qnoc_driver_exit(void)
  1545. {
  1546. platform_driver_unregister(&qnoc_driver);
  1547. }
  1548. module_exit(qnoc_driver_exit);
  1549. MODULE_DESCRIPTION("Qualcomm SM7150 NoC driver");
  1550. MODULE_LICENSE("GPL");