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

欢迎访问我的个人博客https://intgyl.com/。

rockchip 休眠唤醒

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

代码修改

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

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
              )
       >;
};

你可能感兴趣的:(rk3288,Linux,rockchip)