Lines Matching full:pwrc

302 	struct meson_ee_pwrc *pwrc;  member
321 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_get_power()
334 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
341 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_off()
349 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
370 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
376 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_on()
387 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
400 struct meson_ee_pwrc *pwrc, in meson_ee_pwrc_init_domain() argument
405 dom->pwrc = pwrc; in meson_ee_pwrc_init_domain()
473 struct meson_ee_pwrc *pwrc; in meson_ee_pwrc_probe() local
482 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_ee_pwrc_probe()
483 if (!pwrc) in meson_ee_pwrc_probe()
486 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_ee_pwrc_probe()
487 sizeof(*pwrc->xlate.domains), in meson_ee_pwrc_probe()
489 if (!pwrc->xlate.domains) in meson_ee_pwrc_probe()
492 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_ee_pwrc_probe()
493 sizeof(*pwrc->domains), GFP_KERNEL); in meson_ee_pwrc_probe()
494 if (!pwrc->domains) in meson_ee_pwrc_probe()
497 pwrc->xlate.num_domains = match->count; in meson_ee_pwrc_probe()
512 pwrc->regmap_ao = regmap_ao; in meson_ee_pwrc_probe()
513 pwrc->regmap_hhi = regmap_hhi; in meson_ee_pwrc_probe()
515 platform_set_drvdata(pdev, pwrc); in meson_ee_pwrc_probe()
518 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i]; in meson_ee_pwrc_probe()
522 ret = meson_ee_pwrc_init_domain(pdev, pwrc, dom); in meson_ee_pwrc_probe()
526 pwrc->xlate.domains[i] = &dom->base; in meson_ee_pwrc_probe()
529 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); in meson_ee_pwrc_probe()
534 struct meson_ee_pwrc *pwrc = platform_get_drvdata(pdev); in meson_ee_pwrc_shutdown() local
537 for (i = 0 ; i < pwrc->xlate.num_domains ; ++i) { in meson_ee_pwrc_shutdown()
538 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i]; in meson_ee_pwrc_shutdown()
577 .compatible = "amlogic,meson8-pwrc",
581 .compatible = "amlogic,meson8b-pwrc",
585 .compatible = "amlogic,meson8m2-pwrc",
589 .compatible = "amlogic,meson-axg-pwrc",
593 .compatible = "amlogic,meson-gxbb-pwrc",
597 .compatible = "amlogic,meson-g12a-pwrc",
601 .compatible = "amlogic,meson-sm1-pwrc",