summaryrefslogtreecommitdiff
path: root/include/asm-microblaze/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-microblaze/io.h')
-rw-r--r--include/asm-microblaze/io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-microblaze/io.h b/include/asm-microblaze/io.h
index 8804724..7e190d1 100644
--- a/include/asm-microblaze/io.h
+++ b/include/asm-microblaze/io.h
@@ -155,4 +155,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 /* __MICROBLAZE_IO_H__ */