Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: stm32: New directory for STM32 DMA controllers drivers

Gather the STM32 DMA controllers under drivers/dma/stm32/

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20240531150712.2503554-3-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Amelie Delaunay and committed by
Vinod Koul
76178a2c 8494ae75

+46 -37
+2 -32
drivers/dma/Kconfig
··· 568 568 Say Y here if you have such a chipset. 569 569 If unsure, say N. 570 570 571 - config STM32_DMA 572 - bool "STMicroelectronics STM32 DMA support" 573 - depends on ARCH_STM32 || COMPILE_TEST 574 - select DMA_ENGINE 575 - select DMA_VIRTUAL_CHANNELS 576 - help 577 - Enable support for the on-chip DMA controller on STMicroelectronics 578 - STM32 MCUs. 579 - If you have a board based on such a MCU and wish to use DMA say Y 580 - here. 581 - 582 - config STM32_DMAMUX 583 - bool "STMicroelectronics STM32 dma multiplexer support" 584 - depends on STM32_DMA || COMPILE_TEST 585 - help 586 - Enable support for the on-chip DMA multiplexer on STMicroelectronics 587 - STM32 MCUs. 588 - If you have a board based on such a MCU and wish to use DMAMUX say Y 589 - here. 590 - 591 - config STM32_MDMA 592 - bool "STMicroelectronics STM32 master dma support" 593 - depends on ARCH_STM32 || COMPILE_TEST 594 - depends on OF 595 - select DMA_ENGINE 596 - select DMA_VIRTUAL_CHANNELS 597 - help 598 - Enable support for the on-chip MDMA controller on STMicroelectronics 599 - STM32 platforms. 600 - If you have a board based on STM32 SoC and wish to use the master DMA 601 - say Y here. 602 - 603 571 config SPRD_DMA 604 572 tristate "Spreadtrum DMA support" 605 573 depends on ARCH_SPRD || COMPILE_TEST ··· 739 771 source "drivers/dma/fsl-dpaa2-qdma/Kconfig" 740 772 741 773 source "drivers/dma/lgm/Kconfig" 774 + 775 + source "drivers/dma/stm32/Kconfig" 742 776 743 777 # clients 744 778 comment "DMA Clients"
+1 -3
drivers/dma/Makefile
··· 70 70 obj-$(CONFIG_RENESAS_DMA) += sh/ 71 71 obj-$(CONFIG_SF_PDMA) += sf-pdma/ 72 72 obj-$(CONFIG_STE_DMA40) += ste_dma40.o ste_dma40_ll.o 73 - obj-$(CONFIG_STM32_DMA) += stm32-dma.o 74 - obj-$(CONFIG_STM32_DMAMUX) += stm32-dmamux.o 75 - obj-$(CONFIG_STM32_MDMA) += stm32-mdma.o 76 73 obj-$(CONFIG_SPRD_DMA) += sprd-dma.o 77 74 obj-$(CONFIG_TXX9_DMAC) += txx9dmac.o 78 75 obj-$(CONFIG_TEGRA186_GPC_DMA) += tegra186-gpc-dma.o ··· 85 88 86 89 obj-y += mediatek/ 87 90 obj-y += qcom/ 91 + obj-y += stm32/ 88 92 obj-y += ti/ 89 93 obj-y += xilinx/
+1 -1
drivers/dma/stm32-dma.c drivers/dma/stm32/stm32-dma.c
··· 28 28 #include <linux/sched.h> 29 29 #include <linux/slab.h> 30 30 31 - #include "virt-dma.h" 31 + #include "../virt-dma.h" 32 32 33 33 #define STM32_DMA_LISR 0x0000 /* DMA Low Int Status Reg */ 34 34 #define STM32_DMA_HISR 0x0004 /* DMA High Int Status Reg */
drivers/dma/stm32-dmamux.c drivers/dma/stm32/stm32-dmamux.c
+1 -1
drivers/dma/stm32-mdma.c drivers/dma/stm32/stm32-mdma.c
··· 30 30 #include <linux/reset.h> 31 31 #include <linux/slab.h> 32 32 33 - #include "virt-dma.h" 33 + #include "../virt-dma.h" 34 34 35 35 #define STM32_MDMA_GISR0 0x0000 /* MDMA Int Status Reg 1 */ 36 36
+37
drivers/dma/stm32/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + # 3 + # STM32 DMA controllers drivers 4 + # 5 + if ARCH_STM32 || COMPILE_TEST 6 + 7 + config STM32_DMA 8 + bool "STMicroelectronics STM32 DMA support" 9 + select DMA_ENGINE 10 + select DMA_VIRTUAL_CHANNELS 11 + help 12 + Enable support for the on-chip DMA controller on STMicroelectronics 13 + STM32 platforms. 14 + If you have a board based on STM32 SoC with such DMA controller 15 + and want to use DMA say Y here. 16 + 17 + config STM32_DMAMUX 18 + bool "STMicroelectronics STM32 DMA multiplexer support" 19 + depends on STM32_DMA 20 + help 21 + Enable support for the on-chip DMA multiplexer on STMicroelectronics 22 + STM32 platforms. 23 + If you have a board based on STM32 SoC with such DMA multiplexer 24 + and want to use DMAMUX say Y here. 25 + 26 + config STM32_MDMA 27 + bool "STMicroelectronics STM32 master DMA support" 28 + depends on OF 29 + select DMA_ENGINE 30 + select DMA_VIRTUAL_CHANNELS 31 + help 32 + Enable support for the on-chip MDMA controller on STMicroelectronics 33 + STM32 platforms. 34 + If you have a board based on STM32 SoC with such DMA controller 35 + and want to use MDMA say Y here. 36 + 37 + endif
+4
drivers/dma/stm32/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + obj-$(CONFIG_STM32_DMA) += stm32-dma.o 3 + obj-$(CONFIG_STM32_DMAMUX) += stm32-dmamux.o 4 + obj-$(CONFIG_STM32_MDMA) += stm32-mdma.o