IMX6 串口硬件流控制

硬件平台:IMX6Q
软件平台:android 4.2.2

修改驱动board-mx6q-sabresd.c

static const struct imxuart_platform_data mx6_sd_uart2_data __initconst = {
    .flags      = IMXUART_HAVE_RTSCTS | IMXUART_SDMA,
    .dma_req_rx = MX6Q_DMA_REQ_UART3_RX,
    .dma_req_tx = MX6Q_DMA_REQ_UART3_TX,
};

static inline void mx6q_sabresd_init_uart(void)
{
    //imx6q_add_imx_uart(4, &mx6_sd_uart4_data);
    //imx6q_add_imx_uart(3, &mx6_sd_uart3_data);
    imx6q_add_imx_uart(2, &mx6_sd_uart2_data);
    //imx6q_add_imx_uart(1, &mx6_sd_uart1_data);
    //imx6q_add_imx_uart(0, &mx6_sd_uart0_data);
    imx6q_add_imx_uart(4, NULL);
    imx6q_add_imx_uart(3, NULL);
    //imx6q_add_imx_uart(2, NULL);
    imx6q_add_imx_uart(1, NULL);
    imx6q_add_imx_uart(0, NULL);
}

你可能感兴趣的:(Android,IMX6)