diff options
author | Scott Jiang <scott.jiang.linux@gmail.com> | 2012-02-10 15:38:49 -0500 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-03-21 11:00:09 +0800 |
commit | 1957b665fbbdb720940c5161b27a8b597f5c090a (patch) | |
tree | fa08113e431c493492764439454369cadfce2bf4 /arch | |
parent | 45a93315d829cfafb83eea0bf76b7346b6f0d072 (diff) | |
download | linux-3.10-1957b665fbbdb720940c5161b27a8b597f5c090a.tar.gz linux-3.10-1957b665fbbdb720940c5161b27a8b597f5c090a.tar.bz2 linux-3.10-1957b665fbbdb720940c5161b27a8b597f5c090a.zip |
bf561: add ppi DLEN macro for 10bits to 16bits
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/mach-bf561/include/mach/defBF561.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf561/include/mach/defBF561.h b/arch/blackfin/mach-bf561/include/mach/defBF561.h index 7d712aeb526..5f0ac5a77a3 100644 --- a/arch/blackfin/mach-bf561/include/mach/defBF561.h +++ b/arch/blackfin/mach-bf561/include/mach/defBF561.h @@ -879,6 +879,13 @@ #define DLENGTH 0x00003800 /* PPI Data Length */ #define DLEN_8 0x0 /* PPI Data Length mask for DLEN=8 */ #define DLEN(x) (((x-9) & 0x07) << 11) /* PPI Data Length (only works for x=10-->x=16) */ +#define DLEN_10 0x00000800 /* Data Length = 10 Bits */ +#define DLEN_11 0x00001000 /* Data Length = 11 Bits */ +#define DLEN_12 0x00001800 /* Data Length = 12 Bits */ +#define DLEN_13 0x00002000 /* Data Length = 13 Bits */ +#define DLEN_14 0x00002800 /* Data Length = 14 Bits */ +#define DLEN_15 0x00003000 /* Data Length = 15 Bits */ +#define DLEN_16 0x00003800 /* Data Length = 16 Bits */ #define POL 0x0000C000 /* PPI Signal Polarities */ #define POLC 0x4000 /* PPI Clock Polarity */ #define POLS 0x8000 /* PPI Frame Sync Polarity */ |