| /OK3568_Linux_fs/kernel/drivers/power/reset/ |
| H A D | mt6323-poweroff.c | 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/amlogic/ |
| H A D | meson-secure-pwrc.c | 24 struct meson_secure_pwrc *pwrc; member 49 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off() 62 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off() 77 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on() 126 struct meson_secure_pwrc *pwrc; in meson_secure_pwrc_probe() local 141 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_secure_pwrc_probe() 142 if (!pwrc) { in meson_secure_pwrc_probe() 147 pwrc->fw = meson_sm_get(sm_np); in meson_secure_pwrc_probe() 149 if (!pwrc->fw) in meson_secure_pwrc_probe() 152 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe() [all …]
|
| H A D | meson-ee-pwrc.c | 302 struct meson_ee_pwrc *pwrc; member 321 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_get_power() 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 …]
|
| H A D | Makefile | 5 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
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/ |
| H A D | amlogic,meson-gx-pwrc.txt | 20 - "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";
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/reset/ |
| H A D | mt6323-poweroff.txt | 8 "mediatek,mt6323-pwrc": for MT6323 PMIC 18 compatible = "mediatek,mt6323-pwrc";
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/amlogic/ |
| H A D | meson-sm1.dtsi | 474 power-domains = <&pwrc PWRC_SM1_ETH_ID>; 483 power-domains = <&pwrc PWRC_SM1_PCIE_ID>; 486 &pwrc { 487 compatible = "amlogic,meson-sm1-pwrc"; 491 power-domains = <&pwrc PWRC_SM1_VPU_ID>; 495 power-domains = <&pwrc PWRC_SM1_VPU_ID>; 503 power-domains = <&pwrc PWRC_SM1_VPU_ID>; 507 power-domains = <&pwrc PWRC_SM1_USB_ID>;
|
| H A D | meson-g12.dtsi | 367 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>;
|
| H A D | meson-a1.dtsi | 64 pwrc: power-controller { label 65 compatible = "amlogic,meson-a1-pwrc";
|
| H A D | meson-gx.dtsi | 70 power-domains = <&pwrc PWRC_GXBB_VPU_ID>; 78 power-domains = <&pwrc PWRC_GXBB_VPU_ID>; 557 pwrc: power-controller { label 558 compatible = "amlogic,meson-gxbb-pwrc"; 584 power-domains = <&pwrc PWRC_GXBB_ETHERNET_MEM_ID>;
|
| H A D | meson-gxbb.dtsi | 722 &pwrc { 844 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
|
| H A D | meson-gxl.dtsi | 791 &pwrc { 913 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
|
| H A D | meson-g12-common.dtsi | 1647 pwrc: power-controller { label 1648 compatible = "amlogic,meson-g12a-pwrc";
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | meson8m2.dtsi | 64 &pwrc { 65 compatible = "amlogic,meson8m2-pwrc";
|
| H A D | meson8b.dtsi | 448 power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>; 466 pwrc: power-controller { label 467 compatible = "amlogic,meson8b-pwrc";
|
| H A D | meson8.dtsi | 471 power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>; 488 pwrc: power-controller { label 489 compatible = "amlogic,meson8-pwrc";
|
| H A D | atlas6.dtsi | 765 pwrc@3000 { 766 compatible = "sirf,prima2-pwrc";
|
| H A D | mt6323.dtsi | 262 compatible = "mediatek,mt6323-pwrc";
|
| H A D | prima2.dtsi | 797 pwrc@3000 { 798 compatible = "sirf,prima2-pwrc";
|
| H A D | atlas7.dtsi | 1882 pwrc@3000 { 1883 compatible = "sirf,atlas7-pwrc";
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-prima2/ |
| H A D | sleep.S | 23 @ r6: pwrc base offset
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | mt6397.txt | 60 - compatible: "mediatek,mt6323-pwrc"
|