From bb36c0af862d1cecafff98a99e29ab54657c241e Mon Sep 17 00:00:00 2001 From: Lee Jones Date: Mon, 13 Feb 2017 12:10:22 +0000 Subject: [PATCH] dma: Add possibility for up to 3 DMA Controllers Currently only 1 is allowed. While we're at it, let's generify the existing entries, since they could be used by all controllers, not just QMSI. Change-Id: Iec5d195fff239931b21a7584eb4b642b40f95be5 Signed-off-by: Lee Jones --- drivers/dma/Kconfig | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index d12edde9f15..ed26d9612da 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -30,16 +30,39 @@ menuconfig DMA_STM32F4X DMA driver for STM32F4x series SoCs. config DMA_0_NAME - string "Device name for QMSI DMA Controller" + string "Device name for DMA Controller 0" default "DMA_0" help - Device name for the QMSI DMA Controller. + Device name for DMA Controller 0. config DMA_0_IRQ_PRI - int "IRQ Priority for DMA" + int "IRQ Priority for DMA Controller 0" default 3 help IRQ Priority for the DMA Controller. +config DMA_1_NAME + string "Device name for DMA Controller 1" + default "DMA_1" help + Device name for DMA Controller 1. + +config DMA_1_IRQ_PRI + int "IRQ Priority for DMA Controller 1" + default 3 + help + IRQ Priority for DMA Controller 1. + +config DMA_2_NAME + string "Device name for DMA Controller 2" + default "DMA_2" + help + Device name for DMA Controller 2. + +config DMA_2_IRQ_PRI + int "IRQ Priority for DMA Controller 2" + default 3 + help + IRQ Priority for DMA Controller 2. + endif # DMA