[PATCH 013/171] button: Add a Kconfig for SPL_BUTTON
Simon Glass
sjg at chromium.org
Mon Jan 30 15:40:46 CET 2023
This is implicitly used in the source and seems useful, so add it.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/button/Kconfig | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/button/Kconfig b/drivers/button/Kconfig
index 8ce2de37d62..60645a7745a 100644
--- a/drivers/button/Kconfig
+++ b/drivers/button/Kconfig
@@ -9,6 +9,10 @@ config BUTTON
can provide access to board-specific buttons. Use of the device tree
for configuration is encouraged.
+config SPL_BUTTON
+ def_bool n # Enable button support (SPL)
+ depends on SPL
+
config BUTTON_ADC
bool "Button adc"
depends on BUTTON
--
2.39.1.456.gfc5497dd1b-goog
More information about the U-Boot
mailing list