diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-07-31 14:39:30 +0800 |
---|---|---|
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | 2014-08-01 20:01:09 +0300 |
commit | cd60ebd430ab0aa5e2ed6afeb28c1ed4b2d01388 (patch) | |
tree | 8250fc1087ba0efc4629f35f5f0ead10adf7d32e /include | |
parent | 6ace153d130f528b88117b1edcfe017ea1852d67 (diff) | |
download | u-boot-imx-cd60ebd430ab0aa5e2ed6afeb28c1ed4b2d01388.zip u-boot-imx-cd60ebd430ab0aa5e2ed6afeb28c1ed4b2d01388.tar.gz u-boot-imx-cd60ebd430ab0aa5e2ed6afeb28c1ed4b2d01388.tar.bz2 |
MMC: atmel_mci: refactor setting the mode register
The mode register is different between MCI IP version.
So, according to MCI IP version to set the mode register.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/atmel_mci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/atmel_mci.h b/include/atmel_mci.h index 090574d..3d2870f 100644 --- a/include/atmel_mci.h +++ b/include/atmel_mci.h @@ -67,6 +67,10 @@ typedef struct atmel_mci { #define MMCI_PDCPADV_SIZE 1 #define MMCI_PDCMODE_OFFSET 15 #define MMCI_PDCMODE_SIZE 1 +/* MCI IP version >= 0x500, MR bit 16 used for CLKODD */ +#define MMCI_CLKODD_OFFSET 16 +#define MMCI_CLKODD_SIZE 1 +/* MCI IP version < 0x200, MR higher 16bits for BLKLEN */ #define MMCI_BLKLEN_OFFSET 16 #define MMCI_BLKLEN_SIZE 16 |