Lines Matching full:pwrc
28 struct mt6323_pwrc *pwrc = mt_pwrc; in mt6323_do_pwroff() local
32 regmap_write(pwrc->regmap, pwrc->base + RTC_BBPU, RTC_BBPU_KEY); in mt6323_do_pwroff()
33 regmap_write(pwrc->regmap, pwrc->base + RTC_WRTGR_MT6323, 1); in mt6323_do_pwroff()
35 ret = regmap_read_poll_timeout(pwrc->regmap, in mt6323_do_pwroff()
36 pwrc->base + RTC_BBPU, val, in mt6323_do_pwroff()
41 dev_err(pwrc->dev, "failed to write BBPU: %d\n", ret); in mt6323_do_pwroff()
52 struct mt6323_pwrc *pwrc; in mt6323_pwrc_probe() local
55 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in mt6323_pwrc_probe()
56 if (!pwrc) in mt6323_pwrc_probe()
63 pwrc->base = res->start; in mt6323_pwrc_probe()
64 pwrc->regmap = mt6397_chip->regmap; in mt6323_pwrc_probe()
65 pwrc->dev = &pdev->dev; in mt6323_pwrc_probe()
66 mt_pwrc = pwrc; in mt6323_pwrc_probe()
82 { .compatible = "mediatek,mt6323-pwrc" },
91 .name = "mt6323-pwrc",