sdx75.c 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/module.h>
  10. #include <linux/of_platform.h>
  11. #include <dt-bindings/interconnect/qcom,sdx75.h>
  12. #include "bcm-voter.h"
  13. #include "icc-common.h"
  14. #include "icc-rpmh.h"
  15. #include "sdx75.h"
  16. static struct qcom_icc_node qpic_core_master = {
  17. .name = "qpic_core_master",
  18. .id = SDX75_MASTER_QPIC_CORE,
  19. .channels = 1,
  20. .buswidth = 4,
  21. .num_links = 1,
  22. .links = { SDX75_SLAVE_QPIC_CORE },
  23. };
  24. static struct qcom_icc_node qup0_core_master = {
  25. .name = "qup0_core_master",
  26. .id = SDX75_MASTER_QUP_CORE_0,
  27. .channels = 1,
  28. .buswidth = 4,
  29. .num_links = 1,
  30. .links = { SDX75_SLAVE_QUP_CORE_0 },
  31. };
  32. static struct qcom_icc_node qnm_cnoc = {
  33. .name = "qnm_cnoc",
  34. .id = SDX75_MASTER_CNOC_DC_NOC,
  35. .channels = 1,
  36. .buswidth = 4,
  37. .num_links = 4,
  38. .links = { SDX75_SLAVE_LAGG_CFG, SDX75_SLAVE_MCCC_MASTER,
  39. SDX75_SLAVE_GEM_NOC_CFG, SDX75_SLAVE_SNOOP_BWMON },
  40. };
  41. static struct qcom_icc_node alm_sys_tcu = {
  42. .name = "alm_sys_tcu",
  43. .id = SDX75_MASTER_SYS_TCU,
  44. .channels = 1,
  45. .buswidth = 8,
  46. .num_links = 2,
  47. .links = { SDX75_SLAVE_GEM_NOC_CNOC, SDX75_SLAVE_LLCC },
  48. };
  49. static struct qcom_icc_node chm_apps = {
  50. .name = "chm_apps",
  51. .id = SDX75_MASTER_APPSS_PROC,
  52. .channels = 1,
  53. .buswidth = 16,
  54. .num_links = 3,
  55. .links = { SDX75_SLAVE_GEM_NOC_CNOC, SDX75_SLAVE_LLCC,
  56. SDX75_SLAVE_MEM_NOC_PCIE_SNOC },
  57. };
  58. static struct qcom_icc_node qnm_gemnoc_cfg = {
  59. .name = "qnm_gemnoc_cfg",
  60. .id = SDX75_MASTER_GEM_NOC_CFG,
  61. .channels = 1,
  62. .buswidth = 4,
  63. .num_links = 1,
  64. .links = { SDX75_SLAVE_SERVICE_GEM_NOC },
  65. };
  66. static struct qcom_icc_node qnm_mdsp = {
  67. .name = "qnm_mdsp",
  68. .id = SDX75_MASTER_MSS_PROC,
  69. .channels = 1,
  70. .buswidth = 16,
  71. .num_links = 3,
  72. .links = { SDX75_SLAVE_GEM_NOC_CNOC, SDX75_SLAVE_LLCC,
  73. SDX75_SLAVE_MEM_NOC_PCIE_SNOC },
  74. };
  75. static struct qcom_icc_node qnm_pcie = {
  76. .name = "qnm_pcie",
  77. .id = SDX75_MASTER_ANOC_PCIE_GEM_NOC,
  78. .channels = 1,
  79. .buswidth = 16,
  80. .num_links = 2,
  81. .links = { SDX75_SLAVE_GEM_NOC_CNOC, SDX75_SLAVE_LLCC },
  82. };
  83. static struct qcom_icc_node qnm_snoc_sf = {
  84. .name = "qnm_snoc_sf",
  85. .id = SDX75_MASTER_SNOC_SF_MEM_NOC,
  86. .channels = 1,
  87. .buswidth = 16,
  88. .num_links = 3,
  89. .links = { SDX75_SLAVE_GEM_NOC_CNOC, SDX75_SLAVE_LLCC,
  90. SDX75_SLAVE_MEM_NOC_PCIE_SNOC },
  91. };
  92. static struct qcom_icc_node xm_gic = {
  93. .name = "xm_gic",
  94. .id = SDX75_MASTER_GIC,
  95. .channels = 1,
  96. .buswidth = 8,
  97. .num_links = 1,
  98. .links = { SDX75_SLAVE_LLCC },
  99. };
  100. static struct qcom_icc_node xm_ipa2pcie = {
  101. .name = "xm_ipa2pcie",
  102. .id = SDX75_MASTER_IPA_PCIE,
  103. .channels = 1,
  104. .buswidth = 8,
  105. .num_links = 1,
  106. .links = { SDX75_SLAVE_MEM_NOC_PCIE_SNOC },
  107. };
  108. static struct qcom_icc_node llcc_mc = {
  109. .name = "llcc_mc",
  110. .id = SDX75_MASTER_LLCC,
  111. .channels = 1,
  112. .buswidth = 4,
  113. .num_links = 1,
  114. .links = { SDX75_SLAVE_EBI1 },
  115. };
  116. static struct qcom_icc_node xm_pcie3_0 = {
  117. .name = "xm_pcie3_0",
  118. .id = SDX75_MASTER_PCIE_0,
  119. .channels = 1,
  120. .buswidth = 8,
  121. .num_links = 1,
  122. .links = { SDX75_SLAVE_ANOC_PCIE_GEM_NOC },
  123. };
  124. static struct qcom_icc_node xm_pcie3_1 = {
  125. .name = "xm_pcie3_1",
  126. .id = SDX75_MASTER_PCIE_1,
  127. .channels = 1,
  128. .buswidth = 8,
  129. .num_links = 1,
  130. .links = { SDX75_SLAVE_ANOC_PCIE_GEM_NOC },
  131. };
  132. static struct qcom_icc_node xm_pcie3_2 = {
  133. .name = "xm_pcie3_2",
  134. .id = SDX75_MASTER_PCIE_2,
  135. .channels = 1,
  136. .buswidth = 8,
  137. .num_links = 1,
  138. .links = { SDX75_SLAVE_ANOC_PCIE_GEM_NOC },
  139. };
  140. static struct qcom_icc_node qhm_audio = {
  141. .name = "qhm_audio",
  142. .id = SDX75_MASTER_AUDIO,
  143. .channels = 1,
  144. .buswidth = 4,
  145. .num_links = 1,
  146. .links = { SDX75_SLAVE_SNOC_GEM_NOC_SF },
  147. };
  148. static struct qcom_icc_node qhm_gic = {
  149. .name = "qhm_gic",
  150. .id = SDX75_MASTER_GIC_AHB,
  151. .channels = 1,
  152. .buswidth = 4,
  153. .num_links = 1,
  154. .links = { SDX75_SLAVE_SNOC_GEM_NOC_SF },
  155. };
  156. static struct qcom_icc_node qhm_pcie_rscc = {
  157. .name = "qhm_pcie_rscc",
  158. .id = SDX75_MASTER_PCIE_RSCC,
  159. .channels = 1,
  160. .buswidth = 4,
  161. .num_links = 31,
  162. .links = { SDX75_SLAVE_ETH0_CFG, SDX75_SLAVE_ETH1_CFG,
  163. SDX75_SLAVE_AUDIO, SDX75_SLAVE_CLK_CTL,
  164. SDX75_SLAVE_CRYPTO_0_CFG, SDX75_SLAVE_IMEM_CFG,
  165. SDX75_SLAVE_IPA_CFG, SDX75_SLAVE_IPC_ROUTER_CFG,
  166. SDX75_SLAVE_CNOC_MSS, SDX75_SLAVE_ICBDI_MVMSS_CFG,
  167. SDX75_SLAVE_PCIE_0_CFG, SDX75_SLAVE_PCIE_1_CFG,
  168. SDX75_SLAVE_PCIE_2_CFG, SDX75_SLAVE_PDM,
  169. SDX75_SLAVE_PRNG, SDX75_SLAVE_QDSS_CFG,
  170. SDX75_SLAVE_QPIC, SDX75_SLAVE_QUP_0,
  171. SDX75_SLAVE_SDCC_1, SDX75_SLAVE_SDCC_4,
  172. SDX75_SLAVE_SPMI_VGI_COEX, SDX75_SLAVE_TCSR,
  173. SDX75_SLAVE_TLMM, SDX75_SLAVE_USB3,
  174. SDX75_SLAVE_USB3_PHY_CFG, SDX75_SLAVE_DDRSS_CFG,
  175. SDX75_SLAVE_SNOC_CFG, SDX75_SLAVE_PCIE_ANOC_CFG,
  176. SDX75_SLAVE_IMEM, SDX75_SLAVE_QDSS_STM,
  177. SDX75_SLAVE_TCU },
  178. };
  179. static struct qcom_icc_node qhm_qdss_bam = {
  180. .name = "qhm_qdss_bam",
  181. .id = SDX75_MASTER_QDSS_BAM,
  182. .channels = 1,
  183. .buswidth = 4,
  184. .num_links = 1,
  185. .links = { SDX75_SLAVE_A1NOC_CFG },
  186. };
  187. static struct qcom_icc_node qhm_qpic = {
  188. .name = "qhm_qpic",
  189. .id = SDX75_MASTER_QPIC,
  190. .channels = 1,
  191. .buswidth = 4,
  192. .num_links = 1,
  193. .links = { SDX75_SLAVE_A1NOC_CFG },
  194. };
  195. static struct qcom_icc_node qhm_qup0 = {
  196. .name = "qhm_qup0",
  197. .id = SDX75_MASTER_QUP_0,
  198. .channels = 1,
  199. .buswidth = 4,
  200. .num_links = 1,
  201. .links = { SDX75_SLAVE_A1NOC_CFG },
  202. };
  203. static struct qcom_icc_node qnm_aggre_noc = {
  204. .name = "qnm_aggre_noc",
  205. .id = SDX75_MASTER_ANOC_SNOC,
  206. .channels = 1,
  207. .buswidth = 8,
  208. .num_links = 1,
  209. .links = { SDX75_SLAVE_SNOC_GEM_NOC_SF },
  210. };
  211. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  212. .name = "qnm_gemnoc_cnoc",
  213. .id = SDX75_MASTER_GEM_NOC_CNOC,
  214. .channels = 1,
  215. .buswidth = 8,
  216. .num_links = 32,
  217. .links = { SDX75_SLAVE_ETH0_CFG, SDX75_SLAVE_ETH1_CFG,
  218. SDX75_SLAVE_AUDIO, SDX75_SLAVE_CLK_CTL,
  219. SDX75_SLAVE_CRYPTO_0_CFG, SDX75_SLAVE_IMEM_CFG,
  220. SDX75_SLAVE_IPA_CFG, SDX75_SLAVE_IPC_ROUTER_CFG,
  221. SDX75_SLAVE_CNOC_MSS, SDX75_SLAVE_ICBDI_MVMSS_CFG,
  222. SDX75_SLAVE_PCIE_0_CFG, SDX75_SLAVE_PCIE_1_CFG,
  223. SDX75_SLAVE_PCIE_2_CFG, SDX75_SLAVE_PCIE_RSC_CFG,
  224. SDX75_SLAVE_PDM, SDX75_SLAVE_PRNG,
  225. SDX75_SLAVE_QDSS_CFG, SDX75_SLAVE_QPIC,
  226. SDX75_SLAVE_QUP_0, SDX75_SLAVE_SDCC_1,
  227. SDX75_SLAVE_SDCC_4, SDX75_SLAVE_SPMI_VGI_COEX,
  228. SDX75_SLAVE_TCSR, SDX75_SLAVE_TLMM,
  229. SDX75_SLAVE_USB3, SDX75_SLAVE_USB3_PHY_CFG,
  230. SDX75_SLAVE_DDRSS_CFG, SDX75_SLAVE_SNOC_CFG,
  231. SDX75_SLAVE_PCIE_ANOC_CFG, SDX75_SLAVE_IMEM,
  232. SDX75_SLAVE_QDSS_STM, SDX75_SLAVE_TCU },
  233. };
  234. static struct qcom_icc_node qnm_gemnoc_pcie = {
  235. .name = "qnm_gemnoc_pcie",
  236. .id = SDX75_MASTER_GEM_NOC_PCIE_SNOC,
  237. .channels = 1,
  238. .buswidth = 16,
  239. .num_links = 3,
  240. .links = { SDX75_SLAVE_PCIE_0, SDX75_SLAVE_PCIE_1,
  241. SDX75_SLAVE_PCIE_2 },
  242. };
  243. static struct qcom_icc_node qnm_system_noc_cfg = {
  244. .name = "qnm_system_noc_cfg",
  245. .id = SDX75_MASTER_SNOC_CFG,
  246. .channels = 1,
  247. .buswidth = 4,
  248. .num_links = 1,
  249. .links = { SDX75_SLAVE_SERVICE_SNOC },
  250. };
  251. static struct qcom_icc_node qnm_system_noc_pcie_cfg = {
  252. .name = "qnm_system_noc_pcie_cfg",
  253. .id = SDX75_MASTER_PCIE_ANOC_CFG,
  254. .channels = 1,
  255. .buswidth = 4,
  256. .num_links = 1,
  257. .links = { SDX75_SLAVE_SERVICE_PCIE_ANOC },
  258. };
  259. static struct qcom_icc_node qxm_crypto = {
  260. .name = "qxm_crypto",
  261. .id = SDX75_MASTER_CRYPTO,
  262. .channels = 1,
  263. .buswidth = 8,
  264. .num_links = 1,
  265. .links = { SDX75_SLAVE_A1NOC_CFG },
  266. };
  267. static struct qcom_icc_node qxm_ipa = {
  268. .name = "qxm_ipa",
  269. .id = SDX75_MASTER_IPA,
  270. .channels = 1,
  271. .buswidth = 8,
  272. .num_links = 1,
  273. .links = { SDX75_SLAVE_SNOC_GEM_NOC_SF },
  274. };
  275. static struct qcom_icc_node qxm_mvmss = {
  276. .name = "qxm_mvmss",
  277. .id = SDX75_MASTER_MVMSS,
  278. .channels = 1,
  279. .buswidth = 8,
  280. .num_links = 1,
  281. .links = { SDX75_SLAVE_A1NOC_CFG },
  282. };
  283. static struct qcom_icc_node xm_emac_0 = {
  284. .name = "xm_emac_0",
  285. .id = SDX75_MASTER_EMAC_0,
  286. .channels = 1,
  287. .buswidth = 8,
  288. .num_links = 1,
  289. .links = { SDX75_SLAVE_A1NOC_CFG },
  290. };
  291. static struct qcom_icc_node xm_emac_1 = {
  292. .name = "xm_emac_1",
  293. .id = SDX75_MASTER_EMAC_1,
  294. .channels = 1,
  295. .buswidth = 8,
  296. .num_links = 1,
  297. .links = { SDX75_SLAVE_A1NOC_CFG },
  298. };
  299. static struct qcom_icc_node xm_qdss_etr0 = {
  300. .name = "xm_qdss_etr0",
  301. .id = SDX75_MASTER_QDSS_ETR,
  302. .channels = 1,
  303. .buswidth = 8,
  304. .num_links = 1,
  305. .links = { SDX75_SLAVE_A1NOC_CFG },
  306. };
  307. static struct qcom_icc_node xm_qdss_etr1 = {
  308. .name = "xm_qdss_etr1",
  309. .id = SDX75_MASTER_QDSS_ETR_1,
  310. .channels = 1,
  311. .buswidth = 8,
  312. .num_links = 1,
  313. .links = { SDX75_SLAVE_A1NOC_CFG },
  314. };
  315. static struct qcom_icc_node xm_sdc1 = {
  316. .name = "xm_sdc1",
  317. .id = SDX75_MASTER_SDCC_1,
  318. .channels = 1,
  319. .buswidth = 8,
  320. .num_links = 1,
  321. .links = { SDX75_SLAVE_A1NOC_CFG },
  322. };
  323. static struct qcom_icc_node xm_sdc4 = {
  324. .name = "xm_sdc4",
  325. .id = SDX75_MASTER_SDCC_4,
  326. .channels = 1,
  327. .buswidth = 8,
  328. .num_links = 1,
  329. .links = { SDX75_SLAVE_A1NOC_CFG },
  330. };
  331. static struct qcom_icc_node xm_usb3 = {
  332. .name = "xm_usb3",
  333. .id = SDX75_MASTER_USB3_0,
  334. .channels = 1,
  335. .buswidth = 8,
  336. .num_links = 1,
  337. .links = { SDX75_SLAVE_A1NOC_CFG },
  338. };
  339. static struct qcom_icc_node qpic_core_slave = {
  340. .name = "qpic_core_slave",
  341. .id = SDX75_SLAVE_QPIC_CORE,
  342. .channels = 1,
  343. .buswidth = 4,
  344. .num_links = 0,
  345. };
  346. static struct qcom_icc_node qup0_core_slave = {
  347. .name = "qup0_core_slave",
  348. .id = SDX75_SLAVE_QUP_CORE_0,
  349. .channels = 1,
  350. .buswidth = 4,
  351. .num_links = 0,
  352. };
  353. static struct qcom_icc_node qhs_lagg = {
  354. .name = "qhs_lagg",
  355. .id = SDX75_SLAVE_LAGG_CFG,
  356. .channels = 1,
  357. .buswidth = 4,
  358. .num_links = 0,
  359. };
  360. static struct qcom_icc_node qhs_mccc_master = {
  361. .name = "qhs_mccc_master",
  362. .id = SDX75_SLAVE_MCCC_MASTER,
  363. .channels = 1,
  364. .buswidth = 4,
  365. .num_links = 0,
  366. };
  367. static struct qcom_icc_node qns_gemnoc = {
  368. .name = "qns_gemnoc",
  369. .id = SDX75_SLAVE_GEM_NOC_CFG,
  370. .channels = 1,
  371. .buswidth = 4,
  372. .num_links = 0,
  373. };
  374. static struct qcom_icc_node qss_snoop_bwmon = {
  375. .name = "qss_snoop_bwmon",
  376. .id = SDX75_SLAVE_SNOOP_BWMON,
  377. .channels = 1,
  378. .buswidth = 4,
  379. .num_links = 0,
  380. };
  381. static struct qcom_icc_node qns_gemnoc_cnoc = {
  382. .name = "qns_gemnoc_cnoc",
  383. .id = SDX75_SLAVE_GEM_NOC_CNOC,
  384. .channels = 1,
  385. .buswidth = 8,
  386. .num_links = 1,
  387. .links = { SDX75_MASTER_GEM_NOC_CNOC },
  388. };
  389. static struct qcom_icc_node qns_llcc = {
  390. .name = "qns_llcc",
  391. .id = SDX75_SLAVE_LLCC,
  392. .channels = 1,
  393. .buswidth = 16,
  394. .num_links = 1,
  395. .links = { SDX75_MASTER_LLCC },
  396. };
  397. static struct qcom_icc_node qns_pcie = {
  398. .name = "qns_pcie",
  399. .id = SDX75_SLAVE_MEM_NOC_PCIE_SNOC,
  400. .channels = 1,
  401. .buswidth = 16,
  402. .num_links = 1,
  403. .links = { SDX75_MASTER_GEM_NOC_PCIE_SNOC },
  404. };
  405. static struct qcom_icc_node srvc_gemnoc = {
  406. .name = "srvc_gemnoc",
  407. .id = SDX75_SLAVE_SERVICE_GEM_NOC,
  408. .channels = 1,
  409. .buswidth = 4,
  410. .num_links = 0,
  411. };
  412. static struct qcom_icc_node ebi = {
  413. .name = "ebi",
  414. .id = SDX75_SLAVE_EBI1,
  415. .channels = 1,
  416. .buswidth = 4,
  417. .num_links = 0,
  418. };
  419. static struct qcom_icc_node qns_pcie_gemnoc = {
  420. .name = "qns_pcie_gemnoc",
  421. .id = SDX75_SLAVE_ANOC_PCIE_GEM_NOC,
  422. .channels = 1,
  423. .buswidth = 16,
  424. .num_links = 1,
  425. .links = { SDX75_MASTER_ANOC_PCIE_GEM_NOC },
  426. };
  427. static struct qcom_icc_node ps_eth0_cfg = {
  428. .name = "ps_eth0_cfg",
  429. .id = SDX75_SLAVE_ETH0_CFG,
  430. .channels = 1,
  431. .buswidth = 4,
  432. .num_links = 0,
  433. };
  434. static struct qcom_icc_node ps_eth1_cfg = {
  435. .name = "ps_eth1_cfg",
  436. .id = SDX75_SLAVE_ETH1_CFG,
  437. .channels = 1,
  438. .buswidth = 4,
  439. .num_links = 0,
  440. };
  441. static struct qcom_icc_node qhs_audio = {
  442. .name = "qhs_audio",
  443. .id = SDX75_SLAVE_AUDIO,
  444. .channels = 1,
  445. .buswidth = 4,
  446. .num_links = 0,
  447. };
  448. static struct qcom_icc_node qhs_clk_ctl = {
  449. .name = "qhs_clk_ctl",
  450. .id = SDX75_SLAVE_CLK_CTL,
  451. .channels = 1,
  452. .buswidth = 4,
  453. .num_links = 0,
  454. };
  455. static struct qcom_icc_node qhs_crypto_cfg = {
  456. .name = "qhs_crypto_cfg",
  457. .id = SDX75_SLAVE_CRYPTO_0_CFG,
  458. .channels = 1,
  459. .buswidth = 4,
  460. .num_links = 0,
  461. };
  462. static struct qcom_icc_node qhs_imem_cfg = {
  463. .name = "qhs_imem_cfg",
  464. .id = SDX75_SLAVE_IMEM_CFG,
  465. .channels = 1,
  466. .buswidth = 4,
  467. .num_links = 0,
  468. };
  469. static struct qcom_icc_node qhs_ipa = {
  470. .name = "qhs_ipa",
  471. .id = SDX75_SLAVE_IPA_CFG,
  472. .channels = 1,
  473. .buswidth = 4,
  474. .num_links = 0,
  475. };
  476. static struct qcom_icc_node qhs_ipc_router = {
  477. .name = "qhs_ipc_router",
  478. .id = SDX75_SLAVE_IPC_ROUTER_CFG,
  479. .channels = 1,
  480. .buswidth = 4,
  481. .num_links = 0,
  482. };
  483. static struct qcom_icc_node qhs_mss_cfg = {
  484. .name = "qhs_mss_cfg",
  485. .id = SDX75_SLAVE_CNOC_MSS,
  486. .channels = 1,
  487. .buswidth = 4,
  488. .num_links = 0,
  489. };
  490. static struct qcom_icc_node qhs_mvmss_cfg = {
  491. .name = "qhs_mvmss_cfg",
  492. .id = SDX75_SLAVE_ICBDI_MVMSS_CFG,
  493. .channels = 1,
  494. .buswidth = 4,
  495. .num_links = 0,
  496. };
  497. static struct qcom_icc_node qhs_pcie0_cfg = {
  498. .name = "qhs_pcie0_cfg",
  499. .id = SDX75_SLAVE_PCIE_0_CFG,
  500. .channels = 1,
  501. .buswidth = 4,
  502. .num_links = 0,
  503. };
  504. static struct qcom_icc_node qhs_pcie1_cfg = {
  505. .name = "qhs_pcie1_cfg",
  506. .id = SDX75_SLAVE_PCIE_1_CFG,
  507. .channels = 1,
  508. .buswidth = 4,
  509. .num_links = 0,
  510. };
  511. static struct qcom_icc_node qhs_pcie2_cfg = {
  512. .name = "qhs_pcie2_cfg",
  513. .id = SDX75_SLAVE_PCIE_2_CFG,
  514. .channels = 1,
  515. .buswidth = 4,
  516. .num_links = 0,
  517. };
  518. static struct qcom_icc_node qhs_pcie_rscc = {
  519. .name = "qhs_pcie_rscc",
  520. .id = SDX75_SLAVE_PCIE_RSC_CFG,
  521. .channels = 1,
  522. .buswidth = 4,
  523. .num_links = 0,
  524. };
  525. static struct qcom_icc_node qhs_pdm = {
  526. .name = "qhs_pdm",
  527. .id = SDX75_SLAVE_PDM,
  528. .channels = 1,
  529. .buswidth = 4,
  530. .num_links = 0,
  531. };
  532. static struct qcom_icc_node qhs_prng = {
  533. .name = "qhs_prng",
  534. .id = SDX75_SLAVE_PRNG,
  535. .channels = 1,
  536. .buswidth = 4,
  537. .num_links = 0,
  538. };
  539. static struct qcom_icc_node qhs_qdss_cfg = {
  540. .name = "qhs_qdss_cfg",
  541. .id = SDX75_SLAVE_QDSS_CFG,
  542. .channels = 1,
  543. .buswidth = 4,
  544. .num_links = 0,
  545. };
  546. static struct qcom_icc_node qhs_qpic = {
  547. .name = "qhs_qpic",
  548. .id = SDX75_SLAVE_QPIC,
  549. .channels = 1,
  550. .buswidth = 4,
  551. .num_links = 0,
  552. };
  553. static struct qcom_icc_node qhs_qup0 = {
  554. .name = "qhs_qup0",
  555. .id = SDX75_SLAVE_QUP_0,
  556. .channels = 1,
  557. .buswidth = 4,
  558. .num_links = 0,
  559. };
  560. static struct qcom_icc_node qhs_sdc1 = {
  561. .name = "qhs_sdc1",
  562. .id = SDX75_SLAVE_SDCC_1,
  563. .channels = 1,
  564. .buswidth = 4,
  565. .num_links = 0,
  566. };
  567. static struct qcom_icc_node qhs_sdc4 = {
  568. .name = "qhs_sdc4",
  569. .id = SDX75_SLAVE_SDCC_4,
  570. .channels = 1,
  571. .buswidth = 4,
  572. .num_links = 0,
  573. };
  574. static struct qcom_icc_node qhs_spmi_vgi_coex = {
  575. .name = "qhs_spmi_vgi_coex",
  576. .id = SDX75_SLAVE_SPMI_VGI_COEX,
  577. .channels = 1,
  578. .buswidth = 4,
  579. .num_links = 0,
  580. };
  581. static struct qcom_icc_node qhs_tcsr = {
  582. .name = "qhs_tcsr",
  583. .id = SDX75_SLAVE_TCSR,
  584. .channels = 1,
  585. .buswidth = 4,
  586. .num_links = 0,
  587. };
  588. static struct qcom_icc_node qhs_tlmm = {
  589. .name = "qhs_tlmm",
  590. .id = SDX75_SLAVE_TLMM,
  591. .channels = 1,
  592. .buswidth = 4,
  593. .num_links = 0,
  594. };
  595. static struct qcom_icc_node qhs_usb3 = {
  596. .name = "qhs_usb3",
  597. .id = SDX75_SLAVE_USB3,
  598. .channels = 1,
  599. .buswidth = 4,
  600. .num_links = 0,
  601. };
  602. static struct qcom_icc_node qhs_usb3_phy = {
  603. .name = "qhs_usb3_phy",
  604. .id = SDX75_SLAVE_USB3_PHY_CFG,
  605. .channels = 1,
  606. .buswidth = 4,
  607. .num_links = 0,
  608. };
  609. static struct qcom_icc_node qns_a1noc = {
  610. .name = "qns_a1noc",
  611. .id = SDX75_SLAVE_A1NOC_CFG,
  612. .channels = 1,
  613. .buswidth = 8,
  614. .num_links = 1,
  615. .links = { SDX75_MASTER_ANOC_SNOC },
  616. };
  617. static struct qcom_icc_node qns_ddrss_cfg = {
  618. .name = "qns_ddrss_cfg",
  619. .id = SDX75_SLAVE_DDRSS_CFG,
  620. .channels = 1,
  621. .buswidth = 4,
  622. .num_links = 1,
  623. .links = { SDX75_MASTER_CNOC_DC_NOC },
  624. };
  625. static struct qcom_icc_node qns_gemnoc_sf = {
  626. .name = "qns_gemnoc_sf",
  627. .id = SDX75_SLAVE_SNOC_GEM_NOC_SF,
  628. .channels = 1,
  629. .buswidth = 16,
  630. .num_links = 1,
  631. .links = { SDX75_MASTER_SNOC_SF_MEM_NOC },
  632. };
  633. static struct qcom_icc_node qns_system_noc_cfg = {
  634. .name = "qns_system_noc_cfg",
  635. .id = SDX75_SLAVE_SNOC_CFG,
  636. .channels = 1,
  637. .buswidth = 4,
  638. .num_links = 1,
  639. .links = { SDX75_MASTER_SNOC_CFG },
  640. };
  641. static struct qcom_icc_node qns_system_noc_pcie_cfg = {
  642. .name = "qns_system_noc_pcie_cfg",
  643. .id = SDX75_SLAVE_PCIE_ANOC_CFG,
  644. .channels = 1,
  645. .buswidth = 4,
  646. .num_links = 1,
  647. .links = { SDX75_MASTER_PCIE_ANOC_CFG },
  648. };
  649. static struct qcom_icc_node qxs_imem = {
  650. .name = "qxs_imem",
  651. .id = SDX75_SLAVE_IMEM,
  652. .channels = 1,
  653. .buswidth = 8,
  654. .num_links = 0,
  655. };
  656. static struct qcom_icc_node srvc_pcie_system_noc = {
  657. .name = "srvc_pcie_system_noc",
  658. .id = SDX75_SLAVE_SERVICE_PCIE_ANOC,
  659. .channels = 1,
  660. .buswidth = 4,
  661. .num_links = 0,
  662. };
  663. static struct qcom_icc_node srvc_system_noc = {
  664. .name = "srvc_system_noc",
  665. .id = SDX75_SLAVE_SERVICE_SNOC,
  666. .channels = 1,
  667. .buswidth = 4,
  668. .num_links = 0,
  669. };
  670. static struct qcom_icc_node xs_pcie_0 = {
  671. .name = "xs_pcie_0",
  672. .id = SDX75_SLAVE_PCIE_0,
  673. .channels = 1,
  674. .buswidth = 8,
  675. .num_links = 0,
  676. };
  677. static struct qcom_icc_node xs_pcie_1 = {
  678. .name = "xs_pcie_1",
  679. .id = SDX75_SLAVE_PCIE_1,
  680. .channels = 1,
  681. .buswidth = 8,
  682. .num_links = 0,
  683. };
  684. static struct qcom_icc_node xs_pcie_2 = {
  685. .name = "xs_pcie_2",
  686. .id = SDX75_SLAVE_PCIE_2,
  687. .channels = 1,
  688. .buswidth = 8,
  689. .num_links = 0,
  690. };
  691. static struct qcom_icc_node xs_qdss_stm = {
  692. .name = "xs_qdss_stm",
  693. .id = SDX75_SLAVE_QDSS_STM,
  694. .channels = 1,
  695. .buswidth = 4,
  696. .num_links = 0,
  697. };
  698. static struct qcom_icc_node xs_sys_tcu_cfg = {
  699. .name = "xs_sys_tcu_cfg",
  700. .id = SDX75_SLAVE_TCU,
  701. .channels = 1,
  702. .buswidth = 8,
  703. .num_links = 0,
  704. };
  705. static struct qcom_icc_bcm bcm_ce0 = {
  706. .name = "CE0",
  707. .num_nodes = 1,
  708. .nodes = { &qxm_crypto },
  709. };
  710. static struct qcom_icc_bcm bcm_cn0 = {
  711. .name = "CN0",
  712. .keepalive = true,
  713. .num_nodes = 39,
  714. .nodes = { &qhm_pcie_rscc, &qnm_gemnoc_cnoc,
  715. &ps_eth0_cfg, &ps_eth1_cfg,
  716. &qhs_audio, &qhs_clk_ctl,
  717. &qhs_crypto_cfg, &qhs_imem_cfg,
  718. &qhs_ipa, &qhs_ipc_router,
  719. &qhs_mss_cfg, &qhs_mvmss_cfg,
  720. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  721. &qhs_pcie2_cfg, &qhs_pcie_rscc,
  722. &qhs_pdm, &qhs_prng,
  723. &qhs_qdss_cfg, &qhs_qpic,
  724. &qhs_qup0, &qhs_sdc1,
  725. &qhs_sdc4, &qhs_spmi_vgi_coex,
  726. &qhs_tcsr, &qhs_tlmm,
  727. &qhs_usb3, &qhs_usb3_phy,
  728. &qns_ddrss_cfg, &qns_system_noc_cfg,
  729. &qns_system_noc_pcie_cfg, &qxs_imem,
  730. &srvc_pcie_system_noc, &srvc_system_noc,
  731. &xs_pcie_0, &xs_pcie_1,
  732. &xs_pcie_2, &xs_qdss_stm,
  733. &xs_sys_tcu_cfg },
  734. };
  735. static struct qcom_icc_bcm bcm_mc0 = {
  736. .name = "MC0",
  737. .keepalive = true,
  738. .num_nodes = 1,
  739. .nodes = { &ebi },
  740. };
  741. static struct qcom_icc_bcm bcm_qp0 = {
  742. .name = "QP0",
  743. .num_nodes = 1,
  744. .nodes = { &qpic_core_slave },
  745. };
  746. static struct qcom_icc_bcm bcm_qup0 = {
  747. .name = "QUP0",
  748. .keepalive = true,
  749. .vote_scale = 1,
  750. .num_nodes = 1,
  751. .nodes = { &qup0_core_slave },
  752. };
  753. static struct qcom_icc_bcm bcm_sh0 = {
  754. .name = "SH0",
  755. .keepalive = true,
  756. .num_nodes = 1,
  757. .nodes = { &qns_llcc },
  758. };
  759. static struct qcom_icc_bcm bcm_sh1 = {
  760. .name = "SH1",
  761. .num_nodes = 10,
  762. .nodes = { &alm_sys_tcu, &chm_apps,
  763. &qnm_gemnoc_cfg, &qnm_mdsp,
  764. &qnm_snoc_sf, &xm_gic,
  765. &xm_ipa2pcie, &qns_gemnoc_cnoc,
  766. &qns_pcie, &srvc_gemnoc },
  767. };
  768. static struct qcom_icc_bcm bcm_sn0 = {
  769. .name = "SN0",
  770. .keepalive = true,
  771. .num_nodes = 1,
  772. .nodes = { &qns_gemnoc_sf },
  773. };
  774. static struct qcom_icc_bcm bcm_sn1 = {
  775. .name = "SN1",
  776. .num_nodes = 21,
  777. .nodes = { &xm_pcie3_0, &xm_pcie3_1,
  778. &xm_pcie3_2, &qhm_audio,
  779. &qhm_gic, &qhm_qdss_bam,
  780. &qhm_qpic, &qhm_qup0,
  781. &qnm_gemnoc_pcie, &qnm_system_noc_cfg,
  782. &qnm_system_noc_pcie_cfg, &qxm_crypto,
  783. &qxm_ipa, &qxm_mvmss,
  784. &xm_emac_0, &xm_emac_1,
  785. &xm_qdss_etr0, &xm_qdss_etr1,
  786. &xm_sdc1, &xm_sdc4,
  787. &xm_usb3 },
  788. };
  789. static struct qcom_icc_bcm bcm_sn2 = {
  790. .name = "SN2",
  791. .num_nodes = 2,
  792. .nodes = { &qnm_aggre_noc, &qns_a1noc },
  793. };
  794. static struct qcom_icc_bcm bcm_sn4 = {
  795. .name = "SN4",
  796. .num_nodes = 2,
  797. .nodes = { &qnm_pcie, &qns_pcie_gemnoc },
  798. };
  799. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  800. &bcm_qp0,
  801. &bcm_qup0,
  802. };
  803. static struct qcom_icc_node * const clk_virt_nodes[] = {
  804. [MASTER_QPIC_CORE] = &qpic_core_master,
  805. [MASTER_QUP_CORE_0] = &qup0_core_master,
  806. [SLAVE_QPIC_CORE] = &qpic_core_slave,
  807. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  808. };
  809. static const struct qcom_icc_desc sdx75_clk_virt = {
  810. .nodes = clk_virt_nodes,
  811. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  812. .bcms = clk_virt_bcms,
  813. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  814. };
  815. static struct qcom_icc_node * const dc_noc_nodes[] = {
  816. [MASTER_CNOC_DC_NOC] = &qnm_cnoc,
  817. [SLAVE_LAGG_CFG] = &qhs_lagg,
  818. [SLAVE_MCCC_MASTER] = &qhs_mccc_master,
  819. [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
  820. [SLAVE_SNOOP_BWMON] = &qss_snoop_bwmon,
  821. };
  822. static const struct qcom_icc_desc sdx75_dc_noc = {
  823. .nodes = dc_noc_nodes,
  824. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  825. };
  826. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  827. &bcm_sh0,
  828. &bcm_sh1,
  829. &bcm_sn4,
  830. };
  831. static struct qcom_icc_node * const gem_noc_nodes[] = {
  832. [MASTER_SYS_TCU] = &alm_sys_tcu,
  833. [MASTER_APPSS_PROC] = &chm_apps,
  834. [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
  835. [MASTER_MSS_PROC] = &qnm_mdsp,
  836. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  837. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  838. [MASTER_GIC] = &xm_gic,
  839. [MASTER_IPA_PCIE] = &xm_ipa2pcie,
  840. [SLAVE_GEM_NOC_CNOC] = &qns_gemnoc_cnoc,
  841. [SLAVE_LLCC] = &qns_llcc,
  842. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  843. [SLAVE_SERVICE_GEM_NOC] = &srvc_gemnoc,
  844. };
  845. static const struct qcom_icc_desc sdx75_gem_noc = {
  846. .nodes = gem_noc_nodes,
  847. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  848. .bcms = gem_noc_bcms,
  849. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  850. };
  851. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  852. &bcm_mc0,
  853. };
  854. static struct qcom_icc_node * const mc_virt_nodes[] = {
  855. [MASTER_LLCC] = &llcc_mc,
  856. [SLAVE_EBI1] = &ebi,
  857. };
  858. static const struct qcom_icc_desc sdx75_mc_virt = {
  859. .nodes = mc_virt_nodes,
  860. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  861. .bcms = mc_virt_bcms,
  862. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  863. };
  864. static struct qcom_icc_bcm * const pcie_anoc_bcms[] = {
  865. &bcm_sn1,
  866. &bcm_sn4,
  867. };
  868. static struct qcom_icc_node * const pcie_anoc_nodes[] = {
  869. [MASTER_PCIE_0] = &xm_pcie3_0,
  870. [MASTER_PCIE_1] = &xm_pcie3_1,
  871. [MASTER_PCIE_2] = &xm_pcie3_2,
  872. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_gemnoc,
  873. };
  874. static const struct qcom_icc_desc sdx75_pcie_anoc = {
  875. .nodes = pcie_anoc_nodes,
  876. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  877. .bcms = pcie_anoc_bcms,
  878. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  879. };
  880. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  881. &bcm_ce0,
  882. &bcm_cn0,
  883. &bcm_sn0,
  884. &bcm_sn1,
  885. &bcm_sn2,
  886. };
  887. static struct qcom_icc_node * const system_noc_nodes[] = {
  888. [MASTER_AUDIO] = &qhm_audio,
  889. [MASTER_GIC_AHB] = &qhm_gic,
  890. [MASTER_PCIE_RSCC] = &qhm_pcie_rscc,
  891. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  892. [MASTER_QPIC] = &qhm_qpic,
  893. [MASTER_QUP_0] = &qhm_qup0,
  894. [MASTER_ANOC_SNOC] = &qnm_aggre_noc,
  895. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  896. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  897. [MASTER_SNOC_CFG] = &qnm_system_noc_cfg,
  898. [MASTER_PCIE_ANOC_CFG] = &qnm_system_noc_pcie_cfg,
  899. [MASTER_CRYPTO] = &qxm_crypto,
  900. [MASTER_IPA] = &qxm_ipa,
  901. [MASTER_MVMSS] = &qxm_mvmss,
  902. [MASTER_EMAC_0] = &xm_emac_0,
  903. [MASTER_EMAC_1] = &xm_emac_1,
  904. [MASTER_QDSS_ETR] = &xm_qdss_etr0,
  905. [MASTER_QDSS_ETR_1] = &xm_qdss_etr1,
  906. [MASTER_SDCC_1] = &xm_sdc1,
  907. [MASTER_SDCC_4] = &xm_sdc4,
  908. [MASTER_USB3_0] = &xm_usb3,
  909. [SLAVE_ETH0_CFG] = &ps_eth0_cfg,
  910. [SLAVE_ETH1_CFG] = &ps_eth1_cfg,
  911. [SLAVE_AUDIO] = &qhs_audio,
  912. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  913. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto_cfg,
  914. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  915. [SLAVE_IPA_CFG] = &qhs_ipa,
  916. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  917. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  918. [SLAVE_ICBDI_MVMSS_CFG] = &qhs_mvmss_cfg,
  919. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  920. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  921. [SLAVE_PCIE_2_CFG] = &qhs_pcie2_cfg,
  922. [SLAVE_PCIE_RSC_CFG] = &qhs_pcie_rscc,
  923. [SLAVE_PDM] = &qhs_pdm,
  924. [SLAVE_PRNG] = &qhs_prng,
  925. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  926. [SLAVE_QPIC] = &qhs_qpic,
  927. [SLAVE_QUP_0] = &qhs_qup0,
  928. [SLAVE_SDCC_1] = &qhs_sdc1,
  929. [SLAVE_SDCC_4] = &qhs_sdc4,
  930. [SLAVE_SPMI_VGI_COEX] = &qhs_spmi_vgi_coex,
  931. [SLAVE_TCSR] = &qhs_tcsr,
  932. [SLAVE_TLMM] = &qhs_tlmm,
  933. [SLAVE_USB3] = &qhs_usb3,
  934. [SLAVE_USB3_PHY_CFG] = &qhs_usb3_phy,
  935. [SLAVE_A1NOC_CFG] = &qns_a1noc,
  936. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  937. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  938. [SLAVE_SNOC_CFG] = &qns_system_noc_cfg,
  939. [SLAVE_PCIE_ANOC_CFG] = &qns_system_noc_pcie_cfg,
  940. [SLAVE_IMEM] = &qxs_imem,
  941. [SLAVE_SERVICE_PCIE_ANOC] = &srvc_pcie_system_noc,
  942. [SLAVE_SERVICE_SNOC] = &srvc_system_noc,
  943. [SLAVE_PCIE_0] = &xs_pcie_0,
  944. [SLAVE_PCIE_1] = &xs_pcie_1,
  945. [SLAVE_PCIE_2] = &xs_pcie_2,
  946. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  947. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  948. };
  949. static const struct qcom_icc_desc sdx75_system_noc = {
  950. .nodes = system_noc_nodes,
  951. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  952. .bcms = system_noc_bcms,
  953. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  954. };
  955. static const struct of_device_id qnoc_of_match[] = {
  956. { .compatible = "qcom,sdx75-clk-virt", .data = &sdx75_clk_virt },
  957. { .compatible = "qcom,sdx75-dc-noc", .data = &sdx75_dc_noc },
  958. { .compatible = "qcom,sdx75-gem-noc", .data = &sdx75_gem_noc },
  959. { .compatible = "qcom,sdx75-mc-virt", .data = &sdx75_mc_virt },
  960. { .compatible = "qcom,sdx75-pcie-anoc", .data = &sdx75_pcie_anoc },
  961. { .compatible = "qcom,sdx75-system-noc", .data = &sdx75_system_noc },
  962. { }
  963. };
  964. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  965. static struct platform_driver qnoc_driver = {
  966. .probe = qcom_icc_rpmh_probe,
  967. .remove_new = qcom_icc_rpmh_remove,
  968. .driver = {
  969. .name = "qnoc-sdx75",
  970. .of_match_table = qnoc_of_match,
  971. .sync_state = icc_sync_state,
  972. },
  973. };
  974. static int __init qnoc_driver_init(void)
  975. {
  976. return platform_driver_register(&qnoc_driver);
  977. }
  978. core_initcall(qnoc_driver_init);
  979. static void __exit qnoc_driver_exit(void)
  980. {
  981. platform_driver_unregister(&qnoc_driver);
  982. }
  983. module_exit(qnoc_driver_exit);
  984. MODULE_DESCRIPTION("SDX75 NoC driver");
  985. MODULE_LICENSE("GPL");