powerpc/32: Add ioremap_wt() and ioremap_coherent()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 9 Oct 2018 13:51:33 +0000 (13:51 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000 (22:21 +1100)
commit86c391bd5f47101acf1f3e0abd9fe0616ae2a4fb
tree7fd0801b74451e47227947f6e6ba92b40018a917
parentdfd718a2ed1f678e66749ffe41bdeafedf3f4314
powerpc/32: Add ioremap_wt() and ioremap_coherent()

Other arches have ioremap_wt() to map IO areas write-through.
Implement it on PPC as well in order to avoid drivers using
__ioremap(_PAGE_WRITETHRU)

Also implement ioremap_coherent() to avoid drivers using
__ioremap(_PAGE_COHERENT)

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/io.h
arch/powerpc/mm/pgtable_32.c
arch/powerpc/mm/pgtable_64.c