diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-10-22 01:11:08 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-22 16:30:03 -0400 |
commit | b9ac41e314f0b43641bc01bd553fd2e0458ed832 (patch) | |
tree | f150d78ab68d4daaace99ab80f4e6d8705919dc8 /arch/blackfin | |
parent | fec84d21c52bca67949a17aaf7d410b497f8e1b0 (diff) |
Blackfin: bfin_spi.h: add MMR peripheral layout
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/include/asm/bfin5xx_spi.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/bfin5xx_spi.h b/arch/blackfin/include/asm/bfin5xx_spi.h index 4223cf08ce83..0b5136e334b5 100644 --- a/arch/blackfin/include/asm/bfin5xx_spi.h +++ b/arch/blackfin/include/asm/bfin5xx_spi.h | |||
@@ -41,6 +41,25 @@ | |||
41 | #define BIT_STU_SENDOVER 0x0001 | 41 | #define BIT_STU_SENDOVER 0x0001 |
42 | #define BIT_STU_RECVFULL 0x0020 | 42 | #define BIT_STU_RECVFULL 0x0020 |
43 | 43 | ||
44 | /* | ||
45 | * All Blackfin system MMRs are padded to 32bits even if the register | ||
46 | * itself is only 16bits. So use a helper macro to streamline this. | ||
47 | */ | ||
48 | #define __BFP(m) u16 m; u16 __pad_##m | ||
49 | |||
50 | /* | ||
51 | * bfin spi registers layout | ||
52 | */ | ||
53 | struct bfin_spi_regs { | ||
54 | __BFP(ctl); | ||
55 | __BFP(flg); | ||
56 | __BFP(stat); | ||
57 | __BFP(tdbr); | ||
58 | __BFP(rdbr); | ||
59 | __BFP(baud); | ||
60 | __BFP(shadow); | ||
61 | }; | ||
62 | |||
44 | #define MAX_CTRL_CS 8 /* cs in spi controller */ | 63 | #define MAX_CTRL_CS 8 /* cs in spi controller */ |
45 | 64 | ||
46 | /* device.platform_data for SSP controller devices */ | 65 | /* device.platform_data for SSP controller devices */ |