Lines Matching refs:scm
192 if (of_device_is_compatible(__scm ? __scm->dev->of_node : NULL, "qcom,scm-sc7180")) {
483 * During the scm call memory protection will be enabled for the meta
1367 static int qcom_scm_waitq_wakeup(struct qcom_scm *scm, unsigned int wq_ctx)
1383 struct qcom_scm *scm = data;
1389 dev_err(scm->dev, "GET_WQ_CTX SMC call failed: %d\n", ret);
1395 dev_err(scm->dev, "Invalid flags found for wq_ctx: %u\n", flags);
1399 ret = qcom_scm_waitq_wakeup(scm, wq_ctx);
1410 struct qcom_scm *scm;
1413 scm = devm_kzalloc(&pdev->dev, sizeof(*scm), GFP_KERNEL);
1414 if (!scm)
1417 ret = qcom_scm_find_dload_address(&pdev->dev, &scm->dload_mode_addr);
1421 mutex_init(&scm->scm_bw_lock);
1423 scm->path = devm_of_icc_get(&pdev->dev, NULL);
1424 if (IS_ERR(scm->path))
1425 return dev_err_probe(&pdev->dev, PTR_ERR(scm->path),
1428 scm->core_clk = devm_clk_get_optional(&pdev->dev, "core");
1429 if (IS_ERR(scm->core_clk))
1430 return PTR_ERR(scm->core_clk);
1432 scm->iface_clk = devm_clk_get_optional(&pdev->dev, "iface");
1433 if (IS_ERR(scm->iface_clk))
1434 return PTR_ERR(scm->iface_clk);
1436 scm->bus_clk = devm_clk_get_optional(&pdev->dev, "bus");
1437 if (IS_ERR(scm->bus_clk))
1438 return PTR_ERR(scm->bus_clk);
1440 scm->reset.ops = &qcom_scm_pas_reset_ops;
1441 scm->reset.nr_resets = 1;
1442 scm->reset.of_node = pdev->dev.of_node;
1443 ret = devm_reset_controller_register(&pdev->dev, &scm->reset);
1448 ret = clk_set_rate(scm->core_clk, INT_MAX);
1452 __scm = scm;
1463 IRQF_ONESHOT, "qcom-scm", __scm);
1465 return dev_err_probe(scm->dev, ret, "Failed to request qcom-scm irq\n");
1488 { .compatible = "qcom,scm" },
1491 { .compatible = "qcom,scm-apq8064" },
1492 { .compatible = "qcom,scm-apq8084" },
1493 { .compatible = "qcom,scm-ipq4019" },
1494 { .compatible = "qcom,scm-msm8953" },
1495 { .compatible = "qcom,scm-msm8974" },
1496 { .compatible = "qcom,scm-msm8996" },