]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nios2: fix phys_addr_t and phys_size_t support
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sat, 2 Aug 2008 21:48:31 +0000 (23:48 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 3 Aug 2008 00:19:16 +0000 (02:19 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
cpu/nios2/interrupts.c
include/asm-nios2/types.h

index aeb5b65b330bb6c24ebe88024ed78f8b1e35835b..ec5db31b0ff468132680ba7b881a0fddcb7f96ed 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <nios2.h>
 #include <nios2-io.h>
+#include <asm/types.h>
 #include <asm/io.h>
 #include <asm/ptrace.h>
 #include <common.h>
index f13d8bd4b479cb7595719351c71bad0c3588d456..ea859c07741619194a80210a1353628cc5738685 100644 (file)
@@ -52,6 +52,9 @@ typedef unsigned long long u64;
 /* Dma addresses are 32-bits wide.  */
 
 typedef u32 dma_addr_t;
+
+typedef unsigned long phys_addr_t;
+typedef unsigned long phys_size_t;
 #endif /* __KERNEL__ */
 
 #endif /* __ASM_NIOS2_TYPES_H */