mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 06:55:13 +00: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:
parent
d8ed88c8a6
commit
1af82ba979
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue