[rk3288/rk3399][Android] 系统休眠唤醒

rockchip 休眠唤醒

  • 为降低系统功耗,在设备空闲时使其进入休眠状态
  • rk3288 rk3399有多路pwm,休眠状态下可修改其电压值,唤醒后恢复
    

    代码修改

    这部分功能rockchip 已经实现,只需将dts中rockchip-suspend使能即可

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
rockchip_suspend: rockchip-suspend {
compatible = "rockchip,pm-rk3288";
status = "okay";
rockchip,sleep-mode-config = <
(0
|RKPM_CTR_PWR_DMNS
|RKPM_CTR_GTCLKS
|RKPM_CTR_PLLS
|RKPM_CTR_ARMOFF_LPMD
|RKPM_CTR_SYSCLK_OSC_DIS
)
>;
rockchip,wakeup-config = <
(0
| RKPM_GPIO_WKUP_EN
)
>;
rockchip,pwm-regulator-config = <
(0
| PWM2_REGULATOR_EN
)
>;
};
您的支持将鼓励我继续创作!