nios2: map physical address to uncached virtual address
authorThomas Chou <thomas@wytron.com.tw>
Sat, 3 Oct 2015 13:02:30 +0000 (21:02 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Thu, 22 Oct 2015 23:29:11 +0000 (07:29 +0800)
commit37e24499b9a65e88568c8e5fed38c5d71f306305
treed56fb86c7176128eba4b8452d5addda067ad753a
parentac45c9cba1e32c25e1d75f894e7707def8adfd23
nios2: map physical address to uncached virtual address

Add ioremap() to map physical address to uncached virtual
address. We need this to convert the reg address from the
device tree.

The order of headers inclusion in interrupts.c is changed
because common.h will include board header that contains
IO_REGION_BASE.

In the future, the IO_REGION_BASE should be decided from
the device tree.
tree

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/nios2/cpu/interrupts.c
arch/nios2/include/asm/io.h