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

Skip to content
Commit 1367cac7 authored by Jun Li's avatar Jun Li
Browse files

mmc: core: Add at least 3 mclk cycle delay before next command after ACMD41



As per design, internal CRC error flag will be cleared only after 3 MCLK
once clear command issued. Since the MCLK will be running at 400KHz during
initialization, it will take max of 7.5us (2.5us *3 = 7.5us) to clear
the status. If the CMD_CRC_CHECK_EN bit is enabled before the source is
cleared, CRC INTR bit will be set in the 17th bit of INTR status register.
Because the response of ACMD41 in sd and CMD1 in mmc are R3 response that
don't have CRC field, so it is expected to give next command after at least
3 MCLK periods.

Change-Id: I31b52a767f2212d33cab15251ab5b37a04b25618
Signed-off-by: default avatarJun Li <liju@codeaurora.org>
parent 389d1d3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment