]> git.sur5r.net Git - u-boot/blobdiff - include/asm-blackfin/io.h
Merge branch 'master' of git://git.denx.de/u-boot-blackfin
[u-boot] / include / asm-blackfin / io.h
index 2149685c179cee079c9d1ff284ab9d5dff5823f7..68064949834636a82e505f711bc92bd51305210a 100644 (file)
@@ -45,8 +45,6 @@ extern void cf_outb(unsigned char val, volatile unsigned char *addr);
  * 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)
@@ -66,6 +64,11 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags)
 
 }
 
+static inline phys_addr_t virt_to_phys(void * vaddr)
+{
+       return (phys_addr_t)(vaddr);
+}
+
 /*
  * These are for ISA/PCI shared memory _only_ and should never be used
  * on any other type of memory, including Zorro memory. They are meant to