• Ludovic Barre's avatar
    mmc: mmci: sdmmc: add busy_complete callback · 0e68de6a
    Ludovic Barre authored
    This patch adds a specific busy_complete callback for sdmmc variant.
    
    sdmmc has 2 status flags:
    -busyd0: This is a hardware status flag (inverted value of d0 line).
    it does not generate an interrupt.
    -busyd0end: This indicates only end of busy following a CMD response.
    On busy to Not busy changes, an interrupt is generated (if unmask)
    and BUSYD0END status flag is set. Status flag is cleared by writing
    corresponding interrupt clear bit in MMCICLEAR.
    
    The legacy busy completion has no dedicated interrupt for the end
    of busy, so it's must monitor step by step the busy progression.
    On sdmmc variant, this procedure is not needed, it's just need
    to wait the busyd0end interrupt.
    Signed-off-by: default avatarLudovic Barre <ludovic.barre@st.com>
    Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    0e68de6a
mmci.h 15.5 KB