]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Implement arch-specific io accessor routines
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:16 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commit3bf9a8e8460f69022c85f30860911067e4aebca3
tree7eb6577c4cf2a185851f8a4e52bf2cf0780f2af1
parent2895c4b7d65e1a65f7d8804126f91ee91e8e2481
x86: Implement arch-specific io accessor routines

At present the generic io{read,write}{8,16,32} routines only support
MMIO access. With architecture like x86 that has a separate IO space,
these routines cannot be used to access I/O ports.

Implement x86-specific version to support both PIO and MMIO access,
so that drivers for multiple architectures can use these accessors
without the need to know whether it's MMIO or PIO.

These are ported from Linux kernel lib/iomap.c, with slight changes.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/Kconfig
arch/x86/include/asm/io.h