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:
parent
7eba9c3c95
commit
ef8a870827
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue