Home
last modified time | relevance | path

Searched refs:pwrc (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/drivers/power/reset/
H A Datc260x-poweroff.c20 int (*do_poweroff)(const struct atc260x_pwrc *pwrc, bool restart);
26 static int atc2603c_do_poweroff(const struct atc260x_pwrc *pwrc, bool restart) in atc2603c_do_poweroff() argument
34 dev_info(pwrc->dev, "Enabling S4-Deep Sleep Mode"); in atc2603c_do_poweroff()
42 ret = regmap_update_bits(pwrc->regmap, ATC2603C_PMU_SYS_CTL0, in atc2603c_do_poweroff()
45 dev_warn(pwrc->dev, "failed to write SYS_CTL0: %d\n", ret); in atc2603c_do_poweroff()
50 ret = regmap_update_bits(pwrc->regmap, ATC2603C_PMU_SYS_CTL3, reg_mask, in atc2603c_do_poweroff()
53 dev_err(pwrc->dev, "failed to write SYS_CTL3: %d\n", ret); in atc2603c_do_poweroff()
62 ret = regmap_update_bits(pwrc->regmap, in atc2603c_do_poweroff()
66 dev_err(pwrc->dev, "failed to write SYS_CTL%d: %d\n", in atc2603c_do_poweroff()
77 static int atc2609a_do_poweroff(const struct atc260x_pwrc *pwrc, boo argument
128 atc2603c_init(const struct atc260x_pwrc *pwrc) atc2603c_init() argument
153 atc2609a_init(const struct atc260x_pwrc *pwrc) atc2609a_init() argument
178 struct atc260x_pwrc *pwrc = container_of(nb, struct atc260x_pwrc, atc260x_pwrc_restart_handler() local
[all...]
H A Dmt6323-poweroff.c28 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 in mt6323_pwrc_probe()
[all...]
/kernel/linux/linux-5.10/drivers/power/reset/
H A Dmt6323-poweroff.c28 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 in mt6323_pwrc_probe()
[all...]
/kernel/linux/linux-6.6/drivers/pmdomain/amlogic/
H A Dmeson-secure-pwrc.c14 #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 in meson_secure_pwrc_probe()
[all...]
H A Dmeson-ee-pwrc.c318 struct meson_ee_pwrc *pwrc; member
337 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_is_powered_off()
350 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
357 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_off()
365 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
386 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
392 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_on()
403 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
416 struct meson_ee_pwrc *pwrc, in meson_ee_pwrc_init_domain()
421 dom->pwrc in meson_ee_pwrc_init_domain()
415 meson_ee_pwrc_init_domain(struct platform_device *pdev, struct meson_ee_pwrc *pwrc, struct meson_ee_pwrc_domain *dom) meson_ee_pwrc_init_domain() argument
489 struct meson_ee_pwrc *pwrc; meson_ee_pwrc_probe() local
552 struct meson_ee_pwrc *pwrc = platform_get_drvdata(pdev); meson_ee_pwrc_shutdown() local
[all...]
/kernel/linux/linux-5.10/drivers/soc/amlogic/
H A Dmeson-secure-pwrc.c23 struct meson_secure_pwrc *pwrc; member
48 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off()
61 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off()
76 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on()
125 struct meson_secure_pwrc *pwrc; in meson_secure_pwrc_probe() local
140 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_secure_pwrc_probe()
141 if (!pwrc) { in meson_secure_pwrc_probe()
146 pwrc->fw = meson_sm_get(sm_np); in meson_secure_pwrc_probe()
148 if (!pwrc in meson_secure_pwrc_probe()
[all...]
H A Dmeson-ee-pwrc.c301 struct meson_ee_pwrc *pwrc; member
320 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_get_power()
333 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
340 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_off()
348 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
369 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
375 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_on()
386 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
399 struct meson_ee_pwrc *pwrc, in meson_ee_pwrc_init_domain()
404 dom->pwrc in meson_ee_pwrc_init_domain()
398 meson_ee_pwrc_init_domain(struct platform_device *pdev, struct meson_ee_pwrc *pwrc, struct meson_ee_pwrc_domain *dom) meson_ee_pwrc_init_domain() argument
472 struct meson_ee_pwrc *pwrc; meson_ee_pwrc_probe() local
533 struct meson_ee_pwrc *pwrc = platform_get_drvdata(pdev); meson_ee_pwrc_shutdown() local
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-prima2/
H A Dsleep.S23 @ r6: pwrc base offset

Completed in 4 milliseconds