[PATCH 1/2] ppc: io: Add _IO_BASE define

Sascha Hauer s.hauer at pengutronix.de
Tue Apr 8 23:34:03 PDT 2014


To make inb/outb and friends work.

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

diff --git a/arch/ppc/include/asm/io.h b/arch/ppc/include/asm/io.h
index d3473e5..98bf513 100644
--- a/arch/ppc/include/asm/io.h
+++ b/arch/ppc/include/asm/io.h
@@ -12,6 +12,7 @@
 #define SIO_CONFIG_RA   0x398
 #define SIO_CONFIG_RD   0x399
 
+#define _IO_BASE	0
 
 #define readb(addr) in_8((volatile u8 *)(addr))
 #define writeb(b,addr) out_8((volatile u8 *)(addr), (b))
-- 
1.9.1




More information about the barebox mailing list