summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/mmc.h
diff options
context:
space:
mode:
authorAlexey Skidanov2015-01-29 09:49:43 +0100
committerUlf Hansson2015-01-29 11:15:12 +0100
commit0501be6429e4eb02f417ad83eacd84b8c57b0283 (patch)
treec56a75eb3b4c00bdab0925cb6e72e15e592684d4 /include/linux/mmc/mmc.h
parentmmc: sdhci-pxav3: fix setting of pdata->clk_delay_cycles (diff)
downloadkernel-qcow2-linux-0501be6429e4eb02f417ad83eacd84b8c57b0283.tar.gz
kernel-qcow2-linux-0501be6429e4eb02f417ad83eacd84b8c57b0283.tar.xz
kernel-qcow2-linux-0501be6429e4eb02f417ad83eacd84b8c57b0283.zip
mmc: Resolve BKOPS compatability issue
This patch is coming to fix compatibility issue of BKOPS_EN field of EXT_CSD. In eMMC-5.1, BKOPS_EN was changed, and now it has two operational bits: Bit 0 - MANUAL_EN Bit 1 - AUTO_EN In previous eMMC revisions, only Bit 0 was supported. Signed-off-by: Alexey Skidanov <alexey.skidanov@sandisk.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc/mmc.h')
-rw-r--r--include/linux/mmc/mmc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/mmc.h
index fb97b5cc91cd..124f562118b8 100644
--- a/include/linux/mmc/mmc.h
+++ b/include/linux/mmc/mmc.h
@@ -428,6 +428,11 @@ struct _mmc_csd {
#define EXT_CSD_BKOPS_LEVEL_2 0x2
/*
+ * BKOPS modes
+ */
+#define EXT_CSD_MANUAL_BKOPS_MASK 0x01
+
+/*
* MMC_SWITCH access modes
*/