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: I409b031edcf1055289f2868aaaa00adc20eabfec
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
tirimbino
Neeraj Soni 5 years ago committed by Gerrit - the friendly Code Review server
parent 38af4a5eae
commit e5f7f9d0b9
  1. 5
      drivers/mmc/host/cmdq_hci.c

@ -411,6 +411,11 @@ static int cmdq_enable(struct mmc_host *mmc)
if (cmdq_host_is_crypto_supported(cq_host)) {
cmdq_crypto_enable(cq_host);
cqcfg |= CQ_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;
}
cmdq_writel(cq_host, cqcfg, CQCFG);

Loading…
Cancel
Save