DMA assignment

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DMA assignment

2,517 次查看
carlovalgocela
Contributor III

In the timesys BSP User Guide BSP User Guide for Freescale TWR-VF65GS10 | Timesys Embedded Linux

Linux uses DMA channels on DMA engine 0,mux 0

     UART1 RX - Channel 4
     UART1 TX - Channel 5

     DSPI0 RX - Channel 12
     DSPI0 TX - Channel 13

     SAI2 (I2S2) RX - Channel 20
     SAI2 (I2S2) TX - Channel 21

But when i checked the in the linux  # ls -1 /sys/class/dma

I can see that there are DMA assigned on DMA1:

dma1chan0

dma1chan1

dma1chan10

dma1chan11

dma1chan12

dma1chan13

dma1chan14

I would like to ask if it is possible to reroute DMA1 to DMA0?

I want to configure the Linux to only use DMA0 and the MQX to DMA1.

标签 (3)
标记 (1)
8 回复数

2,055 次查看
timesyssupport
Senior Contributor II

Hello Carlo,

Which kernel version is this in regards to? This is the same query in your ticket in our queue, correct?

Thank you,

Timesys Support

0 项奖励
回复

2,055 次查看
carlovalgocela
Contributor III

Hello timesyssupport​,

In this test, i'm using the Kernel 3.1.13.

0 项奖励
回复

2,055 次查看
timesyssupport
Senior Contributor II

Hello Carlo,

Please find the attached patch, where Linux will no longer initialize DMA1. This modifies the vf610 device tree includes file, so all you need to do is apply this patch to your kernel sources, then rebuild your device tree blob for the hardware target (pcm052).

Thanks,

Timesys Support

2,055 次查看
jackblather
Senior Contributor I

I think you meant the 3.13-x kernel.

2,055 次查看
carlovalgocela
Contributor III

Yes you are correct.

Thanks for the correction

0 项奖励
回复

2,055 次查看
jackblather
Senior Contributor I

You're Welcome.

0 项奖励
回复

2,055 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport​ please continue with the follow up.

0 项奖励
回复

2,055 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport​ can you help to attend this case?

0 项奖励
回复