linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] MIPS: add readl/write_be
@ 2009-12-12 16:57 Florian Fainelli
  2009-12-12 19:31 ` Thomas Bogendoerfer
  2009-12-14 16:40 ` David Daney
  0 siblings, 2 replies; 10+ messages in thread
From: Florian Fainelli @ 2009-12-12 16:57 UTC (permalink / raw)
  To: linux-mips, Maxime Bizon; +Cc: ralf

MIPS currently lacks the readl_be and writel_be accessors
which are required by BCM63xx for OHCI and EHCI support.
Let's define them globally for MIPS. This also fixes the
compilation of the bcm63xx defconfig against USB.

Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
---
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index 436878e..65cb4e4 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -447,6 +447,9 @@ __BUILDIO(q, u64)
 #define readl_relaxed			readl
 #define readq_relaxed			readq
 
+#define readl_be(addr)			__raw_readl((__force unsigned *)addr)
+#define writel_be(val, addr)		__raw_writel(val, (__force unsigned *)addr)
+
 /*
  * Some code tests for these symbols
  */
-- 

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

end of thread, other threads:[~2010-01-13 13:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-12 16:57 [PATCH 2/2] MIPS: add readl/write_be Florian Fainelli
2009-12-12 19:31 ` Thomas Bogendoerfer
2009-12-14 17:02   ` Florian Fainelli
2009-12-14 19:05     ` Geert Uytterhoeven
2009-12-15  0:44       ` Florian Fainelli
2009-12-15  8:25         ` Ralf Baechle
2009-12-16 10:29           ` Florian Fainelli
2010-01-13 13:48             ` Ralf Baechle
2009-12-15 12:03         ` Sergei Shtylyov
2009-12-14 16:40 ` David Daney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).