Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+6 -3
+6 -3
arch/blackfin/include/asm/bfin_can.h
··· 34 34 }; 35 35 36 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 38 u16 data[8]; 38 39 __BFP(dlc); 39 40 __BFP(tsv); ··· 84 83 __BFP(gif); /* offset 0x9c */ 85 84 __BFP(control); /* offset 0xa0 */ 86 85 __BFP(intr); /* offset 0xa4 */ 87 - u32 __pad3[1]; 86 + __BFP(version); /* offset 0xa8 */ 88 87 __BFP(mbtd); /* offset 0xac */ 89 88 __BFP(ewr); /* offset 0xb0 */ 90 89 __BFP(esr); /* offset 0xb4 */ 91 - u32 __pad4[2]; 90 + u32 __pad3[2]; 92 91 __BFP(ucreg); /* offset 0xc0 */ 93 92 __BFP(uccnt); /* offset 0xc4 */ 94 93 __BFP(ucrc); /* offset 0xc8 */ 95 94 __BFP(uccnf); /* offset 0xcc */ 96 - u32 __pad5[12]; 95 + u32 __pad4[1]; 96 + __BFP(version2); /* offset 0xd4 */ 97 + u32 __pad5[10]; 97 98 98 99 /* 99 100 * channel(mailbox) mask and message registers