summaryrefslogtreecommitdiff
path: root/arch/avr32/include/asm/arch-at32ap700x/addrspace.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-09-08 00:48:27 +0200
committerWolfgang Denk <wd@denx.de>2010-09-08 00:48:27 +0200
commitf8736c2125f5bbbe7507e59c7b2c44ec17196aa3 (patch)
tree5c8fd133791edae0cd61f7ee1b1b042697251a27 /arch/avr32/include/asm/arch-at32ap700x/addrspace.h
parentcf64fda38e3d71e9077e11c673bd9be449c680da (diff)
parent1f36f73fe70560a2bd286a7abc8530fdc93af9ae (diff)
Merge branch 'avr32' of git://git.denx.de/u-boot-atmel
Diffstat (limited to 'arch/avr32/include/asm/arch-at32ap700x/addrspace.h')
-rw-r--r--arch/avr32/include/asm/arch-at32ap700x/addrspace.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/avr32/include/asm/arch-at32ap700x/addrspace.h b/arch/avr32/include/asm/arch-at32ap700x/addrspace.h
index 409eee3536..4edc1bd701 100644
--- a/arch/avr32/include/asm/arch-at32ap700x/addrspace.h
+++ b/arch/avr32/include/asm/arch-at32ap700x/addrspace.h
@@ -75,10 +75,7 @@ static inline void * phys_to_virt(unsigned long address)
static inline void *
map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
{
- if (flags == MAP_WRBACK)
- return (void *)P1SEGADDR(paddr);
- else
- return (void *)P2SEGADDR(paddr);
+ return (void *)paddr;
}
#endif /* __ASM_AVR32_ADDRSPACE_H */