Power off support now depends on CONFIG_ARCH_HAVE_POWEROFF

This commit is contained in:
Gregory Nutt 2015-07-03 06:53:32 -06:00
parent 21fd1e50f4
commit ec193059c1
7 changed files with 35 additions and 0 deletions

View file

@ -1025,6 +1025,7 @@ config ARCH_BOARD_VSN
depends on ARCH_CHIP_STM32F103RE depends on ARCH_CHIP_STM32F103RE
select ARCH_HAVE_LEDS select ARCH_HAVE_LEDS
select ARCH_HAVE_BUTTONS select ARCH_HAVE_BUTTONS
select ARCH_HAVE_POWEROFF
---help--- ---help---
ISOTEL NetClamps VSN V1.2 ready2go sensor network platform based on the ISOTEL NetClamps VSN V1.2 ready2go sensor network platform based on the
STMicro STM32F103RET6. Contributed by Uros Platise. See STMicro STM32F103RET6. Contributed by Uros Platise. See
@ -1664,31 +1665,59 @@ endif
config LIB_BOARDCTL config LIB_BOARDCTL
bool "Enable boardctl() interface" bool "Enable boardctl() interface"
default n default n
---help---
Enables support for the boardctl() interface. Architecture
specific logic must provide board_app_initialize() interface.
if LIB_BOARDCTL if LIB_BOARDCTL
config BOARDCTL_POWEROFF config BOARDCTL_POWEROFF
bool "Enable power off command" bool "Enable power off command"
default n default n
depends on ARCH_HAVE_POWEROFF
---help---
Enables support for the BOARDIOC_POWEROFF boardctl() command.
Architecture specific logic must provide board_power_off()
interface.
config BOARDCTL_TSCTEST config BOARDCTL_TSCTEST
bool "Enable touchscreen test interfaces" bool "Enable touchscreen test interfaces"
default n default n
---help---
Enables support for the BOARDIOC_TSCTEST_SETUP and
BOARDIOC_TSCTEST_TEARDOWN boardctl() commands. Architecture
specific logic must provide board_tsc_setup() and
board_tsc_teardown() interfaces.
config BOARDCTL_ADCTEST config BOARDCTL_ADCTEST
bool "Enable ADC test interfaces" bool "Enable ADC test interfaces"
default n default n
---help---
Enables support for the BOARDIOC_ADCTEST_SETUP boardctl() command.
Architecture specific logic must provide board_adc_setup()
interface.
config BOARDCTL_PWMTEST config BOARDCTL_PWMTEST
bool "Enable PWM test interfaces" bool "Enable PWM test interfaces"
default n default n
---help---
Enables support for the BOARDIOC_PWMTEST_SETUP boardctl() command.
Architecture specific logic must provide board_pwm_setup()
interface.
config BOARDCTL_GRAPHICS config BOARDCTL_GRAPHICS
bool "Enable custom graphics initialization interfaces" bool "Enable custom graphics initialization interfaces"
default n default n
---help---
Enables support for the BOARDIOC_GRAPHICS_SETUP boardctl() command.
Architecture specific logic must provide board_graphics_setup()
interface.
config BOARDCTL_IOCTL config BOARDCTL_IOCTL
bool "Board-specific boardctl() commands" bool "Board-specific boardctl() commands"
default n default n
---help---
Enables support for the BOARDIOC_POWEROFF boardctl() command.
Architecture specific logic must provide board_ioctl() interface.
endif # LIB_BOARDCTL endif # LIB_BOARDCTL

View file

@ -163,6 +163,7 @@ CONFIG_ARCH_HAVE_VFORK=y
# CONFIG_ARCH_HAVE_MPU is not set # CONFIG_ARCH_HAVE_MPU is not set
# CONFIG_ARCH_NAND_HWECC is not set # CONFIG_ARCH_NAND_HWECC is not set
# CONFIG_ARCH_HAVE_EXTCLK is not set # CONFIG_ARCH_HAVE_EXTCLK is not set
CONFIG_ARCH_HAVE_POWEROFF=y
CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_STACKDUMP=y
# CONFIG_ENDIAN_BIG is not set # CONFIG_ENDIAN_BIG is not set
# CONFIG_ARCH_IDLE_CUSTOM is not set # CONFIG_ARCH_IDLE_CUSTOM is not set

View file

@ -163,6 +163,7 @@ CONFIG_ARCH_HAVE_VFORK=y
# CONFIG_ARCH_HAVE_MPU is not set # CONFIG_ARCH_HAVE_MPU is not set
# CONFIG_ARCH_NAND_HWECC is not set # CONFIG_ARCH_NAND_HWECC is not set
# CONFIG_ARCH_HAVE_EXTCLK is not set # CONFIG_ARCH_HAVE_EXTCLK is not set
CONFIG_ARCH_HAVE_POWEROFF=y
CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_STACKDUMP=y
# CONFIG_ENDIAN_BIG is not set # CONFIG_ENDIAN_BIG is not set
# CONFIG_ARCH_IDLE_CUSTOM is not set # CONFIG_ARCH_IDLE_CUSTOM is not set

View file

@ -164,6 +164,7 @@ CONFIG_ARCH_HAVE_VFORK=y
# CONFIG_ARCH_HAVE_MPU is not set # CONFIG_ARCH_HAVE_MPU is not set
# CONFIG_ARCH_NAND_HWECC is not set # CONFIG_ARCH_NAND_HWECC is not set
# CONFIG_ARCH_HAVE_EXTCLK is not set # CONFIG_ARCH_HAVE_EXTCLK is not set
CONFIG_ARCH_HAVE_POWEROFF=y
CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_STACKDUMP=y
# CONFIG_ENDIAN_BIG is not set # CONFIG_ENDIAN_BIG is not set
# CONFIG_ARCH_IDLE_CUSTOM is not set # CONFIG_ARCH_IDLE_CUSTOM is not set

View file

@ -163,6 +163,7 @@ CONFIG_ARCH_HAVE_VFORK=y
# CONFIG_ARCH_HAVE_MPU is not set # CONFIG_ARCH_HAVE_MPU is not set
# CONFIG_ARCH_NAND_HWECC is not set # CONFIG_ARCH_NAND_HWECC is not set
# CONFIG_ARCH_HAVE_EXTCLK is not set # CONFIG_ARCH_HAVE_EXTCLK is not set
CONFIG_ARCH_HAVE_POWEROFF=y
CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_STACKDUMP=y
# CONFIG_ENDIAN_BIG is not set # CONFIG_ENDIAN_BIG is not set
# CONFIG_ARCH_IDLE_CUSTOM is not set # CONFIG_ARCH_IDLE_CUSTOM is not set

View file

@ -164,6 +164,7 @@ CONFIG_ARCH_HAVE_VFORK=y
# CONFIG_ARCH_HAVE_MPU is not set # CONFIG_ARCH_HAVE_MPU is not set
# CONFIG_ARCH_NAND_HWECC is not set # CONFIG_ARCH_NAND_HWECC is not set
# CONFIG_ARCH_HAVE_EXTCLK is not set # CONFIG_ARCH_HAVE_EXTCLK is not set
CONFIG_ARCH_HAVE_POWEROFF=y
CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_STACKDUMP=y
# CONFIG_ENDIAN_BIG is not set # CONFIG_ENDIAN_BIG is not set
# CONFIG_ARCH_IDLE_CUSTOM is not set # CONFIG_ARCH_IDLE_CUSTOM is not set

View file

@ -434,6 +434,7 @@ CONFIG_ARCH_HAVE_VFORK=y
CONFIG_ARCH_HAVE_MPU=y CONFIG_ARCH_HAVE_MPU=y
# CONFIG_ARCH_NAND_HWECC is not set # CONFIG_ARCH_NAND_HWECC is not set
# CONFIG_ARCH_HAVE_EXTCLK is not set # CONFIG_ARCH_HAVE_EXTCLK is not set
CONFIG_ARCH_HAVE_POWEROFF=y
# CONFIG_ARCH_USE_MPU is not set # CONFIG_ARCH_USE_MPU is not set
# CONFIG_ARCH_IRQPRIO is not set # CONFIG_ARCH_IRQPRIO is not set
CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_STACKDUMP=y