diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-03 10:59:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-03 10:59:53 +0200 |
commit | 2302fc6076879554aff61e8a5d33af6828d90c03 (patch) | |
tree | 4136ada1188380b0b89817cbbd428184b917f74e /include/mci.h | |
parent | 56bd91c9a19735f08926db9b9736565fe1672b12 (diff) | |
download | barebox-2302fc6076879554aff61e8a5d33af6828d90c03.tar.gz barebox-2302fc6076879554aff61e8a5d33af6828d90c03.tar.xz |
mci: rename capabilities flags
Use MMC_CAP_ names instead of MMC_MODE_. This makes it more
clear that these are capabilities of host/card and do not refer
to the current mode. These are in line with the Linux Kernel
except for MMC_CAP_MMC_HIGHSPEED_52MHZ which could be fixed
later.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mci.h')
-rw-r--r-- | include/mci.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/mci.h b/include/mci.h index bca374a8bf..3989f46e32 100644 --- a/include/mci.h +++ b/include/mci.h @@ -44,11 +44,12 @@ #define MMC_VERSION_3 (MMC_VERSION_MMC | 0x30) #define MMC_VERSION_4 (MMC_VERSION_MMC | 0x40) -#define MMC_MODE_HS 0x001 -#define MMC_MODE_HS_52MHz 0x010 -#define MMC_CAP_SPI 0x020 -#define MMC_MODE_4BIT 0x100 -#define MMC_MODE_8BIT 0x200 +#define MMC_CAP_SPI (1 << 0) +#define MMC_CAP_4_BIT_DATA (1 << 1) +#define MMC_CAP_8_BIT_DATA (1 << 2) +#define MMC_CAP_SD_HIGHSPEED (1 << 3) +#define MMC_CAP_MMC_HIGHSPEED (1 << 4) +#define MMC_CAP_MMC_HIGHSPEED_52MHZ (1 << 5) #define SD_DATA_4BIT 0x00040000 |