summaryrefslogtreecommitdiff
path: root/include/linux/mmc/card.h
diff options
context:
space:
mode:
authorSeungwon Jeon <tgih.jun@samsung.com>2012-04-25 16:17:37 +0900
committerRiham Haidar <rhaidar@nvidia.com>2013-09-16 12:28:10 -0700
commitc9972a13e1c1877bcfc486a2c6e63613d61f6963 (patch)
tree1fc16f2f5a8cc16110dc3db53a2263e6b182d8d0 /include/linux/mmc/card.h
parent1583d3b4fbbdcf82efb61ba327d3a017fe7d3185 (diff)
mmc: core: fix the decision of HS200/DDR card-type
Current implementation decides the card type exclusively. Even though eMMC device can support both HS200 and DDR mode, card type will be set only for HS200. If the host doesn't support HS200 but has DDR capability, then DDR mode can't be selected. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> (cherry picked from commit 96cf5f02aee8bbeff38824b18b9ec583d687f846) Reviewed-on: http://git-master/r/227757 (cherry picked from commit 084aa8cc074b0e95883934f82f5521d0cc5e0941) Change-Id: Id2b9095f8ffe59c520850acd40681a9ef15c3ff9 Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com> Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com> Change-Id: I3bb070fdb724b817de4475a77c3191b77e654243 Reviewed-on: http://git-master/r/274991 GVS: Gerrit_Virtual_Submit Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'include/linux/mmc/card.h')
-rw-r--r--include/linux/mmc/card.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index c7d90bd3f3bf..22d11242eb93 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -62,6 +62,10 @@ struct mmc_ext_csd {
unsigned int generic_cmd6_time; /* Units: 10ms */
unsigned int power_off_longtime; /* Units: ms */
unsigned int hs_max_dtr;
+#define MMC_HIGH_26_MAX_DTR 26000000
+#define MMC_HIGH_52_MAX_DTR 52000000
+#define MMC_HIGH_DDR_MAX_DTR 52000000
+#define MMC_HS200_MAX_DTR 200000000
unsigned int sectors;
unsigned int card_type;
unsigned int hc_erase_size; /* In sectors */