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

Convert the nios2 architecture to make use of the new asm-generic/io.h to
provide address mapping functions. As nios2 actually performs
non-identity mapping between physical & virtual addresses we can't
simply make use of the generic functions, with the exception of being
able to drop our no-op unmap_physmem() and definitions of unused map
flags.

Feedback from architecture maintainers is welcome.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
arch/nios2/include/asm/io.h