Lines Matching full:pwrc

14 #include <dt-bindings/power/amlogic,c3-pwrc.h>
16 #include <dt-bindings/power/amlogic,t7-pwrc.h>
17 #include <dt-bindings/power/amlogic,a4-pwrc.h>
18 #include <dt-bindings/power/amlogic,a5-pwrc.h>
31 struct meson_secure_pwrc *pwrc; member
57 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off()
70 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off()
85 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on()
271 struct meson_secure_pwrc *pwrc; in meson_secure_pwrc_probe() local
286 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_secure_pwrc_probe()
287 if (!pwrc) { in meson_secure_pwrc_probe()
292 pwrc->fw = meson_sm_get(sm_np); in meson_secure_pwrc_probe()
294 if (!pwrc->fw) in meson_secure_pwrc_probe()
297 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
298 sizeof(*pwrc->xlate.domains), in meson_secure_pwrc_probe()
300 if (!pwrc->xlate.domains) in meson_secure_pwrc_probe()
303 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
304 sizeof(*pwrc->domains), GFP_KERNEL); in meson_secure_pwrc_probe()
305 if (!pwrc->domains) in meson_secure_pwrc_probe()
308 pwrc->xlate.num_domains = match->count; in meson_secure_pwrc_probe()
309 platform_set_drvdata(pdev, pwrc); in meson_secure_pwrc_probe()
312 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe()
317 dom->pwrc = pwrc; in meson_secure_pwrc_probe()
330 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
334 struct meson_secure_pwrc_domain *dom = pwrc->domains; in meson_secure_pwrc_probe()
342 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); in meson_secure_pwrc_probe()
377 .compatible = "amlogic,meson-a1-pwrc",
381 .compatible = "amlogic,a4-pwrc",
385 .compatible = "amlogic,a5-pwrc",
389 .compatible = "amlogic,c3-pwrc",
393 .compatible = "amlogic,meson-s4-pwrc",
397 .compatible = "amlogic,t7-pwrc",