This series introduces a new asm-generic/io.h header & makes use of it to reduce duplication between architectures & ensure they all consistently provide implementations of virt_to_phys() & phys_to_virt().
This was split out from an earlier series which goes on to use phys_to_virt(), in order to simplify the process of getting it merged by doing so piecemeal. The v1 patches can be seen at [1]. Thanks, Paul [1] https://patchwork.ozlabs.org/bundle/paulburton/old-asm-generic-io/?state=* Paul Burton (13): Provide a generic io.h & address mapping functions arc: Use asm-generic/io.h arm: Use asm-generic/io.h m68k: Use asm-generic/io.h microblaze: Use asm-generic/io.h nds32: Use asm-generic/io.h sh: Use asm-generic/io.h x86: Use asm-generic/io.h xtensa: Use asm-generic/io.h mips: Use asm-generic/io.h nios2: Use asm-generic/io.h powerpc: Use asm-generic/io.h sandbox: Use asm-generic/io.h arch/arc/include/asm/io.h | 29 +---------- arch/arm/include/asm/io.h | 30 +---------- arch/m68k/include/asm/io.h | 29 +---------- arch/microblaze/include/asm/io.h | 29 +---------- arch/mips/include/asm/io.h | 17 +++--- arch/nds32/include/asm/io.h | 32 ++---------- arch/nios2/include/asm/io.h | 15 +++--- arch/powerpc/include/asm/io.h | 25 ++------- arch/sandbox/cpu/cpu.c | 12 ++++- arch/sandbox/include/asm/io.h | 18 +++---- arch/sh/include/asm/io.h | 29 +---------- arch/x86/include/asm/io.h | 31 +---------- arch/xtensa/include/asm/io.h | 25 +-------- include/asm-generic/io.h | 110 +++++++++++++++++++++++++++++++++++++++ 14 files changed, 161 insertions(+), 270 deletions(-) create mode 100644 include/asm-generic/io.h -- 2.14.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot