summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWu, Josh <Josh.wu@atmel.com>2012-09-13 22:22:04 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2012-10-17 11:28:54 +0200
commit1db7377a70a8d931c32648e717695133120d5456 (patch)
treed461e7e61b82bbe6af64e94d63a2465993d091c7 /include
parentb9f4bc34ac0ee40f8d6a952036b4cd62b854aa74 (diff)
mmc: at91: add multi block read/write support.
Since the at91sam9263, the mmc hardware support multi blocks read/write. So this driver enable it. Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/atmel_mci.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/atmel_mci.h b/include/atmel_mci.h
index 3dd5d67be9..c711881276 100644
--- a/include/atmel_mci.h
+++ b/include/atmel_mci.h
@@ -38,7 +38,7 @@ typedef struct atmel_mci {
u32 sdcr; /* 0x0c */
u32 argr; /* 0x10 */
u32 cmdr; /* 0x14 */
- u32 _18; /* 0x18 */
+ u32 blkr; /* 0x18 */
u32 _1c; /* 0x1c */
u32 rspr; /* 0x20 */
u32 rspr1; /* 0x24 */
@@ -118,6 +118,11 @@ typedef struct atmel_mci {
#define MMCI_TRTYP_OFFSET 19
#define MMCI_TRTYP_SIZE 2
+/* Bitfields in BLKR */
+/* MMCI_BLKLEN_OFFSET/SIZE already defined in MR */
+#define MMCI_BCNT_OFFSET 0
+#define MMCI_BCNT_SIZE 16
+
/* Bitfields in RSPRx */
#define MMCI_RSP_OFFSET 0
#define MMCI_RSP_SIZE 32