Lines Matching refs:scm
1245 struct qcom_scm *scm; in qcom_scm_probe() local
1249 scm = devm_kzalloc(&pdev->dev, sizeof(*scm), GFP_KERNEL); in qcom_scm_probe()
1250 if (!scm) in qcom_scm_probe()
1253 ret = qcom_scm_find_dload_address(&pdev->dev, &scm->dload_mode_addr); in qcom_scm_probe()
1259 scm->core_clk = devm_clk_get(&pdev->dev, "core"); in qcom_scm_probe()
1260 if (IS_ERR(scm->core_clk)) { in qcom_scm_probe()
1261 if (PTR_ERR(scm->core_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1262 return PTR_ERR(scm->core_clk); in qcom_scm_probe()
1266 return PTR_ERR(scm->core_clk); in qcom_scm_probe()
1269 scm->core_clk = NULL; in qcom_scm_probe()
1272 scm->iface_clk = devm_clk_get(&pdev->dev, "iface"); in qcom_scm_probe()
1273 if (IS_ERR(scm->iface_clk)) { in qcom_scm_probe()
1274 if (PTR_ERR(scm->iface_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1275 return PTR_ERR(scm->iface_clk); in qcom_scm_probe()
1279 return PTR_ERR(scm->iface_clk); in qcom_scm_probe()
1282 scm->iface_clk = NULL; in qcom_scm_probe()
1285 scm->bus_clk = devm_clk_get(&pdev->dev, "bus"); in qcom_scm_probe()
1286 if (IS_ERR(scm->bus_clk)) { in qcom_scm_probe()
1287 if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1288 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1292 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1295 scm->bus_clk = NULL; in qcom_scm_probe()
1298 scm->reset.ops = &qcom_scm_pas_reset_ops; in qcom_scm_probe()
1299 scm->reset.nr_resets = 1; in qcom_scm_probe()
1300 scm->reset.of_node = pdev->dev.of_node; in qcom_scm_probe()
1301 ret = devm_reset_controller_register(&pdev->dev, &scm->reset); in qcom_scm_probe()
1306 ret = clk_set_rate(scm->core_clk, INT_MAX); in qcom_scm_probe()
1310 __scm = scm; in qcom_scm_probe()