diff options
author | Mark Brown <broonie@kernel.org> | 2017-11-03 14:38:04 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-11-03 14:38:04 +0300 |
commit | f25637a6b89e59eddf79f6df39b23e202753f555 (patch) | |
tree | 1a957c0c714a688db42351d73c268449b4a7ffad /drivers/base/regmap/Kconfig | |
parent | 8698b9364710e7bac84b3af07dd410e39c8c2e08 (diff) | |
download | linux-f25637a6b89e59eddf79f6df39b23e202753f555.tar.xz |
regmap: Add a config option for hwspinlock
Unlike other lock types hwspinlocks are optional and can be built
modular so we can't use them unconditionally in regmap so add a config
option that drivers that want to use hwspinlocks with regmap can select
which will ensure that hwspinlock is built in.
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap/Kconfig')
-rw-r--r-- | drivers/base/regmap/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/regmap/Kconfig b/drivers/base/regmap/Kconfig index 073c0b77e5b3..2d5e849f79c9 100644 --- a/drivers/base/regmap/Kconfig +++ b/drivers/base/regmap/Kconfig @@ -5,6 +5,7 @@ config REGMAP default y if (REGMAP_I2C || REGMAP_SPI || REGMAP_SPMI || REGMAP_W1 || REGMAP_AC97 || REGMAP_MMIO || REGMAP_IRQ) select IRQ_DOMAIN if REGMAP_IRQ + select HWSPINLOCK if REGMAP_HWSPINLOCK bool config REGCACHE_COMPRESSED @@ -36,3 +37,6 @@ config REGMAP_MMIO config REGMAP_IRQ bool + +config REGMAP_HWSPINLOCK + bool |