From 37e24499b9a65e88568c8e5fed38c5d71f306305 Mon Sep 17 00:00:00 2001 From: Thomas Chou Date: Sat, 3 Oct 2015 21:02:30 +0800 Subject: 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 Acked-by: Marek Vasut Reviewed-by: Simon Glass --- arch/nios2/cpu/interrupts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/nios2/cpu') diff --git a/arch/nios2/cpu/interrupts.c b/arch/nios2/cpu/interrupts.c index 9d85eb0..1599674 100644 --- a/arch/nios2/cpu/interrupts.c +++ b/arch/nios2/cpu/interrupts.c @@ -8,12 +8,12 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include +#include #include #include #include #include -#include -#include /*************************************************************************/ struct irq_action { -- cgit v1.1