diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2012-05-01 07:00:17 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2012-05-01 07:00:17 +0000 |
commit | 880de62f91bcffe7f1c7f16c9463e10853fa2524 (patch) | |
tree | 058bb1c73786a7bf492cc1a554effe4692a9b50e /target/linux/coldfire/patches/022-Redefine-I-O-read-and-write-functions.patch | |
parent | 7a8d12bafaf8b882d0278156e5f22d0a396687e2 (diff) | |
download | upstream-880de62f91bcffe7f1c7f16c9463e10853fa2524.tar.gz upstream-880de62f91bcffe7f1c7f16c9463e10853fa2524.tar.bz2 upstream-880de62f91bcffe7f1c7f16c9463e10853fa2524.zip |
switch to 2.6.38
SVN-Revision: 31546
Diffstat (limited to 'target/linux/coldfire/patches/022-Redefine-I-O-read-and-write-functions.patch')
-rw-r--r-- | target/linux/coldfire/patches/022-Redefine-I-O-read-and-write-functions.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/target/linux/coldfire/patches/022-Redefine-I-O-read-and-write-functions.patch b/target/linux/coldfire/patches/022-Redefine-I-O-read-and-write-functions.patch new file mode 100644 index 0000000000..921891bbd9 --- /dev/null +++ b/target/linux/coldfire/patches/022-Redefine-I-O-read-and-write-functions.patch @@ -0,0 +1,32 @@ +From f8dab3ef2c0da1c50dee07142c0b8088da61bc82 Mon Sep 17 00:00:00 2001 +From: Alison Wang <b18965@freescale.com> +Date: Thu, 4 Aug 2011 09:59:45 +0800 +Subject: [PATCH 22/52] Redefine I/O read and write functions + +Redefine readb(), writeb(), readw(), writew(), readl(), write() +functions. + +Signed-off-by: Alison Wang <b18965@freescale.com> +--- + arch/m68k/include/asm/cf_io.h | 10 ++++++++++ + 1 files changed, 10 insertions(+), 0 deletions(-) + +--- a/arch/m68k/include/asm/cf_io.h ++++ b/arch/m68k/include/asm/cf_io.h +@@ -20,6 +20,16 @@ + + #include <asm-generic/iomap.h> + ++/* ++ * These should be valid on any ioremap()ed region ++ */ ++#define readb(addr) in_8(addr) ++#define writeb(val, addr) out_8((addr), (val)) ++#define readw(addr) in_le16(addr) ++#define writew(val, addr) out_le16((addr), (val)) ++#define readl(addr) in_le32(addr) ++#define writel(val, addr) out_le32((addr), (val)) ++ + #define readb_relaxed(addr) readb(addr) + #define readw_relaxed(addr) readw(addr) + #define readl_relaxed(addr) readl(addr) |