powerpc: Use asm-generic/io.h
authorPaul Burton <paul.burton@imgtec.com>
Thu, 14 Sep 2017 22:05:12 +0000 (15:05 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 3 Oct 2017 01:52:23 +0000 (21:52 -0400)
commitae07d609e951d0018daa1bd82aa56a1c294743cc
treec4bd7ead05ef808311d574075ada43c6b71a112d
parente16986c481dbfc84ce6a88b1dd9730ee19b2e1cb
powerpc: Use asm-generic/io.h

Convert the powerpc architecture to make use of the new asm-generic/io.h
to provide address mapping functions. As powerpc can actually perform
non-identity mapping between physical & virtual addresses we can't
simply make use of the generic phys_to_virt() & virt_to_phys()
functions. However since map_physmem() already effectively implemented
the same thing as virt_to_phys() we can simply implement virt_to_phys()
instead of map_physmem() & use the generic map_physmem(). We also drop
the no-op unmap_physmem().

This has only been build-tested, feedback from architecture maintainers
is welcome.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Wolfgang Denk <wd@denx.de>
arch/powerpc/include/asm/io.h