ar71xx: ag71xx: move link update function
[openwrt.git] / target / linux / brcm63xx / patches-2.6.32 / 012-mips_add_readl_writel_be_accessors.patch
1 MIPS currently lacks the readl_be and writel_be accessors
2 which are required by BCM63xx for OHCI and EHCI support.
3 Let's define them globally for MIPS. This also fixes the
4 compilation of the bcm63xx defconfig against USB.
5
6 Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
7 ---
8 diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
9 index 436878e..65d7843 100644
10 --- a/arch/mips/include/asm/io.h
11 +++ b/arch/mips/include/asm/io.h
12 @@ -447,6 +447,9 @@ __BUILDIO(q, u64)
13 #define readl_relaxed readl
14 #define readq_relaxed readq
15
16 +#define readl_be(addr) be32_to_cpu(__raw_readl((__force unsigned *)(addr)))
17 +#define writel_be(val, addr) __raw_writel(cpu_to_be32((val)), (__force unsigned *)(addr))
18 +
19 /*
20 * Some code tests for these symbols
21 */
22 --
23
24
This page took 0.052059 seconds and 5 git commands to generate.