[PATCH] blackfin: Fix build due to missing __raw_* io accessors

Sascha Hauer s.hauer at pengutronix.de
Thu Jun 21 05:59:42 EDT 2012


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/blackfin/include/asm/io.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/blackfin/include/asm/io.h b/arch/blackfin/include/asm/io.h
index 8a24dd6..fc6a691 100644
--- a/arch/blackfin/include/asm/io.h
+++ b/arch/blackfin/include/asm/io.h
@@ -51,6 +51,13 @@ extern void cf_outb(unsigned char val, volatile unsigned char* addr);
 #define writew(b,addr)		{((*(volatile unsigned short *) (addr)) = (b)); asm("ssync;");}
 #define writel(b,addr)		{((*(volatile unsigned int *) (addr)) = (b)); asm("ssync;");}
 
+#define __raw_readb readb
+#define __raw_readw readw
+#define __raw_readl readl
+#define __raw_writeb writeb
+#define __raw_writew writew
+#define __raw_writel writel
+
 #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))
-- 
1.7.10




More information about the barebox mailing list