summaryrefslogtreecommitdiff
path: root/drivers/platform/cznic/Kconfig
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2024-07-19 10:57:54 +0200
committerArnd Bergmann <arnd@arndb.de>2024-08-07 14:43:54 +0200
commitc7da0d4e33ce262dbed7b9ae4cf013aad0f541f6 (patch)
tree2c94da1413b7251922e1cda81170886787e7f771 /drivers/platform/cznic/Kconfig
parent019f87f1ef967c5a5b263f21ad100f46c874505a (diff)
platform: cznic: turris-omnia-mcu: Make TRNG code optional
Make the TRNG part of the driver optional, under a boolean config option. This makes the driver turris-omnia-mcu available for compilation even if HW_RANDOM is disabled. Fixes: ed46f1f7731d ("platform: cznic: turris-omnia-mcu: fix Kconfig dependencies") Signed-off-by: Marek BehĂșn <kabel@kernel.org> Link: https://lore.kernel.org/r/20240719085756.30598-3-kabel@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/platform/cznic/Kconfig')
-rw-r--r--drivers/platform/cznic/Kconfig10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/platform/cznic/Kconfig b/drivers/platform/cznic/Kconfig
index b56c343e21d6..98f17562646e 100644
--- a/drivers/platform/cznic/Kconfig
+++ b/drivers/platform/cznic/Kconfig
@@ -18,7 +18,6 @@ config TURRIS_OMNIA_MCU
depends on I2C
depends on OF
depends on GPIOLIB
- depends on HW_RANDOM
depends on RTC_CLASS
select GPIOLIB_IRQCHIP
help
@@ -28,7 +27,6 @@ config TURRIS_OMNIA_MCU
- board poweroff into true low power mode (with voltage regulators
disabled) and the ability to configure wake up from this mode (via
rtcwake)
- - true random number generator (if available on the MCU)
- GPIO pins
- to get front button press events (the front button can be
configured either to generate press events to the CPU or to change
@@ -56,6 +54,14 @@ config TURRIS_OMNIA_MCU_WATCHDOG
Say Y here to add support for watchdog provided by CZ.NIC's Turris
Omnia MCU.
+config TURRIS_OMNIA_MCU_TRNG
+ bool "Turris Omnia MCU true random number generator"
+ default y
+ depends on HW_RANDOM
+ help
+ Say Y here to add support for the true random number generator
+ provided by CZ.NIC's Turris Omnia MCU.
+
endif # TURRIS_OMNIA_MCU
endif # CZNIC_PLATFORMS