From 7430e9b629409e50104d27dca2338a0ee62676fc Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 31 Mar 2013 21:11:29 +0000 Subject: [PATCH] Open1788 SDCard DMA works git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5805 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 4 ++++ arch/arm/src/lpc17xx/lpc17_gpdma.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 878555bb52..654b9e031c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4478,3 +4478,7 @@ logic to extend directory clusters for the case of long file names but also include a few important general fixes (such as for storing 32 bit FAT values) (2013-03-31). + * arch/arm/src/lpc17xx/lpc17_gdma.c and lpc17_sdcard.c: SD card DMA + is now functional. Thre may be some issues with DMA from CPU SRAM + which is apparently disabled in sleep mode; up_idle() always enters + sleep mode (2013-03-31). diff --git a/arch/arm/src/lpc17xx/lpc17_gpdma.c b/arch/arm/src/lpc17xx/lpc17_gpdma.c index 4edc87dbf1..6ccc8e4ef5 100644 --- a/arch/arm/src/lpc17xx/lpc17_gpdma.c +++ b/arch/arm/src/lpc17xx/lpc17_gpdma.c @@ -247,6 +247,10 @@ void weak_function up_dmainitialize(void) { up_enable_irq(LPC17_IRQ_GPDMA); } + + /* Enable the DMA controller (for little endian operation) */ + + putreg32(DMA_CONFIG_E, LPC17_DMA_CONFIG); } /****************************************************************************