1 // SPDX-License-Identifier: GPL-2.0-only
3 * Qualcomm ADSP/SLPI Peripheral Image Loader for MSM8974 and MSM8996
5 * Copyright (C) 2016 Linaro Ltd
6 * Copyright (C) 2014 Sony Mobile Communications AB
7 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
10 #include <linux/clk.h>
11 #include <linux/delay.h>
12 #include <linux/firmware.h>
13 #include <linux/interrupt.h>
14 #include <linux/kernel.h>
15 #include <linux/module.h>
16 #include <linux/of_address.h>
17 #include <linux/of_device.h>
18 #include <linux/platform_device.h>
19 #include <linux/pm_domain.h>
20 #include <linux/pm_runtime.h>
21 #include <linux/qcom_scm.h>
22 #include <linux/regulator/consumer.h>
23 #include <linux/remoteproc.h>
24 #include <linux/soc/qcom/mdt_loader.h>
25 #include <linux/soc/qcom/smem.h>
26 #include <linux/soc/qcom/smem_state.h>
28 #include "qcom_common.h"
29 #include "qcom_pil_info.h"
30 #include "qcom_q6v5.h"
31 #include "remoteproc_internal.h"
33 #define ADSP_DECRYPT_SHUTDOWN_DELAY_MS 100
36 int crash_reason_smem;
37 const char *firmware_name;
39 unsigned int minidump_id;
42 bool decrypt_shutdown;
44 char **proxy_pd_names;
46 const char *load_state;
48 const char *sysmon_name;
56 struct qcom_q6v5 q6v5;
59 struct clk *aggre2_clk;
61 struct regulator *cx_supply;
62 struct regulator *px_supply;
64 struct device *proxy_pds[3];
69 unsigned int minidump_id;
70 int crash_reason_smem;
72 bool decrypt_shutdown;
73 const char *info_name;
75 struct completion start_done;
76 struct completion stop_done;
79 phys_addr_t mem_reloc;
83 struct qcom_rproc_glink glink_subdev;
84 struct qcom_rproc_subdev smd_subdev;
85 struct qcom_rproc_ssr ssr_subdev;
86 struct qcom_sysmon *sysmon;
88 struct qcom_scm_pas_metadata pas_metadata;
91 static void adsp_minidump(struct rproc *rproc)
93 struct qcom_adsp *adsp = rproc->priv;
95 if (rproc->dump_conf == RPROC_COREDUMP_DISABLED)
98 qcom_minidump(rproc, adsp->minidump_id);
101 static int adsp_pds_enable(struct qcom_adsp *adsp, struct device **pds,
107 for (i = 0; i < pd_count; i++) {
108 dev_pm_genpd_set_performance_state(pds[i], INT_MAX);
109 ret = pm_runtime_get_sync(pds[i]);
111 pm_runtime_put_noidle(pds[i]);
112 dev_pm_genpd_set_performance_state(pds[i], 0);
113 goto unroll_pd_votes;
120 for (i--; i >= 0; i--) {
121 dev_pm_genpd_set_performance_state(pds[i], 0);
122 pm_runtime_put(pds[i]);
128 static void adsp_pds_disable(struct qcom_adsp *adsp, struct device **pds,
133 for (i = 0; i < pd_count; i++) {
134 dev_pm_genpd_set_performance_state(pds[i], 0);
135 pm_runtime_put(pds[i]);
139 static int adsp_shutdown_poll_decrypt(struct qcom_adsp *adsp)
141 unsigned int retry_num = 50;
145 msleep(ADSP_DECRYPT_SHUTDOWN_DELAY_MS);
146 ret = qcom_scm_pas_shutdown(adsp->pas_id);
147 } while (ret == -EINVAL && --retry_num);
152 static int adsp_unprepare(struct rproc *rproc)
154 struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv;
157 * adsp_load() did pass pas_metadata to the SCM driver for storing
158 * metadata context. It might have been released already if
159 * auth_and_reset() was successful, but in other cases clean it up
162 qcom_scm_pas_metadata_release(&adsp->pas_metadata);
167 static int adsp_load(struct rproc *rproc, const struct firmware *fw)
169 struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv;
172 ret = qcom_mdt_pas_init(adsp->dev, fw, rproc->firmware, adsp->pas_id,
173 adsp->mem_phys, &adsp->pas_metadata);
177 ret = qcom_mdt_load_no_init(adsp->dev, fw, rproc->firmware, adsp->pas_id,
178 adsp->mem_region, adsp->mem_phys, adsp->mem_size,
183 qcom_pil_info_store(adsp->info_name, adsp->mem_phys, adsp->mem_size);
188 static int adsp_start(struct rproc *rproc)
190 struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv;
193 ret = qcom_q6v5_prepare(&adsp->q6v5);
197 ret = adsp_pds_enable(adsp, adsp->proxy_pds, adsp->proxy_pd_count);
201 ret = clk_prepare_enable(adsp->xo);
203 goto disable_proxy_pds;
205 ret = clk_prepare_enable(adsp->aggre2_clk);
209 if (adsp->cx_supply) {
210 ret = regulator_enable(adsp->cx_supply);
212 goto disable_aggre2_clk;
215 if (adsp->px_supply) {
216 ret = regulator_enable(adsp->px_supply);
218 goto disable_cx_supply;
221 ret = qcom_scm_pas_auth_and_reset(adsp->pas_id);
224 "failed to authenticate image and release reset\n");
225 goto disable_px_supply;
228 ret = qcom_q6v5_wait_for_start(&adsp->q6v5, msecs_to_jiffies(5000));
229 if (ret == -ETIMEDOUT) {
230 dev_err(adsp->dev, "start timed out\n");
231 qcom_scm_pas_shutdown(adsp->pas_id);
232 goto disable_px_supply;
235 qcom_scm_pas_metadata_release(&adsp->pas_metadata);
241 regulator_disable(adsp->px_supply);
244 regulator_disable(adsp->cx_supply);
246 clk_disable_unprepare(adsp->aggre2_clk);
248 clk_disable_unprepare(adsp->xo);
250 adsp_pds_disable(adsp, adsp->proxy_pds, adsp->proxy_pd_count);
252 qcom_q6v5_unprepare(&adsp->q6v5);
257 static void qcom_pas_handover(struct qcom_q6v5 *q6v5)
259 struct qcom_adsp *adsp = container_of(q6v5, struct qcom_adsp, q6v5);
262 regulator_disable(adsp->px_supply);
264 regulator_disable(adsp->cx_supply);
265 clk_disable_unprepare(adsp->aggre2_clk);
266 clk_disable_unprepare(adsp->xo);
267 adsp_pds_disable(adsp, adsp->proxy_pds, adsp->proxy_pd_count);
270 static int adsp_stop(struct rproc *rproc)
272 struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv;
276 ret = qcom_q6v5_request_stop(&adsp->q6v5, adsp->sysmon);
277 if (ret == -ETIMEDOUT)
278 dev_err(adsp->dev, "timed out on wait\n");
280 ret = qcom_scm_pas_shutdown(adsp->pas_id);
281 if (ret && adsp->decrypt_shutdown)
282 ret = adsp_shutdown_poll_decrypt(adsp);
285 dev_err(adsp->dev, "failed to shutdown: %d\n", ret);
287 handover = qcom_q6v5_unprepare(&adsp->q6v5);
289 qcom_pas_handover(&adsp->q6v5);
294 static void *adsp_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem)
296 struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv;
299 offset = da - adsp->mem_reloc;
300 if (offset < 0 || offset + len > adsp->mem_size)
306 return adsp->mem_region + offset;
309 static unsigned long adsp_panic(struct rproc *rproc)
311 struct qcom_adsp *adsp = (struct qcom_adsp *)rproc->priv;
313 return qcom_q6v5_panic(&adsp->q6v5);
316 static const struct rproc_ops adsp_ops = {
317 .unprepare = adsp_unprepare,
320 .da_to_va = adsp_da_to_va,
321 .parse_fw = qcom_register_dump_segments,
326 static const struct rproc_ops adsp_minidump_ops = {
327 .unprepare = adsp_unprepare,
330 .da_to_va = adsp_da_to_va,
333 .coredump = adsp_minidump,
336 static int adsp_init_clock(struct qcom_adsp *adsp)
340 adsp->xo = devm_clk_get(adsp->dev, "xo");
341 if (IS_ERR(adsp->xo)) {
342 ret = PTR_ERR(adsp->xo);
343 if (ret != -EPROBE_DEFER)
344 dev_err(adsp->dev, "failed to get xo clock");
348 if (adsp->has_aggre2_clk) {
349 adsp->aggre2_clk = devm_clk_get(adsp->dev, "aggre2");
350 if (IS_ERR(adsp->aggre2_clk)) {
351 ret = PTR_ERR(adsp->aggre2_clk);
352 if (ret != -EPROBE_DEFER)
354 "failed to get aggre2 clock");
362 static int adsp_init_regulator(struct qcom_adsp *adsp)
364 adsp->cx_supply = devm_regulator_get_optional(adsp->dev, "cx");
365 if (IS_ERR(adsp->cx_supply)) {
366 if (PTR_ERR(adsp->cx_supply) == -ENODEV)
367 adsp->cx_supply = NULL;
369 return PTR_ERR(adsp->cx_supply);
373 regulator_set_load(adsp->cx_supply, 100000);
375 adsp->px_supply = devm_regulator_get_optional(adsp->dev, "px");
376 if (IS_ERR(adsp->px_supply)) {
377 if (PTR_ERR(adsp->px_supply) == -ENODEV)
378 adsp->px_supply = NULL;
380 return PTR_ERR(adsp->px_supply);
386 static int adsp_pds_attach(struct device *dev, struct device **devs,
396 /* Handle single power domain */
397 if (dev->pm_domain) {
399 pm_runtime_enable(dev);
403 while (pd_names[num_pds])
406 for (i = 0; i < num_pds; i++) {
407 devs[i] = dev_pm_domain_attach_by_name(dev, pd_names[i]);
408 if (IS_ERR_OR_NULL(devs[i])) {
409 ret = PTR_ERR(devs[i]) ? : -ENODATA;
417 for (i--; i >= 0; i--)
418 dev_pm_domain_detach(devs[i], false);
423 static void adsp_pds_detach(struct qcom_adsp *adsp, struct device **pds,
426 struct device *dev = adsp->dev;
429 /* Handle single power domain */
430 if (dev->pm_domain && pd_count) {
431 pm_runtime_disable(dev);
435 for (i = 0; i < pd_count; i++)
436 dev_pm_domain_detach(pds[i], false);
439 static int adsp_alloc_memory_region(struct qcom_adsp *adsp)
441 struct device_node *node;
445 node = of_parse_phandle(adsp->dev->of_node, "memory-region", 0);
447 dev_err(adsp->dev, "no memory-region specified\n");
451 ret = of_address_to_resource(node, 0, &r);
455 adsp->mem_phys = adsp->mem_reloc = r.start;
456 adsp->mem_size = resource_size(&r);
457 adsp->mem_region = devm_ioremap_wc(adsp->dev, adsp->mem_phys, adsp->mem_size);
458 if (!adsp->mem_region) {
459 dev_err(adsp->dev, "unable to map memory region: %pa+%zx\n",
460 &r.start, adsp->mem_size);
467 static int adsp_probe(struct platform_device *pdev)
469 const struct adsp_data *desc;
470 struct qcom_adsp *adsp;
473 const struct rproc_ops *ops = &adsp_ops;
476 desc = of_device_get_match_data(&pdev->dev);
480 if (!qcom_scm_is_available())
481 return -EPROBE_DEFER;
483 fw_name = desc->firmware_name;
484 ret = of_property_read_string(pdev->dev.of_node, "firmware-name",
486 if (ret < 0 && ret != -EINVAL)
489 if (desc->minidump_id)
490 ops = &adsp_minidump_ops;
492 rproc = rproc_alloc(&pdev->dev, pdev->name, ops, fw_name, sizeof(*adsp));
495 dev_err(&pdev->dev, "unable to allocate remoteproc\n");
499 rproc->auto_boot = desc->auto_boot;
500 rproc_coredump_set_elf_info(rproc, ELFCLASS32, EM_NONE);
502 adsp = (struct qcom_adsp *)rproc->priv;
503 adsp->dev = &pdev->dev;
505 adsp->minidump_id = desc->minidump_id;
506 adsp->pas_id = desc->pas_id;
507 adsp->has_aggre2_clk = desc->has_aggre2_clk;
508 adsp->info_name = desc->sysmon_name;
509 adsp->decrypt_shutdown = desc->decrypt_shutdown;
510 platform_set_drvdata(pdev, adsp);
512 ret = device_init_wakeup(adsp->dev, true);
516 ret = adsp_alloc_memory_region(adsp);
520 ret = adsp_init_clock(adsp);
524 ret = adsp_init_regulator(adsp);
528 ret = adsp_pds_attach(&pdev->dev, adsp->proxy_pds,
529 desc->proxy_pd_names);
532 adsp->proxy_pd_count = ret;
534 ret = qcom_q6v5_init(&adsp->q6v5, pdev, rproc, desc->crash_reason_smem, desc->load_state,
537 goto detach_proxy_pds;
539 qcom_add_glink_subdev(rproc, &adsp->glink_subdev, desc->ssr_name);
540 qcom_add_smd_subdev(rproc, &adsp->smd_subdev);
541 qcom_add_ssr_subdev(rproc, &adsp->ssr_subdev, desc->ssr_name);
542 adsp->sysmon = qcom_add_sysmon_subdev(rproc,
545 if (IS_ERR(adsp->sysmon)) {
546 ret = PTR_ERR(adsp->sysmon);
547 goto detach_proxy_pds;
550 ret = rproc_add(rproc);
552 goto detach_proxy_pds;
557 adsp_pds_detach(adsp, adsp->proxy_pds, adsp->proxy_pd_count);
564 static int adsp_remove(struct platform_device *pdev)
566 struct qcom_adsp *adsp = platform_get_drvdata(pdev);
568 rproc_del(adsp->rproc);
570 qcom_q6v5_deinit(&adsp->q6v5);
571 qcom_remove_glink_subdev(adsp->rproc, &adsp->glink_subdev);
572 qcom_remove_sysmon_subdev(adsp->sysmon);
573 qcom_remove_smd_subdev(adsp->rproc, &adsp->smd_subdev);
574 qcom_remove_ssr_subdev(adsp->rproc, &adsp->ssr_subdev);
575 rproc_free(adsp->rproc);
580 static const struct adsp_data adsp_resource_init = {
581 .crash_reason_smem = 423,
582 .firmware_name = "adsp.mdt",
584 .has_aggre2_clk = false,
587 .sysmon_name = "adsp",
591 static const struct adsp_data sdm845_adsp_resource_init = {
592 .crash_reason_smem = 423,
593 .firmware_name = "adsp.mdt",
595 .has_aggre2_clk = false,
597 .load_state = "adsp",
599 .sysmon_name = "adsp",
603 static const struct adsp_data sm6350_adsp_resource = {
604 .crash_reason_smem = 423,
605 .firmware_name = "adsp.mdt",
607 .has_aggre2_clk = false,
609 .proxy_pd_names = (char*[]){
614 .load_state = "adsp",
616 .sysmon_name = "adsp",
620 static const struct adsp_data sm8150_adsp_resource = {
621 .crash_reason_smem = 423,
622 .firmware_name = "adsp.mdt",
624 .has_aggre2_clk = false,
626 .proxy_pd_names = (char*[]){
630 .load_state = "adsp",
632 .sysmon_name = "adsp",
636 static const struct adsp_data sm8250_adsp_resource = {
637 .crash_reason_smem = 423,
638 .firmware_name = "adsp.mdt",
640 .has_aggre2_clk = false,
642 .proxy_pd_names = (char*[]){
647 .load_state = "adsp",
649 .sysmon_name = "adsp",
653 static const struct adsp_data sm8350_adsp_resource = {
654 .crash_reason_smem = 423,
655 .firmware_name = "adsp.mdt",
657 .has_aggre2_clk = false,
659 .proxy_pd_names = (char*[]){
664 .load_state = "adsp",
666 .sysmon_name = "adsp",
670 static const struct adsp_data msm8996_adsp_resource = {
671 .crash_reason_smem = 423,
672 .firmware_name = "adsp.mdt",
674 .has_aggre2_clk = false,
676 .proxy_pd_names = (char*[]){
681 .sysmon_name = "adsp",
685 static const struct adsp_data cdsp_resource_init = {
686 .crash_reason_smem = 601,
687 .firmware_name = "cdsp.mdt",
689 .has_aggre2_clk = false,
692 .sysmon_name = "cdsp",
696 static const struct adsp_data sdm845_cdsp_resource_init = {
697 .crash_reason_smem = 601,
698 .firmware_name = "cdsp.mdt",
700 .has_aggre2_clk = false,
702 .load_state = "cdsp",
704 .sysmon_name = "cdsp",
708 static const struct adsp_data sm6350_cdsp_resource = {
709 .crash_reason_smem = 601,
710 .firmware_name = "cdsp.mdt",
712 .has_aggre2_clk = false,
714 .proxy_pd_names = (char*[]){
719 .load_state = "cdsp",
721 .sysmon_name = "cdsp",
725 static const struct adsp_data sm8150_cdsp_resource = {
726 .crash_reason_smem = 601,
727 .firmware_name = "cdsp.mdt",
729 .has_aggre2_clk = false,
731 .proxy_pd_names = (char*[]){
735 .load_state = "cdsp",
737 .sysmon_name = "cdsp",
741 static const struct adsp_data sm8250_cdsp_resource = {
742 .crash_reason_smem = 601,
743 .firmware_name = "cdsp.mdt",
745 .has_aggre2_clk = false,
747 .proxy_pd_names = (char*[]){
751 .load_state = "cdsp",
753 .sysmon_name = "cdsp",
757 static const struct adsp_data sc8280xp_nsp0_resource = {
758 .crash_reason_smem = 601,
759 .firmware_name = "cdsp.mdt",
761 .has_aggre2_clk = false,
763 .proxy_pd_names = (char*[]){
768 .sysmon_name = "cdsp",
772 static const struct adsp_data sc8280xp_nsp1_resource = {
773 .crash_reason_smem = 633,
774 .firmware_name = "cdsp.mdt",
776 .has_aggre2_clk = false,
778 .proxy_pd_names = (char*[]){
783 .sysmon_name = "cdsp1",
787 static const struct adsp_data sm8350_cdsp_resource = {
788 .crash_reason_smem = 601,
789 .firmware_name = "cdsp.mdt",
791 .has_aggre2_clk = false,
793 .proxy_pd_names = (char*[]){
798 .load_state = "cdsp",
800 .sysmon_name = "cdsp",
804 static const struct adsp_data mpss_resource_init = {
805 .crash_reason_smem = 421,
806 .firmware_name = "modem.mdt",
809 .has_aggre2_clk = false,
811 .proxy_pd_names = (char*[]){
816 .load_state = "modem",
818 .sysmon_name = "modem",
822 static const struct adsp_data sc8180x_mpss_resource = {
823 .crash_reason_smem = 421,
824 .firmware_name = "modem.mdt",
826 .has_aggre2_clk = false,
828 .proxy_pd_names = (char*[]){
832 .load_state = "modem",
834 .sysmon_name = "modem",
838 static const struct adsp_data slpi_resource_init = {
839 .crash_reason_smem = 424,
840 .firmware_name = "slpi.mdt",
842 .has_aggre2_clk = true,
844 .proxy_pd_names = (char*[]){
849 .sysmon_name = "slpi",
853 static const struct adsp_data sm8150_slpi_resource = {
854 .crash_reason_smem = 424,
855 .firmware_name = "slpi.mdt",
857 .has_aggre2_clk = false,
859 .proxy_pd_names = (char*[]){
864 .load_state = "slpi",
866 .sysmon_name = "slpi",
870 static const struct adsp_data sm8250_slpi_resource = {
871 .crash_reason_smem = 424,
872 .firmware_name = "slpi.mdt",
874 .has_aggre2_clk = false,
876 .proxy_pd_names = (char*[]){
881 .load_state = "slpi",
883 .sysmon_name = "slpi",
887 static const struct adsp_data sm8350_slpi_resource = {
888 .crash_reason_smem = 424,
889 .firmware_name = "slpi.mdt",
891 .has_aggre2_clk = false,
893 .proxy_pd_names = (char*[]){
898 .load_state = "slpi",
900 .sysmon_name = "slpi",
904 static const struct adsp_data wcss_resource_init = {
905 .crash_reason_smem = 421,
906 .firmware_name = "wcnss.mdt",
910 .sysmon_name = "wcnss",
914 static const struct adsp_data sdx55_mpss_resource = {
915 .crash_reason_smem = 421,
916 .firmware_name = "modem.mdt",
918 .has_aggre2_clk = false,
920 .proxy_pd_names = (char*[]){
926 .sysmon_name = "modem",
930 static const struct adsp_data sm8450_mpss_resource = {
931 .crash_reason_smem = 421,
932 .firmware_name = "modem.mdt",
935 .has_aggre2_clk = false,
937 .decrypt_shutdown = true,
938 .proxy_pd_names = (char*[]){
943 .load_state = "modem",
945 .sysmon_name = "modem",
949 static const struct of_device_id adsp_of_match[] = {
950 { .compatible = "qcom,msm8226-adsp-pil", .data = &adsp_resource_init},
951 { .compatible = "qcom,msm8974-adsp-pil", .data = &adsp_resource_init},
952 { .compatible = "qcom,msm8996-adsp-pil", .data = &msm8996_adsp_resource},
953 { .compatible = "qcom,msm8996-slpi-pil", .data = &slpi_resource_init},
954 { .compatible = "qcom,msm8998-adsp-pas", .data = &msm8996_adsp_resource},
955 { .compatible = "qcom,msm8998-slpi-pas", .data = &slpi_resource_init},
956 { .compatible = "qcom,qcs404-adsp-pas", .data = &adsp_resource_init },
957 { .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init },
958 { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init },
959 { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init},
960 { .compatible = "qcom,sc7280-mpss-pas", .data = &mpss_resource_init},
961 { .compatible = "qcom,sc8180x-adsp-pas", .data = &sm8150_adsp_resource},
962 { .compatible = "qcom,sc8180x-cdsp-pas", .data = &sm8150_cdsp_resource},
963 { .compatible = "qcom,sc8180x-mpss-pas", .data = &sc8180x_mpss_resource},
964 { .compatible = "qcom,sc8280xp-adsp-pas", .data = &sm8250_adsp_resource},
965 { .compatible = "qcom,sc8280xp-nsp0-pas", .data = &sc8280xp_nsp0_resource},
966 { .compatible = "qcom,sc8280xp-nsp1-pas", .data = &sc8280xp_nsp1_resource},
967 { .compatible = "qcom,sdm660-adsp-pas", .data = &adsp_resource_init},
968 { .compatible = "qcom,sdm845-adsp-pas", .data = &sdm845_adsp_resource_init},
969 { .compatible = "qcom,sdm845-cdsp-pas", .data = &sdm845_cdsp_resource_init},
970 { .compatible = "qcom,sdx55-mpss-pas", .data = &sdx55_mpss_resource},
971 { .compatible = "qcom,sm6350-adsp-pas", .data = &sm6350_adsp_resource},
972 { .compatible = "qcom,sm6350-cdsp-pas", .data = &sm6350_cdsp_resource},
973 { .compatible = "qcom,sm6350-mpss-pas", .data = &mpss_resource_init},
974 { .compatible = "qcom,sm8150-adsp-pas", .data = &sm8150_adsp_resource},
975 { .compatible = "qcom,sm8150-cdsp-pas", .data = &sm8150_cdsp_resource},
976 { .compatible = "qcom,sm8150-mpss-pas", .data = &mpss_resource_init},
977 { .compatible = "qcom,sm8150-slpi-pas", .data = &sm8150_slpi_resource},
978 { .compatible = "qcom,sm8250-adsp-pas", .data = &sm8250_adsp_resource},
979 { .compatible = "qcom,sm8250-cdsp-pas", .data = &sm8250_cdsp_resource},
980 { .compatible = "qcom,sm8250-slpi-pas", .data = &sm8250_slpi_resource},
981 { .compatible = "qcom,sm8350-adsp-pas", .data = &sm8350_adsp_resource},
982 { .compatible = "qcom,sm8350-cdsp-pas", .data = &sm8350_cdsp_resource},
983 { .compatible = "qcom,sm8350-slpi-pas", .data = &sm8350_slpi_resource},
984 { .compatible = "qcom,sm8350-mpss-pas", .data = &mpss_resource_init},
985 { .compatible = "qcom,sm8450-adsp-pas", .data = &sm8350_adsp_resource},
986 { .compatible = "qcom,sm8450-cdsp-pas", .data = &sm8350_cdsp_resource},
987 { .compatible = "qcom,sm8450-slpi-pas", .data = &sm8350_slpi_resource},
988 { .compatible = "qcom,sm8450-mpss-pas", .data = &sm8450_mpss_resource},
991 MODULE_DEVICE_TABLE(of, adsp_of_match);
993 static struct platform_driver adsp_driver = {
995 .remove = adsp_remove,
997 .name = "qcom_q6v5_pas",
998 .of_match_table = adsp_of_match,
1002 module_platform_driver(adsp_driver);
1003 MODULE_DESCRIPTION("Qualcomm Hexagon v5 Peripheral Authentication Service driver");
1004 MODULE_LICENSE("GPL v2");