power/PM: add domain inner update power state feature

In some scenarios, We need to update state information internally.
Instead of use idle-task to drive the checkstate and change state
function.

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin
2021-12-21 15:38:38 +08:00
committed by Xiang Xiao
parent 16132c3345
commit f7a7eb9ee3
6 changed files with 174 additions and 7 deletions
+18
View File
@@ -55,6 +55,7 @@
#include <nuttx/config.h>
#include <stdbool.h>
#include <queue.h>
#ifdef CONFIG_PM
@@ -312,6 +313,23 @@ extern "C"
void pm_initialize(void);
/****************************************************************************
* Name: pm_auto_update
*
* Description:
* This function set the domain with assign update mode.
*
* Input Parameters:
* domain - The PM domain to check
* auto_update - The PM domain auto update or not
*
* Returned Value:
* None.
*
****************************************************************************/
void pm_auto_update(int domain, bool auto_update);
/****************************************************************************
* Name: pm_register
*