[PATCH 009/171] dm: Add a Kconfig for SPL_DM_HWSPINLOCK

Simon Glass
2023-01-30T14:48:50Z

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

drivers/hwspinlock/Kconfig | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/hwspinlock/Kconfig b/drivers/hwspinlock/Kconfig
index 96d4f5d6ca3..56406da3d87 100644
--- a/drivers/hwspinlock/Kconfig
+++ b/drivers/hwspinlock/Kconfig
@@ -5,6 +5,10 @@ config DM_HWSPINLOCK
help
This option enables U-Boot hardware spinlock support

+config SPL_DM_HWSPINLOCK
+ def_bool n # Enable U-Boot hardware spinlock support (SPL)
+ depends on SPL
+
config HWSPINLOCK_SANDBOX
bool "Enable Hardware Spinlock support for Sandbox"
depends on SANDBOX && DM_HWSPINLOCK
--
2.39.1.456.gfc5497dd1b-goog