This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 57ca5c040127a90ff648ed517051c162d305fa49
Author: SPRESENSE <41312067+sprese...@users.noreply.github.com>
AuthorDate: Tue Jan 24 12:33:56 2023 +0900

    arch: cxd56xx: Disable SubCore to use DMA
    
    Disable SubCore to use SPI transfer with DMA because it may be used
    by MainCore.
---
 arch/arm/src/cxd56xx/cxd56_dmac.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/src/cxd56xx/cxd56_dmac.c 
b/arch/arm/src/cxd56xx/cxd56_dmac.c
index f0a0649976..c52e495e40 100644
--- a/arch/arm/src/cxd56xx/cxd56_dmac.c
+++ b/arch/arm/src/cxd56xx/cxd56_dmac.c
@@ -731,7 +731,9 @@ void weak_function arm_dma_initialize(void)
   for (i = 0; i < NCHANNELS; i++)
     {
       g_dmach[i].chan = i;
+#ifndef CONFIG_CXD56_SUBCORE
       up_enable_irq(irq_map[i]);
+#endif
     }
 }
 

Reply via email to