[U-Boot] [PATCH] Nios2 altera: add reference to in_be32, out_be32

Kostya Belezko bkostya at hotmail.com
Fri Jan 20 02:58:19 CET 2017


Fixing compilation problem
u-boot-socfpga/drivers/serial/ns16550.c:144: undefined reference to `out_be32'

---
 arch/nios2/include/asm/io.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h
index 69ab23e..65a1e04 100644
--- a/arch/nios2/include/asm/io.h
+++ b/arch/nios2/include/asm/io.h
@@ -74,9 +74,11 @@ extern unsigned inl (unsigned port);
 #define inb(addr)	readb(addr)
 #define inw(addr)	readw(addr)
 #define inl(addr)	readl(addr)
+#define in_be32(addr)	readl(addr)
 #define outb(val, addr)	writeb(val,addr)
 #define outw(val, addr)	writew(val,addr)
 #define outl(val, addr)	writel(val,addr)
+#define out_be32(addr,val)	writel(val,addr)
 
 static inline void insb (unsigned long port, void *dst, unsigned long count)
 {
-- 
2.7.4



More information about the U-Boot mailing list