X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fasm-mips%2Fio.h;h=3a0f33f204d11c4ff18c180d128e9ad062624d58;hb=1a9eeb78b825bfade31d7606a2fe3b9eca9e35be;hp=e27d1f159d72527c7e1434eb8f7746f8f656cf98;hpb=bd878eb024bf9cb351c9ce66db63558de2d0e395;p=u-boot diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h index e27d1f159d..3a0f33f204 100644 --- a/include/asm-mips/io.h +++ b/include/asm-mips/io.h @@ -120,7 +120,7 @@ static inline void set_io_port_base(unsigned long base) */ extern inline unsigned long virt_to_phys(volatile void * address) { - return PHYSADDR(address); + return CPHYSADDR(address); } extern inline void * phys_to_virt(unsigned long address) @@ -133,7 +133,7 @@ extern inline void * phys_to_virt(unsigned long address) */ extern inline unsigned long virt_to_bus(volatile void * address) { - return PHYSADDR(address); + return CPHYSADDR(address); } extern inline void * bus_to_virt(unsigned long address) @@ -470,8 +470,6 @@ static inline void sync(void) * that can be used to access the memory range with the caching * properties specified by "flags". */ -typedef unsigned long phys_addr_t; - #define MAP_NOCACHE (0) #define MAP_WRCOMBINE (0) #define MAP_WRBACK (0)