summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2012-10-23 20:25:37 -0700
committerChris Zankel <chris@zankel.net>2012-10-25 14:53:36 -0700
commitcddfcbcd05851a3b720055d40fc61c63ea1c2bd1 (patch)
tree960670dca997c8092526f5f421f2ee9cbf26978b /arch/xtensa
parent2f72d4f6a29cf84c40fc05c76020b347b4774393 (diff)
downloadop-kernel-dev-cddfcbcd05851a3b720055d40fc61c63ea1c2bd1.zip
op-kernel-dev-cddfcbcd05851a3b720055d40fc61c63ea1c2bd1.tar.gz
xtensa: use physical addresses for bus addresses
Define virt_to_bus and bus_to_virt as virt_to_phys, and phys_to_virt, respectively. Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/include/asm/io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/io.h b/arch/xtensa/include/asm/io.h
index e6be5b9..700c2e6 100644
--- a/arch/xtensa/include/asm/io.h
+++ b/arch/xtensa/include/asm/io.h
@@ -62,6 +62,10 @@ static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
static inline void iounmap(volatile void __iomem *addr)
{
}
+
+#define virt_to_bus virt_to_phys
+#define bus_to_virt phys_to_virt
+
#endif /* CONFIG_MMU */
/*
OpenPOWER on IntegriCloud