Lines Matching refs:scm

161 	if (of_device_is_compatible(__scm ? __scm->dev->of_node : NULL, "qcom,scm-sc7180")) {
463 * During the scm call memory protection will be enabled for the meta
1182 struct qcom_scm *scm;
1186 scm = devm_kzalloc(&pdev->dev, sizeof(*scm), GFP_KERNEL);
1187 if (!scm)
1190 ret = qcom_scm_find_dload_address(&pdev->dev, &scm->dload_mode_addr);
1196 scm->core_clk = devm_clk_get(&pdev->dev, "core");
1197 if (IS_ERR(scm->core_clk)) {
1198 if (PTR_ERR(scm->core_clk) == -EPROBE_DEFER)
1199 return PTR_ERR(scm->core_clk);
1203 return PTR_ERR(scm->core_clk);
1206 scm->core_clk = NULL;
1209 scm->iface_clk = devm_clk_get(&pdev->dev, "iface");
1210 if (IS_ERR(scm->iface_clk)) {
1211 if (PTR_ERR(scm->iface_clk) == -EPROBE_DEFER)
1212 return PTR_ERR(scm->iface_clk);
1216 return PTR_ERR(scm->iface_clk);
1219 scm->iface_clk = NULL;
1222 scm->bus_clk = devm_clk_get(&pdev->dev, "bus");
1223 if (IS_ERR(scm->bus_clk)) {
1224 if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER)
1225 return PTR_ERR(scm->bus_clk);
1229 return PTR_ERR(scm->bus_clk);
1232 scm->bus_clk = NULL;
1235 scm->reset.ops = &qcom_scm_pas_reset_ops;
1236 scm->reset.nr_resets = 1;
1237 scm->reset.of_node = pdev->dev.of_node;
1238 ret = devm_reset_controller_register(&pdev->dev, &scm->reset);
1243 ret = clk_set_rate(scm->core_clk, INT_MAX);
1247 __scm = scm;
1270 { .compatible = "qcom,scm-apq8064",
1273 { .compatible = "qcom,scm-apq8084", .data = (void *)(SCM_HAS_CORE_CLK |
1277 { .compatible = "qcom,scm-ipq4019" },
1278 { .compatible = "qcom,scm-msm8660", .data = (void *) SCM_HAS_CORE_CLK },
1279 { .compatible = "qcom,scm-msm8960", .data = (void *) SCM_HAS_CORE_CLK },
1280 { .compatible = "qcom,scm-msm8916", .data = (void *)(SCM_HAS_CORE_CLK |
1284 { .compatible = "qcom,scm-msm8974", .data = (void *)(SCM_HAS_CORE_CLK |
1288 { .compatible = "qcom,scm-msm8994" },
1289 { .compatible = "qcom,scm-msm8996" },
1290 { .compatible = "qcom,scm" },