Skip to content

Commit c2197ce

Browse files
GuEe-GUI1078249029
authored andcommitted
[DM/FEATURE] Support DMA management (RT-Thread#9682)
1. DMA pool management for platform. 2. DMA engine driver API. Signed-off-by: GuEe-GUI <[email protected]>
1 parent e0c3c79 commit c2197ce

File tree

7 files changed

+1546
-0
lines changed

7 files changed

+1546
-0
lines changed

components/drivers/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ rsource "hwcrypto/Kconfig"
2323
rsource "wlan/Kconfig"
2424
rsource "block/Kconfig"
2525
rsource "virtio/Kconfig"
26+
rsource "dma/Kconfig"
2627
rsource "mfd/Kconfig"
2728
rsource "ofw/Kconfig"
2829
rsource "pci/Kconfig"

components/drivers/dma/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
menuconfig RT_USING_DMA
2+
bool "Using Direct Memory Access (DMA)"
3+
depends on RT_USING_DM
4+
select RT_USING_ADT
5+
select RT_USING_ADT_BITMAP
6+
default n
7+
8+
if RT_USING_DMA
9+
osource "$(SOC_DM_DMA_DIR)/Kconfig"
10+
endif

components/drivers/dma/SConscript

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from building import *
2+
3+
group = []
4+
5+
if not GetDepend(['RT_USING_DMA']):
6+
Return('group')
7+
8+
cwd = GetCurrentDir()
9+
CPPPATH = [cwd + '/../include']
10+
11+
src = ['dma.c', 'dma_pool.c']
12+
13+
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
14+
15+
Return('group')

0 commit comments

Comments
 (0)