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

Commit d798a470 authored by Neeraj Soni's avatar Neeraj Soni Committed by Blagovest Kolenichev
Browse files

mmc: host Fix the offset for ICE address



ICE address space was added to command queue address
space in eMMC JEDEC v5.2 spec so adapt the offset of
crypto registers accordingly.

Change-Id: I4740b2afa37d7dfb6ea0e4280b88dc0bdff9ca87
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent 5220e65f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -282,6 +282,11 @@ static void __cqhci_enable(struct cqhci_host *cq_host)
	if (cqhci_host_is_crypto_supported(cq_host)) {
		cqhci_crypto_enable(cq_host);
		cqcfg |= CQHCI_ICE_ENABLE;
		/* For SDHC v5.0 onwards, ICE 3.0 specific registers are added
		 * in CQ register space, due to which few CQ registers are
		 * shifted. Set offset_changed boolean to use updated address.
		 */
		 cq_host->offset_changed = true;
	}

	cqhci_writel(cq_host, cqcfg, CQHCI_CFG);