Title: [9285] trunk/arch/blackfin/include/asm/bfin5xx_spi.h: bfin: bfin_spi.h: add mmr layout to header
- Revision
- 9285
- Author
- vapier
- Date
- 2010-10-22 01:11:08 -0400 (Fri, 22 Oct 2010)
Log Message
bfin: bfin_spi.h: add mmr layout to header
Modified Paths
Diff
Modified: trunk/arch/blackfin/include/asm/bfin5xx_spi.h (9284 => 9285)
--- trunk/arch/blackfin/include/asm/bfin5xx_spi.h 2010-10-22 04:41:35 UTC (rev 9284)
+++ trunk/arch/blackfin/include/asm/bfin5xx_spi.h 2010-10-22 05:11:08 UTC (rev 9285)
@@ -41,6 +41,25 @@
#define BIT_STU_SENDOVER 0x0001
#define BIT_STU_RECVFULL 0x0020
+/*
+ * All Blackfin system MMRs are padded to 32bits even if the register
+ * itself is only 16bits. So use a helper macro to streamline this.
+ */
+#define __BFP(m) u16 m; u16 __pad_##m
+
+/*
+ * bfin spi registers layout
+ */
+struct bfin_spi_regs {
+ __BFP(ctl);
+ __BFP(flg);
+ __BFP(stat);
+ __BFP(tdbr);
+ __BFP(rdbr);
+ __BFP(baud);
+ __BFP(shadow);
+};
+
#define MAX_CTRL_CS 8 /* cs in spi controller */
/* device.platform_data for SSP controller devices */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits