power: add PM_IDLE_DOMAIN to pm.h and remove definations

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin 2022-04-18 15:55:20 +08:00 committed by archer
parent a1aee22a4f
commit 031c89db89
41 changed files with 2 additions and 103 deletions

View File

@ -53,8 +53,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Data
****************************************************************************/

View File

@ -52,8 +52,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -296,10 +296,6 @@
# define CONFIG_IMXRT_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View File

@ -52,8 +52,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Data
****************************************************************************/

View File

@ -51,8 +51,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -51,8 +51,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -51,8 +51,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -51,8 +51,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -52,8 +52,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -122,12 +122,6 @@
/* Power management definitions */
#if defined(CONFIG_PM)
#ifndef PM_IDLE_DOMAIN
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
#endif
#ifndef OK
#define OK 0
#endif

View File

@ -110,12 +110,6 @@
# define CONFIG_S32K1XX_PM_SPI_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
#ifndef PM_IDLE_DOMAIN
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
#endif
#if defined(CONFIG_PM_SPI0_STANDBY) || defined(CONFIG_PM_SPI0_SLEEP)
# define CONFIG_PM_SPI0
#endif

View File

@ -131,12 +131,6 @@
# define CONFIG_S32K1XX_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
#ifndef PM_IDLE_DOMAIN
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
#endif
#if defined(CONFIG_PM_SERIAL0_STANDBY) || defined(CONFIG_PM_SERIAL0_SLEEP)
# define CONFIG_PM_SERIAL0
#endif

View File

@ -52,8 +52,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -51,8 +51,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -215,10 +215,6 @@
# define CONFIG_STM32_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View File

@ -52,8 +52,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -375,9 +375,6 @@
#if defined(CONFIG_PM) && !defined(CONFIG_STM32_PM_SERIAL_ACTIVITY)
# define CONFIG_STM32_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/* Since RX DMA or TX DMA or both may be enabled for a given U[S]ART.
* We need runtime detection in up_dma_setup and up_dma_shutdown

View File

@ -160,9 +160,6 @@
#if defined(CONFIG_PM) && !defined(CONFIG_STM32F0L0G0_PM_SERIAL_ACTIVITY)
# define CONFIG_STM32F0L0G0_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/* Keep track if a Break was set
*

View File

@ -68,9 +68,6 @@
#if defined(CONFIG_PM) && !defined(CONFIG_STM32F0L0G0_PM_SERIAL_ACTIVITY)
# define CONFIG_STM32F0L0G0_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/* Keep track if a Break was set
*

View File

@ -331,9 +331,6 @@
#if defined(CONFIG_PM) && !defined(CONFIG_STM32F7_PM_SERIAL_ACTIVITY)
# define CONFIG_STM32F7_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/* Since RX DMA or TX DMA or both may be enabled for a given U[S]ART.
* We need runtime detection in up_dma_setup and up_dma_shutdown

View File

@ -477,7 +477,6 @@
#endif
#if defined(CONFIG_PM)
# warning stm32h7 serial power managemnt was taken from stm32f7 and is untested!
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/* Since RX DMA or TX DMA or both may be enabled for a given U[S]ART.

View File

@ -52,8 +52,6 @@
# define END_IDLE()
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Functions
****************************************************************************/

View File

@ -182,9 +182,6 @@
#if defined(CONFIG_PM) && !defined(CONFIG_STM32L4_PM_SERIAL_ACTIVITY)
# define CONFIG_STM32L4_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/* Keep track if a Break was set
*

View File

@ -185,9 +185,6 @@
#if defined(CONFIG_PM) && !defined(CONFIG_STM32L5_PM_SERIAL_ACTIVITY)
# define CONFIG_STM32L5_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/* Keep track if a Break was set
*

View File

@ -185,9 +185,6 @@
#if defined(CONFIG_PM) && !defined(CONFIG_STM32U5_PM_SERIAL_ACTIVITY)
# define CONFIG_STM32U5_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/* Keep track if a Break was set
*

View File

@ -67,10 +67,6 @@
# define CONFIG_TIVA_PM_SERIAL_ACTIVITY 10
#endif
#if defined(CONFIG_PM)
# define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View File

@ -84,8 +84,6 @@
# define MM_HEAP(i) UMM_HEAP(i)
#endif
#define PM_IDLE_DOMAIN 0
/****************************************************************************
* Public Data
****************************************************************************/

View File

@ -68,8 +68,6 @@
# define CONFIG_PM_SLEEP_WAKEUP_NSEC 0
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
#ifndef MIN
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif

View File

@ -33,8 +33,6 @@
* Pre-processor Definitions
****************************************************************************/
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Public Functions
****************************************************************************/

View File

@ -85,8 +85,6 @@
# define CONFIG_PM_SLEEP_WAKEUP_NSEC 0
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
#ifndef MIN
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif

View File

@ -56,7 +56,6 @@
# define CONFIG_PM_SLEEP_WAKEUP_NSEC 0
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
#endif
/****************************************************************************

View File

@ -69,8 +69,6 @@
# define CONFIG_PM_ALARM_NSEC 0
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Data
****************************************************************************/

View File

@ -69,8 +69,6 @@
# define CONFIG_PM_ALARM_NSEC 0
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Data
****************************************************************************/

View File

@ -105,8 +105,6 @@
# endif
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Data
****************************************************************************/

View File

@ -96,8 +96,6 @@
# define CONFIG_PM_BUTTON_ACTIVITY 10
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/* Miscellaneous Definitions ************************************************/
#ifndef MIN

View File

@ -69,8 +69,6 @@
# define CONFIG_PM_ALARM_NSEC 0
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Data
****************************************************************************/

View File

@ -69,8 +69,6 @@
# define CONFIG_PM_ALARM_NSEC 0
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Data
****************************************************************************/

View File

@ -58,8 +58,6 @@
# define CONFIG_PM_BUTTON_ACTIVITY 10
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Function Prototypes
****************************************************************************/

View File

@ -44,8 +44,6 @@
# define CONFIG_PM_BUTTON_ACTIVITY 10
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Function Prototypes
****************************************************************************/

View File

@ -44,8 +44,6 @@
# define CONFIG_PM_BUTTON_ACTIVITY 10
#endif
#define PM_IDLE_DOMAIN 0 /* Revisit */
/****************************************************************************
* Private Function Prototypes
****************************************************************************/

View File

@ -82,6 +82,8 @@
# error CONFIG_PM_NDOMAINS invalid
#endif
#define PM_IDLE_DOMAIN 0
/* CONFIG_IDLE_CUSTOM. Some architectures support this definition. This,
* if defined, will allow you replace the default IDLE loop with your
* own, custom idle loop to support board-specific IDLE time power management