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

2017-01-20 Thread Thomas Chou

Hi Kostya,

On 01/20/2017 09:58 AM, Kostya Belezko wrote:

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



The u-boot-socfpga branch you referred is old. Please follow the latest 
stable release tag v2017.01 .


URL git://git.denx.de/u-boot.git
http://git.denx.de/u-boot.git

Best regards,
Thomas Chou
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


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

2017-01-20 Thread Kostya Belezko
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

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot