mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
L61:bsp:Add bes mmcsd control support for provisional
Signed-off-by: anjianjun <anjianjun@xiaomi.com> Change-Id: I390e740de1e4e6a42f702a83781082f9933e0647
This commit is contained in:
@@ -1382,6 +1382,9 @@ static ssize_t mmcsd_readsingle(FAR struct mmcsd_state_s *priv,
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BES_HAVE_MTDSDMMC)
|
||||
return hal_sdmmc_read_blocks(0, startblock, 1, buffer);
|
||||
#endif
|
||||
#if defined(CONFIG_SDIO_DMA) && defined(CONFIG_ARCH_HAVE_SDIO_PREFLIGHT)
|
||||
/* If we think we are going to perform a DMA transfer, make sure that we
|
||||
* will be able to before we commit the card to the operation.
|
||||
@@ -1517,6 +1520,9 @@ static ssize_t mmcsd_readmultiple(FAR struct mmcsd_state_s *priv,
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BES_HAVE_MTDSDMMC)
|
||||
return hal_sdmmc_read_blocks(0, startblock, nblocks, buffer);
|
||||
#endif
|
||||
#if defined(CONFIG_SDIO_DMA) && defined(CONFIG_ARCH_HAVE_SDIO_PREFLIGHT)
|
||||
/* If we think we are going to perform a DMA transfer, make sure that we
|
||||
* will be able to before we commit the card to the operation.
|
||||
@@ -1725,6 +1731,9 @@ static ssize_t mmcsd_writesingle(FAR struct mmcsd_state_s *priv,
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BES_HAVE_MTDSDMMC)
|
||||
return hal_sdmmc_write_blocks(0, startblock, 1, buffer);
|
||||
#endif
|
||||
#if defined(CONFIG_SDIO_DMA) && defined(CONFIG_ARCH_HAVE_SDIO_PREFLIGHT)
|
||||
/* If we think we are going to perform a DMA transfer, make sure that we
|
||||
* will be able to before we commit the card to the operation.
|
||||
@@ -1896,6 +1905,9 @@ static ssize_t mmcsd_writemultiple(FAR struct mmcsd_state_s *priv,
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BES_HAVE_MTDSDMMC)
|
||||
return hal_sdmmc_write_blocks(0, startblock, nblocks, buffer);
|
||||
#endif
|
||||
#if defined(CONFIG_SDIO_DMA) && defined(CONFIG_ARCH_HAVE_SDIO_PREFLIGHT)
|
||||
/* If we think we are going to perform a DMA transfer, make sure that we
|
||||
* will be able to before we commit the card to the operation.
|
||||
|
||||
Reference in New Issue
Block a user