diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2018-11-27 15:49:50 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-12-07 07:26:32 +0300 |
commit | 7f84fc670b17fca3d8d1b7c9472a19bb8085c890 (patch) | |
tree | 5af913847507ee1d58408c5f053bcdb2731b0133 /drivers/hwspinlock/Kconfig | |
parent | 3b074fb22b8f09178200b969395fa9f3d97a67e6 (diff) | |
download | u-boot-7f84fc670b17fca3d8d1b7c9472a19bb8085c890.tar.xz |
dm: Add Hardware Spinlock class
This is uclass for Hardware Spinlocks.
It implements two mandatory operations: lock and unlock
and one optional relax operation.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'drivers/hwspinlock/Kconfig')
-rw-r--r-- | drivers/hwspinlock/Kconfig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/hwspinlock/Kconfig b/drivers/hwspinlock/Kconfig new file mode 100644 index 0000000000..de367fd2a9 --- /dev/null +++ b/drivers/hwspinlock/Kconfig @@ -0,0 +1,16 @@ +menu "Hardware Spinlock Support" + +config DM_HWSPINLOCK + bool "Enable U-Boot hardware spinlock support" + help + This option enables U-Boot hardware spinlock support + +config HWSPINLOCK_SANDBOX + bool "Enable Hardware Spinlock support for Sandbox" + depends on SANDBOX && DM_HWSPINLOCK + help + Enable hardware spinlock support in Sandbox. This is a dummy device that + can be probed and support all the methods of HWSPINLOCK, but does not + really do anything. + +endmenu |