mmc: sdhci-brcmstb: add new sdhci reset sequence for brcm 74165b0
authorKamal Dasu <kdasu@broadcom.com>
Wed, 3 Jan 2024 22:23:38 +0000 (17:23 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 5 Jan 2024 09:54:50 +0000 (10:54 +0100)
commitfe86da368a1b751adec1776369cb15cd0aae0f10
treea8dc25dd7931eb19636e6e5c5837f696480315e6
parent0a8d397cfc9001a5a0d9f52aa2af97f0df4a51f2
mmc: sdhci-brcmstb: add new sdhci reset sequence for brcm 74165b0

74165b0 shall use a new sdio controller core version which
requires a different reset sequence. For core reset we use
sdhci_reset. For CMD and/or DATA reset added a new function
to also enable SDHCI clocks SDHCI_CLOCK_CARD_EN
SDHCI_CLOCK_INT_EN along with the SDHCI_RESET_CMD and/or
SDHCI_RESET_DATA fields.

Signed-off-by: Kamal Dasu <kdasu@broadcom.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240103222338.31447-3-kamal.dasu@broadcom.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-brcmstb.c