Skip to content

Commit

Permalink
xtensa: use physical addresses for bus addresses
Browse files Browse the repository at this point in the history
Define virt_to_bus and bus_to_virt as virt_to_phys, and phys_to_virt,
       respectively.

Signed-off-by: Chris Zankel <[email protected]>
  • Loading branch information
czankel committed Oct 25, 2012
1 parent 2f72d4f commit cddfcbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/xtensa/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

/*
Expand Down

0 comments on commit cddfcbc

Please sign in to comment.