On Mon, Mar 7, 2016 at 10:28 AM, Simon Glass <s...@chromium.org> wrote: > 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, ®->ctrl); > writel(2, ®->data); > > This does not currently work with inl(), outl(), etc. Add a cast to permit > this. > > Signed-off-by: Simon Glass <s...@chromium.org> > --- > > arch/x86/include/asm/io.h | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) >
Reviewed-by: Bin Meng <bmeng...@gmail.com> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot