| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH 2/2] MIPS: add readl/write_be |
| From: | Florian Fainelli <ffainelli@freebox.fr> |
| Date: | Wed, 16 Dec 2009 11:29:06 +0100 |
| Cc: | Geert Uytterhoeven <geert@linux-m68k.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@linux-mips.org, Maxime Bizon <mbizon@freebox.fr> |
| In-reply-to: | <20091215082521.GA16778@linux-mips.org> |
| Organization: | Freebox |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <200912121757.56365.ffainelli@freebox.fr> <200912150144.04051.ffainelli@freebox.fr> <20091215082521.GA16778@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | KMail/1.12.2 (Linux/2.6.31-16-server; KDE/4.3.2; x86_64; ; ) |
From: Florian Fainelli <ffainelli@freebox.fr> Subject: [PATCH v3] MIPS: add readl/write_be accessors 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..65d7843 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) be32_to_cpu(__raw_readl((__force unsigned *)(addr))) +#define writel_be(val, addr) __raw_writel(cpu_to_be32((val)), (__force unsigned *)(addr)) + /* * Some code tests for these symbols */ -- |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] MIPS: Cleanup and Fixup of compressed kernel support, Wu Zhangjin |
|---|---|
| Next by Date: | Re: Irq architecture for multi-core network driver., Chetan Loke |
| Previous by Thread: | Re: [PATCH 2/2] MIPS: add readl/write_be, Ralf Baechle |
| Next by Thread: | Re: [PATCH 2/2] MIPS: add readl/write_be, Sergei Shtylyov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |