Merge branch 'master' of git://git.denx.de/u-boot-nios
[oweals/u-boot.git] / include / asm-sh / io.h
index adc3f81ed677f097417d3e4c2e9b599040f3d753..ca598a60f384b9928288a43441593cba7784c60d 100644 (file)
@@ -261,5 +261,10 @@ 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 /* __KERNEL__ */
 #endif /* __ASM_SH_IO_H */