power: simplify SYS_POWER_*_SUPPORTED Kconfig options

This commit removes dependency on SYS_POWER_LOW_POWER_STATES_SUPPORTED,
SYS_POWER_DEEP_SLEEP_STATES_SUPPORTED Kconfig options. Power management
SYS_POWER_LOW_POWER_STATES, SYS_POWER_DEEP_SLEEP_STATES options depend
now directly on specific power states supported by the given SoC. This
simplifies maintenance of SoC Kconfig files.

Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
This commit is contained in:
Piotr Mienkowski 2019-02-24 00:07:50 +01:00 committed by Anas Nashif
parent 336d3d3adc
commit c75187587b
12 changed files with 6 additions and 28 deletions

View file

@ -350,13 +350,6 @@ config ARCH_HAS_THREAD_ABORT
# Hidden PM feature configs which are to be selected by
# individual SoC.
#
config SYS_POWER_LOW_POWER_STATES_SUPPORTED
# Hidden
bool
help
This option signifies that the target supports the SYS_POWER_LOW_POWER_STATES
configuration option.
config SYS_POWER_STATE_CPU_LPS_1_SUPPORTED
# Hidden
bool
@ -378,13 +371,6 @@ config SYS_POWER_STATE_CPU_LPS_3_SUPPORTED
This option signifies that the target supports the SYS_POWER_STATE_CPU_LPS_3
configuration option.
config SYS_POWER_DEEP_SLEEP_STATES_SUPPORTED
# Hidden
bool
help
This option signifies that the target supports the SYS_POWER_DEEP_SLEEP_STATES
configuration option.
config SYS_POWER_STATE_DEEP_SLEEP_1_SUPPORTED
# Hidden
bool

View file

@ -17,7 +17,9 @@ menuconfig SYS_POWER_MANAGEMENT
if SYS_POWER_MANAGEMENT
config SYS_POWER_LOW_POWER_STATES
bool "Low Power states"
depends on SYS_POWER_LOW_POWER_STATES_SUPPORTED
depends on SYS_POWER_STATE_CPU_LPS_1_SUPPORTED || \
SYS_POWER_STATE_CPU_LPS_2_SUPPORTED || \
SYS_POWER_STATE_CPU_LPS_3_SUPPORTED
help
This option enables the kernel to interface with a power manager
application. This permits the system to enter a custom CPU low power
@ -27,7 +29,9 @@ config SYS_POWER_LOW_POWER_STATES
config SYS_POWER_DEEP_SLEEP_STATES
bool "Deep Sleep states"
depends on SYS_POWER_DEEP_SLEEP_STATES_SUPPORTED
depends on SYS_POWER_STATE_DEEP_SLEEP_1_SUPPORTED || \
SYS_POWER_STATE_DEEP_SLEEP_2_SUPPORTED || \
SYS_POWER_STATE_DEEP_SLEEP_3_SUPPORTED
help
This option enables the kernel to interface with a power manager
application. This permits the system to enter a Deep sleep state

View file

@ -1,7 +1,6 @@
config NRF5_POWER_MGMT_EXAMPLE
bool
default y
select SYS_POWER_LOW_POWER_STATES_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_2_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_3_SUPPORTED
help

View file

@ -1,10 +1,8 @@
config SOC_QUARK_SE_C1000_SS
bool "Intel Quark SE C1000- Sensor Sub System"
select SYS_POWER_LOW_POWER_STATES_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_1_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_2_SUPPORTED
select SYS_POWER_DEEP_SLEEP_STATES_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_1_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_2_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_3_SUPPORTED

View file

@ -13,7 +13,6 @@ config SOC_SERIES_NRF51X
select NRF_RTC_TIMER
select CLOCK_CONTROL
select CLOCK_CONTROL_NRF
select SYS_POWER_DEEP_SLEEP_STATES_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_1_SUPPORTED
select XIP
select HAS_CMSIS

View file

@ -14,7 +14,6 @@ config SOC_SERIES_NRF52X
select NRF_RTC_TIMER
select CLOCK_CONTROL
select CLOCK_CONTROL_NRF
select SYS_POWER_DEEP_SLEEP_STATES_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_1_SUPPORTED
select XIP
select HAS_CMSIS

View file

@ -16,7 +16,6 @@ config SOC_SERIES_NRF91X
select NRF_RTC_TIMER
select CLOCK_CONTROL
select CLOCK_CONTROL_NRF
select SYS_POWER_DEEP_SLEEP_STATES_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_1_SUPPORTED
select XIP
select HAS_CMSIS

View file

@ -13,7 +13,6 @@ config SOC_SERIES_EFM32PG12B
select CPU_HAS_FPU
select SOC_FAMILY_EXX32
select CPU_HAS_SYSTICK
select SYS_POWER_LOW_POWER_STATES_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_1_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_2_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_3_SUPPORTED

View file

@ -13,7 +13,6 @@ config SOC_SERIES_EFR32FG1P
select CPU_HAS_FPU
select SOC_FAMILY_EXX32
select CPU_HAS_SYSTICK
select SYS_POWER_LOW_POWER_STATES_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_1_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_2_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_3_SUPPORTED

View file

@ -13,7 +13,6 @@ config SOC_SERIES_EFR32MG12P
select CPU_HAS_SYSTICK
select HAS_SILABS_GECKO
select HAS_SWO
select SYS_POWER_LOW_POWER_STATES_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_1_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_2_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_3_SUPPORTED

View file

@ -11,11 +11,9 @@ config SOC_SERIES_QUARK_SE
select LOAPIC
select LOAPIC_TIMER
select XIP
select SYS_POWER_LOW_POWER_STATES_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_1_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_2_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_3_SUPPORTED
select SYS_POWER_DEEP_SLEEP_STATES_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_1_SUPPORTED
select SYS_POWER_STATE_DEEP_SLEEP_2_SUPPORTED
select BOOTLOADER_CONTEXT_RESTORE_SUPPORTED

View file

@ -1,7 +1,6 @@
config KERNEL_PROFILING_API_TEST
bool
default y
select SYS_POWER_LOW_POWER_STATES_SUPPORTED
select SYS_POWER_STATE_CPU_LPS_1_SUPPORTED
help
Hidden option enabling LPS_0 power state regardless of hardware