aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/Kconfig
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2024-04-04 09:51:03 +0200
committerStefan Roese <sr@denx.de>2024-04-04 10:45:27 +0200
commita5505de01d384cc9e283705092830683494a8505 (patch)
treef00ff38e06888743d684c9c6d163bd24dd553985 /drivers/misc/Kconfig
parent68e09ae19eb6bd0214ecf89d3037b4172173ecdf (diff)
downloadu-boot-a5505de01d384cc9e283705092830683494a8505.zip
u-boot-a5505de01d384cc9e283705092830683494a8505.tar.gz
u-boot-a5505de01d384cc9e283705092830683494a8505.tar.bz2
gpio: turris_omnia_mcu: Add support for system power off via sysreset
Add support for system power off via UCLASS_SYSRESET. Newer versions of Turris Omnia MCU firmware can power off the board (MCU will disable almost all voltage regulators and go into low power mode). Move the MCU driver into drivers/misc and register it under UCLASS_MISC. The sysreset and gpio device are bound as child devices of the MCU device. Signed-off-by: Marek BehĂșn <kabel@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r--drivers/misc/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 98043fc..041de53 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -505,6 +505,16 @@ config TEST_DRV
model. This should only be enabled for testing as it is not useful for
anything else.
+config TURRIS_OMNIA_MCU
+ bool "Enable Turris Omnia MCU driver"
+ depends on DM_I2C
+ depends on DM_GPIO
+ depends on SYSRESET
+ default y if TARGET_TURRIS_OMNIA
+ help
+ This enables support for Turris Omnia MCU connected GPIOs and
+ board power off.
+
config USB_HUB_USB251XB
tristate "USB251XB Hub Controller Configuration Driver"
depends on I2C