Hello,
I was wondering if DMA mode is enabled in the OMAP serial driver by default, and if not, how to enable it?
I've Googled this question, and while I find a few people asking it, I don't see any answers.
Thank you.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I was wondering if DMA mode is enabled in the OMAP serial driver by default, and if not, how to enable it?
I've Googled this question, and while I find a few people asking it, I don't see any answers.
Thank you.
Try to change like below to enable DMA support for serial interface.
arch/arm/mach-omap2/serial.c
static struct omap_uart_port_info omap_serial_default_info[] __initdata = { { .dma_enabled = false, .dma_rx_buf_size = DEFAULT_RXDMA_BUFSIZE, .dma_rx_poll_rate = DEFAULT_RXDMA_POLLRATE, .dma_rx_timeout = DEFAULT_RXDMA_TIMEOUT, .autosuspend_timeout = DEFAULT_AUTOSUSPEND_DELAY, }, };
TO
static struct omap_uart_port_info omap_serial_default_info[] __initdata = { { //Enable DMA .dma_enabled = true, .dma_rx_buf_size = DEFAULT_RXDMA_BUFSIZE, .dma_rx_poll_rate = DEFAULT_RXDMA_POLLRATE, .dma_rx_timeout = DEFAULT_RXDMA_TIMEOUT, .autosuspend_timeout = DEFAULT_AUTOSUSPEND_DELAY, }, };