Lines Matching refs:pwrc

301 	struct meson_ee_pwrc *pwrc;
320 regmap_read(pwrc_domain->pwrc->regmap_ao,
333 regmap_update_bits(pwrc_domain->pwrc->regmap_ao,
340 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi,
348 regmap_update_bits(pwrc_domain->pwrc->regmap_ao,
369 regmap_update_bits(pwrc_domain->pwrc->regmap_ao,
375 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi,
386 regmap_update_bits(pwrc_domain->pwrc->regmap_ao,
399 struct meson_ee_pwrc *pwrc,
404 dom->pwrc = pwrc;
472 struct meson_ee_pwrc *pwrc;
481 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL);
482 if (!pwrc)
485 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count,
486 sizeof(*pwrc->xlate.domains),
488 if (!pwrc->xlate.domains)
491 pwrc->domains = devm_kcalloc(&pdev->dev, match->count,
492 sizeof(*pwrc->domains), GFP_KERNEL);
493 if (!pwrc->domains)
496 pwrc->xlate.num_domains = match->count;
511 pwrc->regmap_ao = regmap_ao;
512 pwrc->regmap_hhi = regmap_hhi;
514 platform_set_drvdata(pdev, pwrc);
517 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i];
521 ret = meson_ee_pwrc_init_domain(pdev, pwrc, dom);
525 pwrc->xlate.domains[i] = &dom->base;
528 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate);
533 struct meson_ee_pwrc *pwrc = platform_get_drvdata(pdev);
536 for (i = 0 ; i < pwrc->xlate.num_domains ; ++i) {
537 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i];
576 .compatible = "amlogic,meson8-pwrc",
580 .compatible = "amlogic,meson8b-pwrc",
584 .compatible = "amlogic,meson8m2-pwrc",
588 .compatible = "amlogic,meson-axg-pwrc",
592 .compatible = "amlogic,meson-gxbb-pwrc",
596 .compatible = "amlogic,meson-g12a-pwrc",
600 .compatible = "amlogic,meson-sm1-pwrc",