Home
last modified time | relevance | path

Searched full:pwrc (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/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, bool restart) in atc2609a_do_poweroff() argument
[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 = 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()
[all …]
/openbmc/linux/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->fw = meson_sm_get(sm_np); in meson_secure_pwrc_probe()
179 if (!pwrc->fw) 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() argument
421 dom->pwrc = pwrc; in meson_ee_pwrc_init_domain()
[all …]
H A DMakefile2 obj-$(CONFIG_MESON_GX_PM_DOMAINS) += meson-gx-pwrc-vpu.o
3 obj-$(CONFIG_MESON_EE_PM_DOMAINS) += meson-ee-pwrc.o
4 obj-$(CONFIG_MESON_SECURE_PM_DOMAINS) += meson-secure-pwrc.o
H A Dmeson-gx-pwrc-vpu.c361 { .compatible = "amlogic,meson-gx-pwrc-vpu", .data = &vpu_hdmi_pd },
363 .compatible = "amlogic,meson-g12a-pwrc-vpu",
/openbmc/linux/Documentation/devicetree/bindings/power/
H A Damlogic,meson-ee-pwrc.yaml5 $id: http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml#
26 - amlogic,meson8-pwrc
27 - amlogic,meson8b-pwrc
28 - amlogic,meson8m2-pwrc
29 - amlogic,meson-gxbb-pwrc
30 - amlogic,meson-axg-pwrc
31 - amlogic,meson-g12a-pwrc
32 - amlogic,meson-sm1-pwrc
64 - amlogic,meson8b-pwrc
65 - amlogic,meson8m2-pwrc
[all …]
H A Damlogic,meson-sec-pwrc.yaml6 $id: http://devicetree.org/schemas/power/amlogic,meson-sec-pwrc.yaml#
21 - amlogic,meson-a1-pwrc
22 - amlogic,meson-s4-pwrc
23 - amlogic,c3-pwrc
39 pwrc: power-controller {
40 compatible = "amlogic,meson-a1-pwrc";
H A Damlogic,meson-gx-pwrc.txt20 - "amlogic,meson-gx-pwrc-vpu" for the Meson GX SoCs
21 - "amlogic,meson-g12a-pwrc-vpu" for the Meson G12A SoCs
42 compatible = "amlogic,meson-gx-pwrc-vpu";
H A Dstarfive,jh7110-pmu.yaml40 pwrc: power-controller@17030000 {
/openbmc/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-sm1.dtsi513 power-domains = <&pwrc PWRC_SM1_ETH_ID>;
522 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
526 power-domains = <&pwrc PWRC_SM1_PCIE_ID>;
533 &pwrc {
534 compatible = "amlogic,meson-sm1-pwrc";
538 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
542 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
550 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
554 power-domains = <&pwrc PWRC_SM1_USB_ID>;
558 power-domains = <&pwrc PWRC_SM1_NNA_ID>;
H A Dmeson-g12.dtsi367 power-domains = <&pwrc PWRC_G12A_ETH_ID>;
371 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
375 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
383 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
387 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
H A Damlogic-c3.dtsi53 pwrc: power-controller { label
54 compatible = "amlogic,c3-pwrc";
H A Dmeson-s4.dtsi68 pwrc: power-controller { label
69 compatible = "amlogic,meson-s4-pwrc";
H A Dmeson-a1.dtsi66 pwrc: power-controller { label
67 compatible = "amlogic,meson-a1-pwrc";
H A Dmeson-gx.dtsi76 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
84 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
566 pwrc: power-controller { label
567 compatible = "amlogic,meson-gxbb-pwrc";
593 power-domains = <&pwrc PWRC_GXBB_ETHERNET_MEM_ID>;
/openbmc/linux/Documentation/devicetree/bindings/power/reset/
H A Dmt6323-poweroff.txt8 "mediatek,mt6323-pwrc": for MT6323 PMIC
18 compatible = "mediatek,mt6323-pwrc";
/openbmc/linux/arch/arm/boot/dts/amlogic/
H A Dmeson8m2.dtsi64 &pwrc {
65 compatible = "amlogic,meson8m2-pwrc";
/openbmc/linux/Documentation/devicetree/bindings/soc/amlogic/
H A Damlogic,meson-gx-hhi-sysctrl.yaml30 $ref: /schemas/power/amlogic,meson-ee-pwrc.yaml
116 compatible = "amlogic,meson-gxbb-pwrc";
/openbmc/u-boot/drivers/power/domain/
H A DMakefile10 obj-$(CONFIG_MESON_GX_VPU_POWER_DOMAIN) += meson-gx-pwrc-vpu.o
/openbmc/linux/Documentation/devicetree/bindings/firmware/
H A Damlogic,meson-gxbb-sm.yaml26 $ref: /schemas/power/amlogic,meson-sec-pwrc.yaml#
/openbmc/linux/drivers/mfd/
H A Datc260x-core.c124 { .name = "atc260x-pwrc" },
134 { .name = "atc260x-pwrc" },
/openbmc/linux/Documentation/devicetree/bindings/clock/
H A Dstarfive,jh7110-voutcrg.yaml89 power-domains = <&pwrc JH7110_PD_VOUT>;
H A Dstarfive,jh7110-ispcrg.yaml86 power-domains = <&pwrc JH7110_PD_ISP>;
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dmt6397.txt68 - compatible: "mediatek,mt6323-pwrc"

12