summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2016-04-08 09:21:12 -0700
committerAlexey Brodkin <abrodkin@synopsys.com>2016-04-11 10:20:38 -0700
commit53637c911b7a2397b50690cd67b7d59145bcae9c (patch)
tree8e6388f99f9c49cef402712699df7e2082355489
parent8b15010b1fc6a0da76db0b5d96d12ffe69990dbe (diff)
downloadu-boot-imx-53637c911b7a2397b50690cd67b7d59145bcae9c.zip
u-boot-imx-53637c911b7a2397b50690cd67b7d59145bcae9c.tar.gz
u-boot-imx-53637c911b7a2397b50690cd67b7d59145bcae9c.tar.bz2
arc: Add virt_to_phys() stub
Commit cf7c93cdd755 "usb: ehci: Implement V2P mapping" introduced usage of virt_to_phys() in ehci-hcd. Since there was no implementation of virt_to_phys() for ARC compilation of the ehci-generic driver failed. This change adds virt_to_phys() stub for ARC so now USB driver for AXS101 board could be built again. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Hans de Goede <hdegoede@redhat.com> Acked-by: Marek Vasut <marex@denx.de>
-rw-r--r--arch/arc/include/asm/io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
index 281682c..b6f7724 100644
--- a/arch/arc/include/asm/io.h
+++ b/arch/arc/include/asm/io.h
@@ -239,4 +239,9 @@ static inline int __raw_writesl(unsigned int addr, void *data, int longlen)
#define setbits_8(addr, set) setbits(8, addr, set)
#define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
+static inline phys_addr_t virt_to_phys(void *vaddr)
+{
+ return (phys_addr_t)((unsigned long)vaddr);
+}
+
#endif /* __ASM_ARC_IO_H */