diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-10-21 23:11:42 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-22 16:30:03 -0400 |
commit | faf3d9ed2b9b402aa2c3d11688c6a1ff80ea6ea4 (patch) | |
tree | 159ee902177acdd7299ee1d592616c02f3514dbf /arch/blackfin | |
parent | 5d868212c411b0e3d11006f58688b31ee2180d8c (diff) |
Blackfin: bfin_can.h: add missing VERSION/VERSION2 MMRs
Also document the mailbox (channel) data array layout.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/include/asm/bfin_can.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/blackfin/include/asm/bfin_can.h b/arch/blackfin/include/asm/bfin_can.h index eec0076a385b..b1492e0bcabb 100644 --- a/arch/blackfin/include/asm/bfin_can.h +++ b/arch/blackfin/include/asm/bfin_can.h | |||
@@ -34,6 +34,7 @@ struct bfin_can_mask_regs { | |||
34 | }; | 34 | }; |
35 | 35 | ||
36 | struct bfin_can_channel_regs { | 36 | struct bfin_can_channel_regs { |
37 | /* data[0,2,4,6] -> data{0,1,2,3} while data[1,3,5,7] is padding */ | ||
37 | u16 data[8]; | 38 | u16 data[8]; |
38 | __BFP(dlc); | 39 | __BFP(dlc); |
39 | __BFP(tsv); | 40 | __BFP(tsv); |
@@ -83,16 +84,18 @@ struct bfin_can_regs { | |||
83 | __BFP(gif); /* offset 0x9c */ | 84 | __BFP(gif); /* offset 0x9c */ |
84 | __BFP(control); /* offset 0xa0 */ | 85 | __BFP(control); /* offset 0xa0 */ |
85 | __BFP(intr); /* offset 0xa4 */ | 86 | __BFP(intr); /* offset 0xa4 */ |
86 | u32 __pad3[1]; | 87 | __BFP(version); /* offset 0xa8 */ |
87 | __BFP(mbtd); /* offset 0xac */ | 88 | __BFP(mbtd); /* offset 0xac */ |
88 | __BFP(ewr); /* offset 0xb0 */ | 89 | __BFP(ewr); /* offset 0xb0 */ |
89 | __BFP(esr); /* offset 0xb4 */ | 90 | __BFP(esr); /* offset 0xb4 */ |
90 | u32 __pad4[2]; | 91 | u32 __pad3[2]; |
91 | __BFP(ucreg); /* offset 0xc0 */ | 92 | __BFP(ucreg); /* offset 0xc0 */ |
92 | __BFP(uccnt); /* offset 0xc4 */ | 93 | __BFP(uccnt); /* offset 0xc4 */ |
93 | __BFP(ucrc); /* offset 0xc8 */ | 94 | __BFP(ucrc); /* offset 0xc8 */ |
94 | __BFP(uccnf); /* offset 0xcc */ | 95 | __BFP(uccnf); /* offset 0xcc */ |
95 | u32 __pad5[12]; | 96 | u32 __pad4[1]; |
97 | __BFP(version2); /* offset 0xd4 */ | ||
98 | u32 __pad5[10]; | ||
96 | 99 | ||
97 | /* | 100 | /* |
98 | * channel(mailbox) mask and message registers | 101 | * channel(mailbox) mask and message registers |