Merged in david_s5/nuttx/upstream_sdio_1bit_dma (pull request #188)

Allow dma in 1 bit mode in STM32F4xxx
This commit is contained in:
Gregory Nutt 2016-12-24 20:21:03 -06:00
commit ea7b673174
1 changed files with 2 additions and 0 deletions

View File

@ -2578,12 +2578,14 @@ static int stm32_dmapreflight(FAR struct sdio_dev_s *dev,
DEBUGASSERT(priv != NULL && buffer != NULL && buflen > 0);
#if !defined(CONFIG_STM32_STM32F40XX)
/* Wide bus operation is required for DMA */
if (!priv->widebus)
{
return -EINVAL;
}
#endif
/* DMA must be possible to the buffer */