summaryrefslogtreecommitdiff
path: root/include/asm-avr32
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-03-27 11:46:38 -0500
committerWolfgang Denk <wd@denx.de>2008-04-13 17:13:46 -0700
commite99ccb488181d012248c6be30b2093e950319fc5 (patch)
tree3c9fefb4d458a349912aeb2ff548088a21101600 /include/asm-avr32
parent20a14a42a25f72e379f38460b8a8484667536795 (diff)
Introduce phys_size_t and move phys_addr_t into asm/types.h
Also add CONFIG_PHYS_64BIT on powerpc to deal with 32-bit ppc's that have larger physical addresses like 44x, 85xx, and 86xx. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-avr32')
-rw-r--r--include/asm-avr32/io.h2
-rw-r--r--include/asm-avr32/types.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-avr32/io.h b/include/asm-avr32/io.h
index ba14674cf7..d030c262a5 100644
--- a/include/asm-avr32/io.h
+++ b/include/asm-avr32/io.h
@@ -101,8 +101,6 @@ static inline void sync(void)
* This implementation works for memory below 512MiB (flash, etc.) as
* well as above 3.5GiB (internal peripherals.)
*/
-typedef unsigned long phys_addr_t;
-
#define MAP_NOCACHE (0)
#define MAP_WRCOMBINE (1 << 7)
#define MAP_WRBACK (MAP_WRCOMBINE | (1 << 9))
diff --git a/include/asm-avr32/types.h b/include/asm-avr32/types.h
index 2dbea4bad3..c303e3c891 100644
--- a/include/asm-avr32/types.h
+++ b/include/asm-avr32/types.h
@@ -71,6 +71,9 @@ typedef unsigned long long u64;
typedef u32 dma_addr_t;
+typedef unsigned long phys_addr_t;
+typedef unsigned long phys_size_t;
+
#ifdef CONFIG_LBD
typedef u64 sector_t;
#define HAVE_SECTOR_T