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.

AM335X uart



Hi ,

I want to use am335x uart0 uart2 uart4 uart5. uart0 is debug console.

Now uart0 uart2 uart5 is ok, but uart4 is not work.

I change kernel as follow:

In function board-am335xevm.c  ,I add:

static void uart4_init(int evm_id, int profile)
{
    setup_pin_mux(uart4_pin_mux);
    return;
}

static struct pinmux_config uart4_pin_mux[] = {
    {"uart0_rtsn.uart4_txd", OMAP_MUX_MODE1 | AM33XX_PULL_ENBL | AM33XX_INPUT_DISA},
    {"uart0_ctsn.uart4_rxd", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
    {NULL, 0},
};

and change mux33xx.c:

    _AM33XX_MUXENTRY(UART0_CTSN, 0,
        "uart0_ctsn", "uart4_rxd", "d_can1_tx", "i2c1_sda",
        "spi1_d0", NULL, NULL, "gpio1_8"),
    _AM33XX_MUXENTRY(UART0_RTSN, 0,
        "uart0_rtsn", "uart4_txd", "d_can1_rx", "i2c1_scl",
        "spi1_d1", "spi1_cs0", NULL, "gpio1_9"),

I also read the CM_PER_UART4_CLKCTRL Register, the value is 2.

and register 0x44e10968 0x44e1096C  (conf_uart0_ctsn register and conf_uart0_rtsn) ,the value is 0x31 and 0x01.

So what's wrong with me? what else should I do?

Thank you.