Lines Matching full:scm

183 	if (of_device_is_compatible(__scm ? __scm->dev->of_node : NULL, "qcom,scm-sc7180")) {  in __get_convention()
213 * Sends a command to the SCM and waits for the command to finish processing.
227 pr_err("Unknown current SCM calling convention.\n"); in qcom_scm_call()
238 * Sends a command to the SCM and waits for the command to finish processing.
252 pr_err("Unknown current SCM calling convention.\n"); in qcom_scm_call_atomic()
337 * Set the Linux entry point for the SCM to transfer control to when coming
343 /* Fallback to old SCM call */ in qcom_scm_set_warm_boot_addr()
356 /* Fallback to old SCM call */ in qcom_scm_set_cold_boot_addr()
473 * During the scm call memory protection will be enabled for the meta in qcom_scm_pas_init_image()
1030 * Return: true iff the SCM calls wrapped by qcom_scm_ice_invalidate_key() and
1047 * doesn't work on these SoCs; only this SCM call does.
1049 * It is assumed that the SoC has only one ICE instance being used, as this SCM
1082 * doesn't work on these SoCs; only this SCM call does.
1084 * It is assumed that the SoC has only one ICE instance being used, as this SCM
1160 * @resp: response buffer passed to SCM
1162 * Write HDCP register(s) through SCM.
1320 * qcom_scm_is_available() - Checks if SCM is available
1330 struct qcom_scm *scm; in qcom_scm_probe() local
1334 scm = devm_kzalloc(&pdev->dev, sizeof(*scm), GFP_KERNEL); in qcom_scm_probe()
1335 if (!scm) in qcom_scm_probe()
1338 ret = qcom_scm_find_dload_address(&pdev->dev, &scm->dload_mode_addr); in qcom_scm_probe()
1342 mutex_init(&scm->scm_bw_lock); in qcom_scm_probe()
1346 scm->path = devm_of_icc_get(&pdev->dev, NULL); in qcom_scm_probe()
1347 if (IS_ERR(scm->path)) in qcom_scm_probe()
1348 return dev_err_probe(&pdev->dev, PTR_ERR(scm->path), in qcom_scm_probe()
1351 scm->core_clk = devm_clk_get(&pdev->dev, "core"); in qcom_scm_probe()
1352 if (IS_ERR(scm->core_clk)) { in qcom_scm_probe()
1353 if (PTR_ERR(scm->core_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1354 return PTR_ERR(scm->core_clk); in qcom_scm_probe()
1358 return PTR_ERR(scm->core_clk); in qcom_scm_probe()
1361 scm->core_clk = NULL; in qcom_scm_probe()
1364 scm->iface_clk = devm_clk_get(&pdev->dev, "iface"); in qcom_scm_probe()
1365 if (IS_ERR(scm->iface_clk)) { in qcom_scm_probe()
1366 if (PTR_ERR(scm->iface_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1367 return PTR_ERR(scm->iface_clk); in qcom_scm_probe()
1371 return PTR_ERR(scm->iface_clk); in qcom_scm_probe()
1374 scm->iface_clk = NULL; in qcom_scm_probe()
1377 scm->bus_clk = devm_clk_get(&pdev->dev, "bus"); in qcom_scm_probe()
1378 if (IS_ERR(scm->bus_clk)) { in qcom_scm_probe()
1379 if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1380 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1384 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1387 scm->bus_clk = NULL; in qcom_scm_probe()
1390 scm->reset.ops = &qcom_scm_pas_reset_ops; in qcom_scm_probe()
1391 scm->reset.nr_resets = 1; in qcom_scm_probe()
1392 scm->reset.of_node = pdev->dev.of_node; in qcom_scm_probe()
1393 ret = devm_reset_controller_register(&pdev->dev, &scm->reset); in qcom_scm_probe()
1398 ret = clk_set_rate(scm->core_clk, INT_MAX); in qcom_scm_probe()
1402 __scm = scm; in qcom_scm_probe()
1426 { .compatible = "qcom,scm-apq8064",
1429 { .compatible = "qcom,scm-apq8084", .data = (void *)(SCM_HAS_CORE_CLK |
1433 { .compatible = "qcom,scm-ipq4019" },
1434 { .compatible = "qcom,scm-mdm9607", .data = (void *)(SCM_HAS_CORE_CLK |
1437 { .compatible = "qcom,scm-msm8660", .data = (void *) SCM_HAS_CORE_CLK },
1438 { .compatible = "qcom,scm-msm8960", .data = (void *) SCM_HAS_CORE_CLK },
1439 { .compatible = "qcom,scm-msm8916", .data = (void *)(SCM_HAS_CORE_CLK |
1443 { .compatible = "qcom,scm-msm8953", .data = (void *)(SCM_HAS_CORE_CLK |
1447 { .compatible = "qcom,scm-msm8974", .data = (void *)(SCM_HAS_CORE_CLK |
1451 { .compatible = "qcom,scm-msm8976", .data = (void *)(SCM_HAS_CORE_CLK |
1455 { .compatible = "qcom,scm-msm8994" },
1456 { .compatible = "qcom,scm-msm8996" },
1457 { .compatible = "qcom,scm" },
1478 MODULE_DESCRIPTION("Qualcomm Technologies, Inc. SCM driver");