162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Generic HWSPINLOCK framework
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_cimenuconfig HWSPINLOCK
762306a36Sopenharmony_ci	bool "Hardware Spinlock drivers"
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciif HWSPINLOCK
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciconfig HWSPINLOCK_OMAP
1262306a36Sopenharmony_ci	tristate "OMAP Hardware Spinlock device"
1362306a36Sopenharmony_ci	depends on ARCH_OMAP4 || SOC_OMAP5 || SOC_DRA7XX || SOC_AM33XX || SOC_AM43XX || ARCH_K3 || COMPILE_TEST
1462306a36Sopenharmony_ci	help
1562306a36Sopenharmony_ci	  Say y here to support the OMAP Hardware Spinlock device (firstly
1662306a36Sopenharmony_ci	  introduced in OMAP4).
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci	  If unsure, say N.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciconfig HWSPINLOCK_QCOM
2162306a36Sopenharmony_ci	tristate "Qualcomm Hardware Spinlock device"
2262306a36Sopenharmony_ci	depends on ARCH_QCOM || COMPILE_TEST
2362306a36Sopenharmony_ci	select MFD_SYSCON
2462306a36Sopenharmony_ci	help
2562306a36Sopenharmony_ci	  Say y here to support the Qualcomm Hardware Mutex functionality, which
2662306a36Sopenharmony_ci	  provides a synchronisation mechanism for the various processors on
2762306a36Sopenharmony_ci	  the SoC.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci	  If unsure, say N.
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciconfig HWSPINLOCK_SPRD
3262306a36Sopenharmony_ci	tristate "SPRD Hardware Spinlock device"
3362306a36Sopenharmony_ci	depends on ARCH_SPRD || COMPILE_TEST
3462306a36Sopenharmony_ci	help
3562306a36Sopenharmony_ci	  Say y here to support the SPRD Hardware Spinlock device.
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci	  If unsure, say N.
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ciconfig HWSPINLOCK_STM32
4062306a36Sopenharmony_ci	tristate "STM32 Hardware Spinlock device"
4162306a36Sopenharmony_ci	depends on MACH_STM32MP157 || COMPILE_TEST
4262306a36Sopenharmony_ci	help
4362306a36Sopenharmony_ci	  Say y here to support the STM32 Hardware Spinlock device.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci	  If unsure, say N.
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ciconfig HWSPINLOCK_SUN6I
4862306a36Sopenharmony_ci	tristate "SUN6I Hardware Spinlock device"
4962306a36Sopenharmony_ci	depends on ARCH_SUNXI || COMPILE_TEST
5062306a36Sopenharmony_ci	help
5162306a36Sopenharmony_ci	  Say y here to support the SUN6I Hardware Spinlock device which can be
5262306a36Sopenharmony_ci	  found in most of the sun6i compatible Allwinner SoCs.
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ci	  If unsure, say N.
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciconfig HSEM_U8500
5762306a36Sopenharmony_ci	tristate "STE Hardware Semaphore functionality"
5862306a36Sopenharmony_ci	depends on ARCH_U8500 || COMPILE_TEST
5962306a36Sopenharmony_ci	help
6062306a36Sopenharmony_ci	  Say y here to support the STE Hardware Semaphore functionality, which
6162306a36Sopenharmony_ci	  provides a synchronisation mechanism for the various processor on the
6262306a36Sopenharmony_ci	  SoC.
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci	  If unsure, say N.
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ciendif # HWSPINLOCK
67