mmc: sdhci-msm: Update ICE reset register offset for ICE HCI
SDHC v5.0 onwards the ICE reset register offset got updated. Update the register offset based on the SDHC version. Change-Id: I9c1250460cddf72837446b54fe03e3c52f11b234 Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
This commit is contained in:
parent
92907bcb94
commit
8265e5eb2f
1 changed files with 8 additions and 2 deletions
|
@ -3362,8 +3362,14 @@ void sdhci_msm_reset(struct sdhci_host *host, u8 mask)
|
|||
struct sdhci_msm_host *msm_host = pltfm_host->priv;
|
||||
|
||||
/* Set ICE core to be reset in sync with SDHC core */
|
||||
if (msm_host->ice.pdev)
|
||||
writel_relaxed(1, host->ioaddr + CORE_VENDOR_SPEC_ICE_CTRL);
|
||||
if (msm_host->ice.pdev) {
|
||||
if (msm_host->ice_hci_support)
|
||||
writel_relaxed(1, host->ioaddr +
|
||||
HC_VENDOR_SPECIFIC_ICE_CTRL);
|
||||
else
|
||||
writel_relaxed(1,
|
||||
host->ioaddr + CORE_VENDOR_SPEC_ICE_CTRL);
|
||||
}
|
||||
|
||||
sdhci_reset(host, mask);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue