mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 11:41:51 +08:00
mmcsd: SDIO_CAPS_4BIT_ONLY set buswidth MMCSD_SCR_BUSWIDTH_4BIT
uint8_t buswidth:4; /* Bus widths supported (SD only) */ Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user