Introduce virt_to_phys()
[oweals/u-boot.git] / include / asm-sparc / io.h
index 5f8d05cc36db37c10957a45d507d59e3152e287b..0c5d86cb3a93cf178bd61b2aa17673c3ed3afef4 100644 (file)
@@ -90,4 +90,9 @@ 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);
+}
+
 #endif