diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-02-28 21:24:34 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-02-28 21:24:34 +0000 |
commit | 4f4066d3e057567c0f78a3069ef967fd787ac94a (patch) | |
tree | 4ea6a7d116f34e4ea56f5a234060d3c59bd0dd8e /target/linux/brcm63xx/patches-2.6.33/012-mips_add_readl_writel_be_accessors.patch | |
parent | 9fc22cd0328f840ea4e8e85cc5b86aa3eb8c0423 (diff) | |
download | master-31e0f0ae-4f4066d3e057567c0f78a3069ef967fd787ac94a.tar.gz master-31e0f0ae-4f4066d3e057567c0f78a3069ef967fd787ac94a.tar.bz2 master-31e0f0ae-4f4066d3e057567c0f78a3069ef967fd787ac94a.zip |
add support for 2.6.33
SVN-Revision: 19921
Diffstat (limited to 'target/linux/brcm63xx/patches-2.6.33/012-mips_add_readl_writel_be_accessors.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-2.6.33/012-mips_add_readl_writel_be_accessors.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.33/012-mips_add_readl_writel_be_accessors.patch b/target/linux/brcm63xx/patches-2.6.33/012-mips_add_readl_writel_be_accessors.patch new file mode 100644 index 0000000000..71b715dcff --- /dev/null +++ b/target/linux/brcm63xx/patches-2.6.33/012-mips_add_readl_writel_be_accessors.patch @@ -0,0 +1,19 @@ +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> +--- +--- 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 + */ |