Skip to content

Commit 94bbdd7

Browse files
akochetkovmmind
authored andcommitted
ARM: dts: rockchip: setup DMA-channels for mmc0 and emmc for rk3188
This commit enable DMA-based transfers for SD/eMMC card adapters and reduce number of interrupts produced by SD-card/eMMC-card adapters. Sometimes interrupts from SD-card/eMMC-card adapters running in PIO mode blocks execution of hrtimers and I2S DMA callbacks for a long periods (100 ms or more). Signed-off-by: Alexander Kochetkov <[email protected]> [moved dma properties to rk3xxx.dtsi and added sdio dma] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 2e1aa60 commit 94bbdd7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/arm/boot/dts/rk3xxx.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@
223223
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
224224
clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
225225
clock-names = "biu", "ciu";
226+
dmas = <&dmac2 1>;
227+
dma-names = "rx-tx";
226228
fifo-depth = <256>;
227229
resets = <&cru SRST_SDMMC>;
228230
reset-names = "reset";
@@ -235,6 +237,8 @@
235237
interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
236238
clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
237239
clock-names = "biu", "ciu";
240+
dmas = <&dmac2 3>;
241+
dma-names = "rx-tx";
238242
fifo-depth = <256>;
239243
resets = <&cru SRST_SDIO>;
240244
reset-names = "reset";
@@ -247,6 +251,8 @@
247251
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
248252
clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
249253
clock-names = "biu", "ciu";
254+
dmas = <&dmac2 4>;
255+
dma-names = "rx-tx";
250256
fifo-depth = <256>;
251257
resets = <&cru SRST_EMMC>;
252258
reset-names = "reset";

0 commit comments

Comments
 (0)