| To: | linux-mips@linux-mips.org, Maxime Bizon <mbizon@freebox.fr> |
|---|---|
| Subject: | [PATCH 2/2] MIPS: add readl/write_be |
| From: | Florian Fainelli <ffainelli@freebox.fr> |
| Date: | Sat, 12 Dec 2009 17:57:56 +0100 |
| Cc: | ralf@linux-mips.org |
| Organization: | Freebox |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | KMail/1.12.2 (Linux/2.6.30-2-686; KDE/4.3.2; i686; ; ) |
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 */ -- |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/2] bcm63xx: fix tabs/space damaged board_bcm963xx.c, Florian Fainelli |
|---|---|
| Next by Date: | Re: [PATCH 2/2] MIPS: add readl/write_be, Thomas Bogendoerfer |
| Previous by Thread: | [PATCH 1/2] bcm63xx: fix tabs/space damaged board_bcm963xx.c, Florian Fainelli |
| Next by Thread: | Re: [PATCH 2/2] MIPS: add readl/write_be, Thomas Bogendoerfer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |