mmc: sdhci-msm: Add software capabilities for 8-bit slot

With SDCC5 the capabilities register is not advertising the
8-bit capability feature (except for 8974 and 8084).

So add the software capabilities for 8-bit slot for rest of
the targets with SDCC5.

Change-Id: I288292f37d77507bf5aaa44bf156496b4df87234
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
This commit is contained in:
Pratibhasagar V 2013-12-09 20:42:32 +05:30 committed by Subhash Jadavani
parent 7eba9c3c95
commit ef8a870827

View file

@ -2721,11 +2721,13 @@ static void sdhci_set_default_hw_caps(struct sdhci_msm_host *msm_host,
/*
* Starting with SDCC 5 controller (core major version = 1)
* controller won't advertise 3.0v features except for
* controller won't advertise 3.0v and 8-bit features except for
* some targets.
*/
if (major >= 1 && minor != 0x11 && minor != 0x12) {
caps = CORE_3_0V_SUPPORT;
if (msm_host->pdata->mmc_bus_width == MMC_CAP_8_BIT_DATA)
caps |= CORE_8_BIT_SUPPORT;
writel_relaxed(
(readl_relaxed(host->ioaddr + SDHCI_CAPABILITIES) |
caps), host->ioaddr + CORE_VENDOR_SPEC_CAPABILITIES0);