diff options
author | Fugang Duan <fugang.duan@nxp.com> | 2017-11-16 16:31:13 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 8ff395b0bfb13c8c9aa5f0eb5de25e70b6e546b7 (patch) | |
tree | d40d588c1946279cadf4bc2bef28e33ddc119a60 /drivers/tty/serial | |
parent | f2cf9fac8e6cc6195a98b3a69bf184e3757c19d7 (diff) |
MLK-16838 tty: serial: imx: add busfreq support for DMA mode
Add busfreq support for DMA mode.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/imx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 09aba089602a..45cfd2f28819 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -42,6 +42,7 @@ #include <linux/dma-mapping.h> #include <asm/irq.h> +#include <linux/busfreq-imx.h> #include <linux/platform_data/serial-imx.h> #include <linux/platform_data/dma-imx.h> @@ -1127,6 +1128,9 @@ static void imx_uart_dma_exit(struct imx_port *sport) sport->dma_chan_tx = NULL; } + if (sport->dma_is_inited) + release_bus_freq(BUS_FREQ_HIGH); + sport->dma_is_inited = 0; } @@ -1186,6 +1190,7 @@ static int imx_uart_dma_init(struct imx_port *sport) } sport->dma_is_inited = 1; + request_bus_freq(BUS_FREQ_HIGH); return 0; err: |