Skip to content

Commit decc28c

Browse files
committed
[DM/FEATURE] Support DMA management
1. DMA pool management for platform. 2. DMA engine driver API. Signed-off-by: GuEe-GUI <[email protected]>
1 parent fed7c9a commit decc28c

File tree

7 files changed

+1546
-0
lines changed

7 files changed

+1546
-0
lines changed

components/drivers/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ rsource "graphic/Kconfig"
2222
rsource "hwcrypto/Kconfig"
2323
rsource "wlan/Kconfig"
2424
rsource "virtio/Kconfig"
25+
rsource "dma/Kconfig"
2526
rsource "ofw/Kconfig"
2627
rsource "pci/Kconfig"
2728
rsource "pic/Kconfig"

components/drivers/dma/Kconfig

+10
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+
source "$(RTT_DIR)/components/drivers/$(SOC_DM_DMA_DIR)/Kconfig.dm"
10+
endif

components/drivers/dma/SConscript

+15
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)