From 891344a7f602e9431a52b89d32d3b5a8e2b0430c Mon Sep 17 00:00:00 2001
From: Karl Palsson <karlp@etactica.com>
Date: Wed, 15 Sep 2021 15:05:36 +0000
Subject: dma: convert to new style, add DMAMUX

DMAMUX is a channel/source muxer available on L4+,L5,H7,G0,G4,WB and WL
parts.

Signed-of-by: Karl Palsson <karlp@etactica.com>
---
 platforms/stm32/f4.yaml |  8 ++++++++
 platforms/stm32/wb.yaml | 13 +++++++++++++
 2 files changed, 21 insertions(+)

(limited to 'platforms/stm32')

diff --git a/platforms/stm32/f4.yaml b/platforms/stm32/f4.yaml
index d2d8a28..72d4505 100644
--- a/platforms/stm32/f4.yaml
+++ b/platforms/stm32/f4.yaml
@@ -37,6 +37,14 @@
         offset: 0x40004400
         type: v1
 
+    stm32_dma:
+      DMA1:
+        type: v2
+        offset: 0x40026000
+      DMA2:
+        type: v2
+        offset: 0x40026400
+
     dwc_otg:
       OTG_FS:
         offset: 0x50000000
diff --git a/platforms/stm32/wb.yaml b/platforms/stm32/wb.yaml
index c41148c..2214005 100644
--- a/platforms/stm32/wb.yaml
+++ b/platforms/stm32/wb.yaml
@@ -33,6 +33,19 @@
         type: v2
         offset: 0x40013800
 
+    stm32_dma:
+      DMA1:
+        type: v1
+        offset: 0x40020000
+      DMA2:
+        type: v1
+        offset: 0x40020400
+
+    stm32_dmamux:
+      DMAMUX1:
+        type: v1
+        offset: 0x40020800
+
     rcc:
       RCC:
         offset: 0x58000000
-- 
cgit v1.2.3