Lines Matching full:pwrc

14 #include <dt-bindings/power/amlogic,c3-pwrc.h>
26 struct meson_secure_pwrc *pwrc; member
51 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off()
64 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off()
79 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on()
156 struct meson_secure_pwrc *pwrc; in meson_secure_pwrc_probe() local
171 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_secure_pwrc_probe()
172 if (!pwrc) { in meson_secure_pwrc_probe()
177 pwrc->fw = meson_sm_get(sm_np); in meson_secure_pwrc_probe()
179 if (!pwrc->fw) in meson_secure_pwrc_probe()
182 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
183 sizeof(*pwrc->xlate.domains), in meson_secure_pwrc_probe()
185 if (!pwrc->xlate.domains) in meson_secure_pwrc_probe()
188 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
189 sizeof(*pwrc->domains), GFP_KERNEL); in meson_secure_pwrc_probe()
190 if (!pwrc->domains) in meson_secure_pwrc_probe()
193 pwrc->xlate.num_domains = match->count; in meson_secure_pwrc_probe()
194 platform_set_drvdata(pdev, pwrc); in meson_secure_pwrc_probe()
197 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe()
202 dom->pwrc = pwrc; in meson_secure_pwrc_probe()
211 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
214 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); in meson_secure_pwrc_probe()
234 .compatible = "amlogic,meson-a1-pwrc",
238 .compatible = "amlogic,c3-pwrc",
242 .compatible = "amlogic,meson-s4-pwrc",