drivers: usdhc: Add log for DAT3 detection

Add log to tell user when DAT3 detection method is in use

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2022-02-01 19:41:35 -06:00 committed by Carles Cufí
commit 419dc385f2

View file

@ -2756,6 +2756,7 @@ static int usdhc_board_access_init(struct usdhc_priv *priv)
if (!priv->detect_gpio) {
LOG_INF("USDHC detection other than GPIO");
if (config->detect_dat3) {
LOG_INF("USDHC detection using DAT3 pull");
base->PROT_CTRL |= USDHC_PROT_CTRL_D3CD_MASK;
/* Pull down DAT3 */
usdhc_dat3_pull(USDHC_DAT3_PULL_DOWN, priv);