]> git.ipfire.org Git - thirdparty/linux.git/commit - lib/Kconfig
lib: provide a simple generic ioremap implementation
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Aug 2019 09:24:04 +0000 (11:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 20:18:20 +0000 (21:18 +0100)
commit80b0ca98f91ddbc09828aff5a00af1c73837713e
tree9d88b3bd5945b7408861a6297b23164323bac713
parent98c90e5ea34e98bdd4bcb67c48a0bdfd59bcd6cd
lib: provide a simple generic ioremap implementation

A lot of architectures reuse the same simple ioremap implementation, so
start lifting the most simple variant to lib/ioremap.c.  It provides
ioremap_prot and iounmap, plus a default ioremap that uses prot_noncached,
although that can be overridden by asm/io.h.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Palmer Dabbelt <palmer@dabbelt.com>
include/asm-generic/io.h
lib/Kconfig
lib/ioremap.c