diff options
author | elen.song <elen.song@atmel.com> | 2011-07-12 00:17:07 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2011-07-15 20:29:21 -0500 |
commit | c310fc840472a36e4b9d2505830e9dc8d458d63c (patch) | |
tree | 1fc6a019a440fc739b6e2dd4d0a86c6e8e8b3f88 /drivers/mmc/atmel_mci.h | |
parent | b1f1e821d335de58d362bf3013c93cef86cdb356 (diff) | |
download | u-boot-imx-c310fc840472a36e4b9d2505830e9dc8d458d63c.zip u-boot-imx-c310fc840472a36e4b9d2505830e9dc8d458d63c.tar.gz u-boot-imx-c310fc840472a36e4b9d2505830e9dc8d458d63c.tar.bz2 |
AT91:mmc:fix multiple read/write error
According to datasheet,set block count before multiple read/write.
Signed-off-by: elen.song <elen.song@atmel.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'drivers/mmc/atmel_mci.h')
-rw-r--r-- | drivers/mmc/atmel_mci.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/mmc/atmel_mci.h b/drivers/mmc/atmel_mci.h index 90ab6a8..3095d22 100644 --- a/drivers/mmc/atmel_mci.h +++ b/drivers/mmc/atmel_mci.h @@ -36,7 +36,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 */ @@ -67,6 +67,7 @@ typedef struct atmel_mci { #define MMCI_SDCR 0x000c #define MMCI_ARGR 0x0010 #define MMCI_CMDR 0x0014 +#define MMCI_BLKR 0x0018 #define MMCI_RSPR 0x0020 #define MMCI_RSPR1 0x0024 #define MMCI_RSPR2 0x0028 @@ -140,6 +141,12 @@ typedef struct atmel_mci { #define MMCI_TRTYP_OFFSET 19 #define MMCI_TRTYP_SIZE 2 +/* Bitfields in BLKR */ +#define MMCI_BCNT_OFFSET 0 +#define MMCI_BCNT_SIZE 16 +#define MMCI_BLKLEN_OFFSET 16 +#define MMCI_BLKLEN_SIZE 16 + /* Bitfields in RSPRx */ #define MMCI_RSP_OFFSET 0 #define MMCI_RSP_SIZE 32 |