Home
last modified time | relevance | path

Searched refs:pwrc (Results 1 – 23 of 23) sorted by relevance

/linux-6.1.9/drivers/power/reset/
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 …]
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 …]
/linux-6.1.9/drivers/soc/amlogic/
Dmeson-secure-pwrc.c25 struct meson_secure_pwrc *pwrc; member
50 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off()
63 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off()
78 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on()
139 struct meson_secure_pwrc *pwrc; in meson_secure_pwrc_probe() local
154 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_secure_pwrc_probe()
155 if (!pwrc) { in meson_secure_pwrc_probe()
160 pwrc->fw = meson_sm_get(sm_np); in meson_secure_pwrc_probe()
162 if (!pwrc->fw) in meson_secure_pwrc_probe()
165 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
[all …]
Dmeson-ee-pwrc.c302 struct meson_ee_pwrc *pwrc; member
321 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_is_powered_off()
334 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
341 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_off()
349 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
370 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
376 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_on()
387 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
400 struct meson_ee_pwrc *pwrc, in meson_ee_pwrc_init_domain() argument
405 dom->pwrc = pwrc; in meson_ee_pwrc_init_domain()
[all …]
DMakefile5 obj-$(CONFIG_MESON_GX_PM_DOMAINS) += meson-gx-pwrc-vpu.o
7 obj-$(CONFIG_MESON_EE_PM_DOMAINS) += meson-ee-pwrc.o
8 obj-$(CONFIG_MESON_SECURE_PM_DOMAINS) += meson-secure-pwrc.o
/linux-6.1.9/Documentation/devicetree/bindings/power/
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 …]
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
38 pwrc: power-controller {
39 compatible = "amlogic,meson-a1-pwrc";
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";
/linux-6.1.9/Documentation/devicetree/bindings/power/reset/
Dmt6323-poweroff.txt8 "mediatek,mt6323-pwrc": for MT6323 PMIC
18 compatible = "mediatek,mt6323-pwrc";
/linux-6.1.9/arch/arm64/boot/dts/amlogic/
Dmeson-sm1.dtsi511 power-domains = <&pwrc PWRC_SM1_ETH_ID>;
520 power-domains = <&pwrc PWRC_SM1_PCIE_ID>;
523 &pwrc {
524 compatible = "amlogic,meson-sm1-pwrc";
528 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
532 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
540 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
544 power-domains = <&pwrc PWRC_SM1_USB_ID>;
Dmeson-s4.dtsi64 pwrc: power-controller { label
65 compatible = "amlogic,meson-s4-pwrc";
Dmeson-a1.dtsi64 pwrc: power-controller { label
65 compatible = "amlogic,meson-a1-pwrc";
Dmeson-g12.dtsi367 power-domains = <&pwrc PWRC_G12A_ETH_ID>;
371 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
379 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
383 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
Dmeson-gx.dtsi76 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
84 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
564 pwrc: power-controller { label
565 compatible = "amlogic,meson-gxbb-pwrc";
591 power-domains = <&pwrc PWRC_GXBB_ETHERNET_MEM_ID>;
Dmeson-gxbb.dtsi722 &pwrc {
844 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
Dmeson-gxl.dtsi791 &pwrc {
913 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
Dmeson-axg.dtsi283 power-domains = <&pwrc PWRC_AXG_ETHERNET_MEM_ID>;
1224 pwrc: power-controller { label
1225 compatible = "amlogic,meson-axg-pwrc";
Dmeson-g12-common.dtsi1614 pwrc: power-controller { label
1615 compatible = "amlogic,meson-g12a-pwrc";
/linux-6.1.9/arch/arm/boot/dts/
Dmeson8m2.dtsi64 &pwrc {
65 compatible = "amlogic,meson8m2-pwrc";
Dmeson8b.dtsi579 power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>;
597 pwrc: power-controller { label
598 compatible = "amlogic,meson8b-pwrc";
Dmeson8.dtsi602 power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>;
619 pwrc: power-controller { label
620 compatible = "amlogic,meson8-pwrc";
Dmt6323.dtsi262 compatible = "mediatek,mt6323-pwrc";
/linux-6.1.9/Documentation/devicetree/bindings/mfd/
Dmt6397.txt65 - compatible: "mediatek,mt6323-pwrc"