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>
This commit is contained in:
committed by
Pantelis Antoniou
parent
6ace153d13
commit
cd60ebd430
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user