From 6215117e6ca3951ae5fbff75c9d92302f811b1b1 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 23 Jul 2018 12:21:58 -0700 Subject: [PATCH] nxphlite-v3:SDIO DMA working. The fix ix in nuttx. This is just the defconfig changes to use it. There were 2 problems. The first was that the interrupt did test DINT and raise a completion events. But since DINT is just an indication of DMA completion, TC is a valid way to determine that the transfer is complete. The second problem is that Software Reset For DAT Line SDHC_SYSCTL[RSTD] clears the bits 24-0 in SDHC_PROTO this looses the wide bus setting DTW --- platforms/nuttx/NuttX/nuttx | 2 +- platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platforms/nuttx/NuttX/nuttx b/platforms/nuttx/NuttX/nuttx index b943b507a118..3e79b54b7053 160000 --- a/platforms/nuttx/NuttX/nuttx +++ b/platforms/nuttx/NuttX/nuttx @@ -1 +1 @@ -Subproject commit b943b507a118b4372635ea3a299e0c7d58a7bfc9 +Subproject commit 3e79b54b7053f7c37a3a3b0723a1b1beaebd4301 diff --git a/platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig b/platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig index 06ee29432e1b..67643624672e 100644 --- a/platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig +++ b/platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig @@ -253,7 +253,7 @@ CONFIG_KINETIS_LPTIMER=y CONFIG_KINETIS_RTC=y # CONFIG_KINETIS_EWM is not set # CONFIG_KINETIS_CMT is not set -# CONFIG_KINETIS_USBOTG is not set +# CONFIG_KINETIS_USBOTG is not set CONFIG_KINETIS_USBDCD=y # CONFIG_KINETIS_LLWU is not set # CONFIG_KINETIS_TSI is not set @@ -283,7 +283,7 @@ CONFIG_KINETIS_PORTEINTS=y # # Kinetis SDHC Configuration # -# CONFIG_KINETIS_SDHC_DMA is not set +CONFIG_KINETIS_SDHC_DMA=y # CONFIG_KINETIS_SDHC_WIDTH_D1_ONLY is not set # CONFIG_KINETIS_SDHC_ABSFREQ is not set @@ -615,7 +615,7 @@ CONFIG_MMCSD_MMCSUPPORT=y CONFIG_MMCSD_HAVECARDDETECT=y # CONFIG_MMCSD_SPI is not set CONFIG_ARCH_HAVE_SDIO=y -# CONFIG_SDIO_DMA is not set +CONFIG_SDIO_DMA=y # CONFIG_ARCH_HAVE_SDIOWAIT_WRCOMPLETE is not set CONFIG_MMCSD_SDIO=y # CONFIG_SDIO_PREFLIGHT is not set