summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-11-05 15:09:57 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-11-12 08:26:58 +0800
commit207e97b92334bc3992ad7b0a3554a5b1c92ce533 (patch)
tree908505e08589e77aba9301c4e7484aae657fa916
parentaf54c18d4c682aafc6b63e3bb4714a0bdcf72121 (diff)
downloadu-boot-imx-207e97b92334bc3992ad7b0a3554a5b1c92ce533.zip
u-boot-imx-207e97b92334bc3992ad7b0a3554a5b1c92ce533.tar.gz
u-boot-imx-207e97b92334bc3992ad7b0a3554a5b1c92ce533.tar.bz2
nios2: add memcpy_fromio and memcpy_toio
Add memcpy_fromio() and memcpy_toio(). Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
-rw-r--r--arch/nios2/include/asm/io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h
index 03a3418..95d8801 100644
--- a/arch/nios2/include/asm/io.h
+++ b/arch/nios2/include/asm/io.h
@@ -173,4 +173,8 @@ static inline void outsl (unsigned long port, const void *src, unsigned long cou
#define setbits_8(addr, set) setbits(8, addr, set)
#define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set)
+#define memset_io(a, b, c) memset((void *)(a), (b), (c))
+#define memcpy_fromio(a, b, c) memcpy((a), (void *)(b), (c))
+#define memcpy_toio(a, b, c) memcpy((void *)(a), (b), (c))
+
#endif /* __ASM_NIOS2_IO_H_ */