summaryrefslogtreecommitdiff
path: root/arch/x86/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-11 22:07:07 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-03-17 10:27:25 +0800
commit005174d661e0860a2af1be3025c2214142916ab4 (patch)
treedecf168ce122d37d70487ff25d6598c5788c971d /arch/x86/Kconfig
parent30928c1151225f4f318521bb3e04fa8431f7a938 (diff)
downloadu-boot-imx-005174d661e0860a2af1be3025c2214142916ab4.zip
u-boot-imx-005174d661e0860a2af1be3025c2214142916ab4.tar.gz
u-boot-imx-005174d661e0860a2af1be3025c2214142916ab4.tar.bz2
x86: Allow I/O functions to use pointers
It is common with memory-mapped I/O to use the address of a structure member to access memory, as in: struct some_regs { u32 ctrl; u32 data; } struct some_regs *regs = (struct some_regs *)BASE_ADDRESS; writel(1, &reg->ctrl); writel(2, &reg->data); This does not currently work with inl(), outl(), etc. Add a cast to permit this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/Kconfig')
0 files changed, 0 insertions, 0 deletions