public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm:io.h: define __io() macro if not defined erlier
@ 2010-05-19  8:57 Andreas Bießmann
  2010-05-19 14:34 ` Thomas Weber
  2010-05-21 21:07 ` Wolfgang Denk
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Bießmann @ 2010-05-19  8:57 UTC (permalink / raw)
  To: u-boot

This patch adds __io() macro to enable {in|out}[bwl] macros in
arch/arm/asm/io.h

Commit a45dde2293c816138e53c26eca6fd0322583f9a6 uses {in|out}[bwl] macros in
DM9000x and breaks compilation for arm devices.

Signed-off-by: Andreas Bie?mann <biessmann@corscience.de>
---
 arch/arm/include/asm/io.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h
index 0a4b5be..ccbf80d 100644
--- a/arch/arm/include/asm/io.h
+++ b/arch/arm/include/asm/io.h
@@ -173,6 +173,13 @@ extern void __raw_readsl(unsigned int addr, void *data, int longlen);
 #if 0	/* XXX###XXX */
 #include <asm/arch/io.h>
 #endif	/* XXX###XXX */
+/*
+ * we need to define __io(p) for {in,out}[bwl] macros. This macro may be
+ * defined in a machine specific io definition earlier.
+ */
+#ifndef __io
+#define __io(p) (p)
+#endif
 
 /*
  *  IO port access primitives
-- 
1.7.1

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

end of thread, other threads:[~2010-05-26 20:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-19  8:57 [U-Boot] [PATCH] arm:io.h: define __io() macro if not defined erlier Andreas Bießmann
2010-05-19 14:34 ` Thomas Weber
2010-05-21 21:07 ` Wolfgang Denk
2010-05-25  8:15   ` Andreas Bießmann
2010-05-25 11:29     ` Wolfgang Denk
2010-05-26  9:49       ` Andreas Bießmann
2010-05-26 17:50         ` Mike Frysinger
2010-05-26 20:19           ` Wolfgang Denk

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