diff --git a/configs/sama5d3x-ek/README.txt b/configs/sama5d3x-ek/README.txt index aef5e235fb..a572ff4973 100644 --- a/configs/sama5d3x-ek/README.txt +++ b/configs/sama5d3x-ek/README.txt @@ -987,6 +987,16 @@ Configurations CONFIG_SAMA5_AT25_AUTOMOUNT=y : Mounts AT25 for NSH CONFIG_SAMA5_AT25_FTL=y : Create block driver for FAT + The SPI driver can be built to do polled or DMA SPI data transfers. + The following additional changes will enable SPI DMA: + + System Type -> SAMA5 Peripheral Support + CONFIG_SAMA5_DMAC0=y : Enable DMA controller 0 + + System Type -> SPI device driver options + CONFIG_SAMA5_SPI_DMA=y : Use DMA for SPI transfers + CONFIG_SAMA5_SPI_DMATHRESHOLD=4 : Don't DMA for small transfers + NOTE that you must close JP1 on the Embest/Ronetix board in order to enable the AT25 FLASH chip select. diff --git a/configs/sama5d3x-ek/src/sam_nsh.c b/configs/sama5d3x-ek/src/sam_nsh.c index 2fb783a5d7..b84418a6a9 100644 --- a/configs/sama5d3x-ek/src/sam_nsh.c +++ b/configs/sama5d3x-ek/src/sam_nsh.c @@ -114,6 +114,7 @@ int nsh_archinitialize(void) { fdbg("ERROR: sam_at25_initialize failed: %d\n", ret); return ret; + } #endif #ifdef HAVE_HSMCI_MTD