Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5b129b7 authored by Ritesh Harjani's avatar Ritesh Harjani Committed by Veerabhadrarao Badiganti
Browse files

mmc: sdhci-msm: Enable ADMA length mismatch err interrupt



This enables ADMA length mismatch err interrupt.

Change-Id: Idace1e92c370447abe908a224416936d3569aea1
Signed-off-by: default avatarRitesh Harjani <riteshh@codeaurora.org>
parent 15b5f13c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -94,6 +94,7 @@
#define CORE_DDR_DLL_LOCK	(1 << 11)

#define CORE_CLK_PWRSAVE		(1 << 1)
#define CORE_VNDR_SPEC_ADMA_ERR_SIZE_EN	(1 << 7)
#define CORE_HC_MCLK_SEL_DFLT		(2 << 8)
#define CORE_HC_MCLK_SEL_HS400		(3 << 8)
#define CORE_HC_MCLK_SEL_MASK		(3 << 8)
@@ -4924,6 +4925,12 @@ static int sdhci_msm_probe(struct platform_device *pdev)
	writel_relaxed(CORE_VENDOR_SPEC_POR_VAL,
	host->ioaddr + msm_host_offset->CORE_VENDOR_SPEC);

	/* This enable ADMA error interrupt in case of length mismatch */
	writel_relaxed((readl_relaxed(host->ioaddr +
			msm_host_offset->CORE_VENDOR_SPEC) |
			CORE_VNDR_SPEC_ADMA_ERR_SIZE_EN),
			host->ioaddr + msm_host_offset->CORE_VENDOR_SPEC);

	/*
	 * Ensure SDHCI FIFO is enabled by disabling alternative FIFO
	 */