diff options
author | Ćukasz Majewski | 2012-03-12 22:07:18 +0000 |
---|---|---|
committer | Andy Fleming | 2012-05-08 18:02:21 -0500 |
commit | 62722036410b7887a04cf6705effb3122fb9b549 (patch) | |
tree | 85ff614d4d3deb0cb6ea676ae0dd869c1797e2bb /include/mmc.h | |
parent | 0a6deb3251a68b5be640ab1b848ca67e906b75ce (diff) |
mmc:fix: Set mmc width according to MMC host capabilities
This patch sets the MMC width according to the MMC host capabilities.
It turned out, that there are some targets (e.g. GONI), which are able
to read data from SPI only at 4 bit mode.
This patch restricts the width number according to the MMC host.
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Andy Fleming <afleming@gmail.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index f52df70ad48..ee16349f832 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -47,6 +47,9 @@ #define MMC_MODE_SPI 0x400 #define MMC_MODE_HC 0x800 +#define MMC_MODE_MASK_WIDTH_BITS (MMC_MODE_4BIT | MMC_MODE_8BIT) +#define MMC_MODE_WIDTH_BITS_SHIFT 8 + #define SD_DATA_4BIT 0x00040000 #define IS_SD(x) (x->version & SD_VERSION_SD) |