diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c index 130627c85fd..a8875f36d45 100644 --- a/drivers/mmcsd/mmcsd_sdio.c +++ b/drivers/mmcsd/mmcsd_sdio.c @@ -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.