Skip to content

Commit

Permalink
mmcsd: SDIO_CAPS_4BIT_ONLY set buswidth MMCSD_SCR_BUSWIDTH_4BIT
Browse files Browse the repository at this point in the history
uint8_t buswidth:4;              /* Bus widths supported (SD only) */

Signed-off-by: zhangshoukui <[email protected]>
  • Loading branch information
Zhangshoukui authored and xiaoxiang781216 committed Oct 24, 2024
1 parent d8ed88c commit 1af82ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/mmcsd/mmcsd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3933,7 +3933,10 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv)

finfo("MMC card detected\n");
priv->type = MMCSD_CARDTYPE_MMC;
priv->buswidth |= MMCSD_SCR_BUSWIDTH_4BIT;
if ((priv->caps & SDIO_CAPS_4BIT_ONLY) != 0)
{
priv->buswidth |= MMCSD_SCR_BUSWIDTH_4BIT;
}

/* Now, check if this is a MMC card/chip that supports block
* addressing
Expand Down

0 comments on commit 1af82ba

Please sign in to comment.