Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0-only
menuconfig CONFIG_POWER_RESET
	bool "Board level reset or power off"
	help
	  Provides a number of drivers which either reset a complete board
	  or shut it down, by manipulating the main power supply on the board.

	  Say Y here to enable board reset and power off

if CONFIG_POWER_RESET

config CONFIG_POWER_RESET_AS3722
	bool "ams AS3722 power-off driver"
	depends on CONFIG_MFD_AS3722
	help
	  This driver supports turning off board via a ams AS3722 power-off.

config CONFIG_POWER_RESET_AT91_POWEROFF
	tristate "Atmel AT91 poweroff driver"
	depends on CONFIG_ARCH_AT91
	default CONFIG_SOC_AT91SAM9 || CONFIG_SOC_SAMA5
	help
	  This driver supports poweroff for Atmel AT91SAM9 and SAMA5
	  SoCs

config CONFIG_POWER_RESET_AT91_RESET
	tristate "Atmel AT91 reset driver"
	depends on CONFIG_ARCH_AT91
	default CONFIG_SOC_AT91SAM9 || CONFIG_SOC_SAMA5
	help
	  This driver supports restart for Atmel AT91SAM9 and SAMA5
	  SoCs

config CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC
	tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
	depends on CONFIG_ARCH_AT91
	default CONFIG_SOC_SAMA5
	help
	  This driver supports the alternate shutdown controller for some Atmel
	  SAMA5 SoCs. It is present for example on SAMA5D2 SoC.

config CONFIG_POWER_RESET_AXXIA
	bool "LSI Axxia reset driver"
	depends on CONFIG_ARCH_AXXIA
	help
	  This driver supports restart for Axxia SoC.

	  Say Y if you have an Axxia family SoC.

config CONFIG_POWER_RESET_BRCMKONA
	bool "Broadcom Kona reset driver"
	depends on CONFIG_ARM || CONFIG_COMPILE_TEST
	default CONFIG_ARCH_BCM_MOBILE
	help
	  This driver provides restart support for Broadcom Kona chips.

	  Say Y here if you have a Broadcom Kona-based board and you wish
	  to have restart support.

config CONFIG_POWER_RESET_BRCMSTB
	bool "Broadcom STB reset driver"
	depends on CONFIG_ARM || CONFIG_ARM64 || CONFIG_MIPS || CONFIG_COMPILE_TEST
	depends on CONFIG_MFD_SYSCON
	default CONFIG_ARCH_BRCMSTB || CONFIG_BMIPS_GENERIC
	help
	  This driver provides restart support for Broadcom STB boards.

	  Say Y here if you have a Broadcom STB board and you wish
	  to have restart support.

config CONFIG_POWER_RESET_GEMINI_POWEROFF
	bool "Cortina Gemini power-off driver"
	depends on CONFIG_ARCH_GEMINI || CONFIG_COMPILE_TEST
	depends on CONFIG_OF && CONFIG_HAS_IOMEM
	default CONFIG_ARCH_GEMINI
	help
	  This driver supports turning off the Cortina Gemini SoC.
	  Select this if you're building a kernel with Gemini SoC support.

config CONFIG_POWER_RESET_GPIO
	bool "GPIO power-off driver"
	depends on CONFIG_OF_GPIO
	help
	  This driver supports turning off your board via a GPIO line.
	  If your board needs a GPIO high/low to power down, say Y and
	  create a binding in your devicetree.

config CONFIG_POWER_RESET_GPIO_RESTART
	bool "GPIO restart driver"
	depends on CONFIG_OF_GPIO
	help
	  This driver supports restarting your board via a GPIO line.
	  If your board needs a GPIO high/low to restart, say Y and
	  create a binding in your devicetree.

config CONFIG_POWER_RESET_HISI
	bool "Hisilicon power-off driver"
	depends on CONFIG_ARCH_HISI
	help
	  Reboot support for Hisilicon boards.

config CONFIG_POWER_RESET_MSM
	bool "Qualcomm MSM power-off driver"
	depends on CONFIG_ARCH_QCOM
	help
	  Power off and restart support for Qualcomm boards.

config CONFIG_POWER_RESET_QCOM_PON
	tristate "Qualcomm power-on driver"
	depends on CONFIG_ARCH_QCOM
	depends on CONFIG_MFD_SPMI_PMIC
	select CONFIG_REBOOT_MODE
	help
	  Power On support for Qualcomm boards.
	  If you have a Qualcomm platform and need support for
	  power-on and reboot reason, Say Y.
	  If unsure, Say N.

config CONFIG_POWER_RESET_OCELOT_RESET
	bool "Microsemi Ocelot reset driver"
	depends on CONFIG_MSCC_OCELOT || CONFIG_COMPILE_TEST
	select CONFIG_MFD_SYSCON
	help
	  This driver supports restart for Microsemi Ocelot SoC.

config CONFIG_POWER_RESET_PIIX4_POWEROFF
	tristate "Intel PIIX4 power-off driver"
	depends on CONFIG_PCI
	depends on CONFIG_MIPS || CONFIG_COMPILE_TEST
	help
	  This driver supports powering off a system using the Intel PIIX4
	  southbridge, for example the CONFIG_MIPS Malta development board. The
	  southbridge SOff state is entered in response to a request to
	  power off the system.

config CONFIG_POWER_RESET_LTC2952
	bool "LTC2952 PowerPath power-off driver"
	depends on CONFIG_OF_GPIO
	help
	  This driver supports an external powerdown trigger and board power
	  down via the LTC2952. Bindings are made in the device tree.

config CONFIG_POWER_RESET_QNAP
	bool "QNAP power-off driver"
	depends on CONFIG_OF_GPIO && CONFIG_PLAT_ORION
	help
	  This driver supports turning off QNAP NAS devices by sending
	  commands to the microcontroller which controls the main power.

	  Say Y if you have a QNAP NAS.

config CONFIG_POWER_RESET_RESTART
	bool "Restart power-off driver"
	help
	  Some boards don't actually have the ability to power off.
	  Instead they restart, and u-boot holds the SoC until the
	  user presses a key. u-boot then boots into Linux.

config CONFIG_POWER_RESET_ST
	bool "ST restart driver"
	depends on CONFIG_ARCH_STI
	help
	  Reset support for STMicroelectronics boards.

config CONFIG_POWER_RESET_VERSATILE
	bool "ARM Versatile family reboot driver"
	depends on CONFIG_ARM
	depends on CONFIG_MFD_SYSCON
	depends on CONFIG_OF
	help
	  Power off and restart support for CONFIG_ARM Versatile family of
	  reference boards.

config CONFIG_POWER_RESET_VEXPRESS
	bool "ARM Versatile Express power-off and reset driver"
	depends on CONFIG_ARM || CONFIG_ARM64
	depends on CONFIG_VEXPRESS_CONFIG
	help
	  Power off and reset support for the CONFIG_ARM Ltd. Versatile
	  Express boards.

config CONFIG_POWER_RESET_XGENE
	bool "APM SoC X-Gene reset driver"
	depends on CONFIG_ARM64
	help
	  Reboot support for the CONFIG_APM SoC X-Gene Eval boards.

config CONFIG_POWER_RESET_KEYSTONE
	bool "Keystone reset driver"
	depends on CONFIG_ARCH_KEYSTONE || CONFIG_COMPILE_TEST
	depends on CONFIG_HAS_IOMEM
	select CONFIG_MFD_SYSCON
	help
	  Reboot support for the KEYSTONE SoCs.

config CONFIG_POWER_RESET_SYSCON
	bool "Generic SYSCON regmap reset driver"
	depends on CONFIG_OF
	depends on CONFIG_HAS_IOMEM
	select CONFIG_MFD_SYSCON
	help
	  Reboot support for generic SYSCON mapped register reset.

config CONFIG_POWER_RESET_SYSCON_POWEROFF
	bool "Generic SYSCON regmap poweroff driver"
	depends on CONFIG_OF
	depends on CONFIG_HAS_IOMEM
	select CONFIG_MFD_SYSCON
	help
	  Poweroff support for generic SYSCON mapped register poweroff.

config CONFIG_POWER_RESET_RMOBILE
	tristate "Renesas R-Mobile reset driver"
	depends on CONFIG_ARCH_RMOBILE || CONFIG_COMPILE_TEST
	depends on CONFIG_HAS_IOMEM
	help
	  Reboot support for Renesas R-Mobile and SH-Mobile SoCs.

config CONFIG_POWER_RESET_ZX
	tristate "ZTE SoCs reset driver"
	depends on CONFIG_ARCH_ZX || CONFIG_COMPILE_TEST
	depends on CONFIG_HAS_IOMEM
	help
	  Reboot support for ZTE SoCs.

config CONFIG_REBOOT_MODE
	tristate

config CONFIG_SYSCON_REBOOT_MODE
	tristate "Generic SYSCON regmap reboot mode driver"
	depends on CONFIG_OF
	depends on CONFIG_MFD_SYSCON
	select CONFIG_REBOOT_MODE
	help
	  Say y here will enable reboot mode driver. This will
	  get reboot mode arguments and store it in SYSCON mapped
	  register, then the bootloader can read it to take different
	  action according to the mode.

config CONFIG_POWER_RESET_SC27XX
	bool "Spreadtrum SC27xx PMIC power-off driver"
	depends on CONFIG_MFD_SC27XX_PMIC || CONFIG_COMPILE_TEST
	help
	  This driver supports powering off a system through
	  Spreadtrum SC27xx series PMICs. The SC27xx series
	  PMICs includes the SC2720, SC2721, SC2723, SC2730
	  and SC2731 chips.

config CONFIG_NVMEM_REBOOT_MODE
	tristate "Generic NVMEM reboot mode driver"
	depends on CONFIG_OF
	select CONFIG_REBOOT_MODE
	help
	  Say y here will enable reboot mode driver. This will
	  get reboot mode arguments and store it in a CONFIG_NVMEM cell,
	  then the bootloader can read it and take different
	  action according to the mode.

endif