cuav_x7pro:Add support for DMA on SPI6

This commit is contained in:
David Sidrane 2020-09-03 05:17:50 -07:00 committed by Daniel Agar
parent 2745ffe946
commit 848b0ea88c
3 changed files with 11 additions and 3 deletions

View File

@ -45,5 +45,5 @@
// DMAMUX2 (BDMA)
#define DMAMAP_SPI6_RX DMAMAP_BDMA_SPI6_RX /* DMAMUX2:11 */
#define DMAMAP_SPI6_TX DMAMAP_BDMA_SPI6_TX /* DMAMUX2:12 */
#define DMAMAP_SPI6_RX DMAMAP_BDMA_SPI6_RX /* BDMA:11 */
#define DMAMAP_SPI6_TX DMAMAP_BDMA_SPI6_TX /* BDMA:12 */

View File

@ -155,6 +155,7 @@ CONFIG_STDIO_BUFFER_SIZE=256
CONFIG_STM32H7_ADC1=y
CONFIG_STM32H7_BBSRAM=y
CONFIG_STM32H7_BBSRAM_FILES=5
CONFIG_STM32H7_BDMA=y
CONFIG_STM32H7_BKPSRAM=y
CONFIG_STM32H7_DMA1=y
CONFIG_STM32H7_DMA2=y
@ -184,7 +185,7 @@ CONFIG_STM32H7_SPI4=y
CONFIG_STM32H7_SPI5=y
CONFIG_STM32H7_SPI6=y
CONFIG_STM32H7_SPI6_DMA=y
CONFIG_STM32H7_SPI6_DMA_BUFFER=512
CONFIG_STM32H7_SPI6_DMA_BUFFER=1024
CONFIG_STM32H7_SPI_DMA=y
CONFIG_STM32H7_SPI_DMATHRESHOLD=8
CONFIG_STM32H7_TIM12=y

View File

@ -205,6 +205,13 @@ SECTIONS
_ebss = ABSOLUTE(.);
} > AXI_SRAM
/* Emit the the D3 power domain section for locating BDMA data */
.sram4 (NOLOAD) :
{
} > SRAM4
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }