mmc: msm_sdcc: Enable eMMCv4.5 BKOPS support

Set MMC_CAP2_INIT_BKOPS. This will set the BKOPS_EN bit in the
ext_csd register. The BKOPS_EN bit is one time programmable.

(cherry picked from commit b7f382b25fbd363c43af2332b4ff490e13aab6e4)

Change-Id: Ie913561b2b82ff28366ffe564ffcafe8fc19a96a
Signed-off-by: Maya Erez <merez@codeaurora.org>
(cherry picked from commit 2d29e0d34e3304d976291d3ab29c7c893c12d740)
This commit is contained in:
Maya Erez 2012-11-01 21:39:00 +02:00 committed by Stephen Boyd
parent 1a6cf520af
commit 0375b15d28

View file

@ -5760,6 +5760,7 @@ msmsdcc_probe(struct platform_device *pdev)
mmc->caps2 |= (MMC_CAP2_BOOTPART_NOACC | MMC_CAP2_DETECT_ON_ERR);
mmc->caps2 |= MMC_CAP2_SANITIZE;
mmc->caps2 |= MMC_CAP2_INIT_BKOPS;
if (plat->nonremovable)
mmc->caps |= MMC_CAP_NONREMOVABLE;