diff options
author | Tom Rini <trini@konsulko.com> | 2016-04-11 14:05:37 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-11 20:48:28 -0400 |
commit | 5fee9489f6e361219790c92dfaa9f27aaf8bf5a9 (patch) | |
tree | 19e4b194030f78b48cd2fde278465b919670dcbf /arch/arc/include/asm/io.h | |
parent | 811906aebcb81c14c1a836a5ae97f49f1cc9b7ec (diff) | |
parent | 53637c911b7a2397b50690cd67b7d59145bcae9c (diff) | |
download | u-boot-imx-5fee9489f6e361219790c92dfaa9f27aaf8bf5a9.zip u-boot-imx-5fee9489f6e361219790c92dfaa9f27aaf8bf5a9.tar.gz u-boot-imx-5fee9489f6e361219790c92dfaa9f27aaf8bf5a9.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-arc
Diffstat (limited to 'arch/arc/include/asm/io.h')
-rw-r--r-- | arch/arc/include/asm/io.h | 5 |
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 */ |