aboutsummaryrefslogtreecommitdiff
path: root/include/asm-powerpc/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/types.h')
-rw-r--r--include/asm-powerpc/types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-powerpc/types.h b/include/asm-powerpc/types.h
index 903fd193243..c243a6ac60e 100644
--- a/include/asm-powerpc/types.h
+++ b/include/asm-powerpc/types.h
@@ -84,6 +84,13 @@ typedef unsigned long long u64;
typedef __vector128 vector128;
+/* Physical address used by some IO functions */
+#if defined(CONFIG_PPC64) || defined(CONFIG_PHYS_64BIT)
+typedef u64 phys_addr_t;
+#else
+typedef u32 phys_addr_t;
+#endif
+
#ifdef __powerpc64__
typedef u64 dma_addr_t;
#else