Add and use a generic version of devmem_is_allowed()
authorPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 11 Dec 2020 20:30:26 +0000 (12:30 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 11 Dec 2020 20:30:26 +0000 (12:30 -0800)
As part of adding STRICT_DEVMEM support to the RISC-V port, Zong provided an
implementation of devmem_is_allowed() that's exactly the same as the version in
a handful of other ports.  Rather than duplicate code, I've put a generic
version of this in lib/ and used it for the RISC-V port.

* palmer/generic-devmem:
  arm64: Use the generic devmem_is_allowed()
  arm: Use the generic devmem_is_allowed()
  RISC-V: Use the new generic devmem_is_allowed()
  lib: Add a generic version of devmem_is_allowed()

1  2 
arch/arm/Kconfig
arch/arm64/Kconfig
arch/arm64/include/asm/io.h
arch/riscv/Kconfig
include/asm-generic/io.h
lib/Kconfig
lib/Kconfig.debug
lib/Makefile

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lib/Kconfig
Simple merge
Simple merge
diff --cc lib/Makefile
Simple merge