[package] base-files: add "mtu" option for route sections, allows setting per-route...
[openwrt.git] / target / linux / brcm63xx / patches-2.6.33 / 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 --- a/arch/mips/include/asm/io.h
9 +++ b/arch/mips/include/asm/io.h
10 @@ -447,6 +447,9 @@ __BUILDIO(q, u64)
11 #define readl_relaxed readl
12 #define readq_relaxed readq
13
14 +#define readl_be(addr) be32_to_cpu(__raw_readl((__force unsigned *)(addr)))
15 +#define writel_be(val, addr) __raw_writel(cpu_to_be32((val)), (__force unsigned *)(addr))
16 +
17 /*
18 * Some code tests for these symbols
19 */
This page took 0.045635 seconds and 5 git commands to generate.