Commit 8f13e5b3 authored by Subhash Jadavani's avatar Subhash Jadavani Committed by Bryan Huntsman
Browse files

mmc: msm_sdcc: check MCLK_REG_WR_ACTIVE bit for register write completion



When SW writes to MCI_POWER, MCI_CLK, MCI_CMD and MCI_DATA_CTL
registers, the register write operation is completed after
3HCLK + 2 MCLK clock cycles. SW should access these registers
only after the register write operation is completed.
This synchronization delay can't be ignored, especially in case
the MCLK is slow (e.g. 400 KHz).

Special status bit is defined to wait properly for register
write completion bit MCLK_REG_WR_ACTIVE of MCI_STATUS2 register.

SW should always wait until bit MCLK_REG_WR_ACTIVE of MCI_STATUS2
register is low after writing to one of mentioned above registers
and before accessing them again.

Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent b7f0284e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment