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>
此提交包含在:
Christoph Hellwig
2019-08-13 11:24:04 +02:00
父節點 98c90e5ea3
當前提交 80b0ca98f9
共有 3 個檔案被更改,包括 58 行新增4 行删除

查看文件

@@ -637,6 +637,9 @@ config STRING_SELFTEST
endmenu
config GENERIC_IOREMAP
bool
config GENERIC_LIB_ASHLDI3
bool