summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/def_LPBlackfin.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-11-17 04:26:22 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-09 00:30:45 -0500
commit3630ac34b0ab346ff0910401dbed7af624be7027 (patch)
tree38cbf0382d2b54a08de07e7c247d8b488dc624ce /arch/blackfin/include/asm/def_LPBlackfin.h
parentc13ce9fd26c3a0e32b3bf0b00929181e66114ed2 (diff)
Blackfin: bfin_sport: unify & standardize SPORT masks
Rather than have every SPORT driver copy & paste things, declare the C structure and MMR bitmasks in one place for everyone to use. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/def_LPBlackfin.h')
-rw-r--r--arch/blackfin/include/asm/def_LPBlackfin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/def_LPBlackfin.h b/arch/blackfin/include/asm/def_LPBlackfin.h
index 25906468622..e521f8eb260 100644
--- a/arch/blackfin/include/asm/def_LPBlackfin.h
+++ b/arch/blackfin/include/asm/def_LPBlackfin.h
@@ -12,6 +12,8 @@
#include <mach/anomaly.h>
#define MK_BMSK_(x) (1<<x)
+#define BFIN_DEPOSIT(mask, x) (((x) << __ffs(mask)) & (mask))
+#define BFIN_EXTRACT(mask, x) (((x) & (mask)) >> __ffs(mask))
#ifndef __ASSEMBLY__