summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmerdabbelt@google.com>2020-07-09 20:43:21 +0200
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-12-11 21:28:08 +0100
commit527701eda5f196588df9b36a30651804fea7d1a7 (patch)
treed9afe5b4753aa0ca2ee1829072ead75c153e369b /lib/Kconfig
parentLinux 5.9 (diff)
downloadlinux-527701eda5f196588df9b36a30651804fea7d1a7.tar.xz
linux-527701eda5f196588df9b36a30651804fea7d1a7.zip
lib: Add a generic version of devmem_is_allowed()
As part of adding support for STRICT_DEVMEM to the RISC-V port, Zong provided a devmem_is_allowed() implementation that's exactly the same as all the others I checked. Instead I'm adding a generic version, which will soon be used. Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r--lib/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index b4b98a03ff98..b26721cf51bc 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -681,6 +681,9 @@ config GENERIC_LIB_CMPDI2
config GENERIC_LIB_UCMPDI2
bool
+config GENERIC_LIB_DEVMEM_IS_ALLOWED
+ bool
+
config PLDMFW
bool
default n