mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Fix inb/outb definitions for ppc/mips
@ 2014-04-09  6:34 Sascha Hauer
  2014-04-09  6:34 ` [PATCH 1/2] ppc: io: Add _IO_BASE define Sascha Hauer
  2014-04-09  6:34 ` [PATCH 2/2] mips: io: include generic io.h Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-04-09  6:34 UTC (permalink / raw)
  To: barebox

The recent addition of iospace operations to the ns16550 driver break
mips and ppc compilation. The following fixes this.

Sascha

----------------------------------------------------------------
Sascha Hauer (2):
      ppc: io: Add _IO_BASE define
      mips: io: include generic io.h

 arch/mips/include/asm/io.h | 2 ++
 arch/ppc/include/asm/io.h  | 1 +
 2 files changed, 3 insertions(+)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] ppc: io: Add _IO_BASE define
  2014-04-09  6:34 Fix inb/outb definitions for ppc/mips Sascha Hauer
@ 2014-04-09  6:34 ` Sascha Hauer
  2014-04-09  6:34 ` [PATCH 2/2] mips: io: include generic io.h Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-04-09  6:34 UTC (permalink / raw)
  To: barebox

To make inb/outb and friends work.

Signed-off-by: Sascha Hauer <s.hauer@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] mips: io: include generic io.h
  2014-04-09  6:34 Fix inb/outb definitions for ppc/mips Sascha Hauer
  2014-04-09  6:34 ` [PATCH 1/2] ppc: io: Add _IO_BASE define Sascha Hauer
@ 2014-04-09  6:34 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-04-09  6:34 UTC (permalink / raw)
  To: barebox

To get definitions for inb/outb and friends.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/mips/include/asm/io.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index 1cc8a51..4832be6 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -78,4 +78,6 @@ static inline void __raw_writel(u32 b, volatile void __iomem *addr)
 #define out_be16(a, v)	__raw_writew(__cpu_to_be16(v), a)
 #define out_be32(a, v)	__raw_writel(__cpu_to_be32(v), a)
 
+#include <asm-generic/io.h>
+
 #endif	/* __ASM_MIPS_IO_H */
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-09  6:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-09  6:34 Fix inb/outb definitions for ppc/mips Sascha Hauer
2014-04-09  6:34 ` [PATCH 1/2] ppc: io: Add _IO_BASE define Sascha Hauer
2014-04-09  6:34 ` [PATCH 2/2] mips: io: include generic io.h Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox